@adminide-stack/extension-api 10.0.6-alpha.7 → 10.1.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/connections/jsonrpc2/messages.js +1 -1
- package/lib/connections/jsonrpc2/test-helper.js +1 -1
- package/lib/core/expr/evaluator.d.ts +1 -1
- package/lib/core/expr/evaluator.js +1 -1
- package/lib/middlewares/extensionController.js +2 -2
- package/lib/protocol/client.protocol.d.ts +2 -1
- package/lib/protocol/common.protocol.d.ts +2 -1
- package/lib/protocol/server.protocol.d.ts +2 -1
- package/lib/protocol/server.protocol.js +1 -1
- package/lib/react/useExtensionController.js +3 -3
- package/package.json +5 -5
@@ -10,7 +10,7 @@ var ErrorCodes;
|
|
10
10
|
ErrorCodes.InvalidParams = -32602;
|
11
11
|
ErrorCodes.InternalError = -32603;
|
12
12
|
ErrorCodes.serverErrorStart = -32099;
|
13
|
-
ErrorCodes.serverErrorEnd = -
|
13
|
+
ErrorCodes.serverErrorEnd = -32e3;
|
14
14
|
ErrorCodes.ServerNotInitialized = -32002;
|
15
15
|
ErrorCodes.UnknownErrorCode = -32001;
|
16
16
|
// Defined by this library.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {AbstractMessageReader
|
1
|
+
import {AbstractMessageWriter,AbstractMessageReader}from'./transport.js';/**
|
2
2
|
* Creates a pair of message transports that are connected to each other. One can be used as the server and the
|
3
3
|
* other as the client.
|
4
4
|
*/
|
@@ -126,7 +126,7 @@ function exec(node, context) {
|
|
126
126
|
const expression = node.FunctionCall;
|
127
127
|
const func = FUNCS[expression.name];
|
128
128
|
if (typeof func === 'function') {
|
129
|
-
const args = expression.args.map(argument => exec(argument, context));
|
129
|
+
const args = expression.args.map((argument) => exec(argument, context));
|
130
130
|
return func(...args);
|
131
131
|
}
|
132
132
|
throw new SyntaxError(`Undefined function: ${expression.name}`);
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
1
|
+
import {ClientContainerService}from'common/lib/generated/generated-models.js';const middleware = async ({ context }, dataLoader, next) => {
|
2
2
|
const { container } = context;
|
3
|
-
container.bind(
|
3
|
+
container.bind(ClientContainerService.ExtensionController).toConstantValue({});
|
4
4
|
await next();
|
5
5
|
};export{middleware};
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { Unsubscribable } from 'rxjs';
|
2
2
|
import * as cdeops from 'cdeops/client';
|
3
3
|
import { ICommandHandlerDescription, IConfigurationOverrides } from '@workbench-stack/core';
|
4
|
-
import {
|
4
|
+
import { IConfigurationChange } from '@adminide-stack/core';
|
5
|
+
import { ConfigurationTarget } from 'common';
|
5
6
|
import { ITextDocumentItem } from '@workbench-stack/core';
|
6
7
|
import { UriComponents } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
7
8
|
import { IRPCProtocol, ProxyIdentifier } from './proxy-identifier';
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { UriComponents } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
2
|
-
import {
|
2
|
+
import { IConfigurationModel, IConfigurationData } from 'common';
|
3
|
+
import { ConfigurationScope } from '@adminide-stack/core';
|
3
4
|
import * as cdeops from 'cdeops';
|
4
5
|
import { Selection } from '@vscode-alt/monaco-editor/esm/vs/editor/common/core/selection';
|
5
6
|
import { IRange } from '@vscode-alt/monaco-editor/esm/vs/editor/common/core/range';
|
@@ -3,7 +3,8 @@ import { IOrganizationData, IConfigurationInitData, IDocumentsShape } from './co
|
|
3
3
|
import { CdmLogger } from '@cdm-logger/core';
|
4
4
|
import { IDisposable } from '@vscode-alt/monaco-editor/esm/vs/base/common/lifecycle';
|
5
5
|
import { ExtensionIdentifier, ICommandHandlerDescription, IExtensionDescription } from '@workbench-stack/core';
|
6
|
-
import { ConfigurationTarget, IConfigurationOverrides
|
6
|
+
import { ConfigurationTarget, IConfigurationOverrides } from 'common';
|
7
|
+
import { IConfigurationChange } from '@adminide-stack/core';
|
7
8
|
import { UriComponents } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
8
9
|
import { CancellationToken } from '@vscode-alt/monaco-editor/esm/vs/base/common/cancellation';
|
9
10
|
import Severity from '@vscode-alt/monaco-editor/esm/vs/base/common/severity';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import {createMainContextProxyIdentifier,createExtHostContextProxyIdentifier}from'./proxy-identifier.js';// -- proxy-identifiers are moved to `core` package
|
2
2
|
const MainContext = {
|
3
|
-
MainThreadCommands: createMainContextProxyIdentifier('MainThreadCommands'),
|
3
|
+
MainThreadCommands: (createMainContextProxyIdentifier('MainThreadCommands')),
|
4
4
|
MainThreadConfiguration: createMainContextProxyIdentifier('MainThreadConfiguration'),
|
5
5
|
MainThreadUrls: createMainContextProxyIdentifier('MainThreadUrls'),
|
6
6
|
MainThreadOrganization: createMainContextProxyIdentifier('MainThreadOrganization'),
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import*as React from'react';import {InversifyContext}from'@common-stack/client-react';import {
|
1
|
+
import*as React from'react';import {InversifyContext}from'@common-stack/client-react';import {ClientContainerService}from'common/lib/generated/generated-models.js';const isBrowser = typeof document !== 'undefined';
|
2
2
|
function useExtensionController() {
|
3
3
|
const { container } = React.useContext(InversifyContext);
|
4
4
|
const [extensionController, setExtensionController] = React.useState(null);
|
5
5
|
React.useEffect(() => {
|
6
|
-
if (isBrowser && container.isBound(
|
7
|
-
const controller = container.get(
|
6
|
+
if (isBrowser && container.isBound(ClientContainerService.ExtensionController)) {
|
7
|
+
const controller = container.get(ClientContainerService.ExtensionController);
|
8
8
|
setExtensionController(controller);
|
9
9
|
}
|
10
10
|
}, [container]);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@adminide-stack/extension-api",
|
3
|
-
"version": "10.
|
3
|
+
"version": "10.1.1-alpha.0",
|
4
4
|
"description": "Workbench core for higher packages to depend on",
|
5
5
|
"license": "ISC",
|
6
6
|
"author": "CDMBase LLC",
|
@@ -21,11 +21,11 @@
|
|
21
21
|
"watch": "npm run build:lib:watch"
|
22
22
|
},
|
23
23
|
"dependencies": {
|
24
|
-
"@adminide-stack/core": "10.
|
24
|
+
"@adminide-stack/core": "10.1.1-alpha.0",
|
25
25
|
"@workbench-stack/core": "3.9.7",
|
26
26
|
"abort-controller": "^3.0.0",
|
27
|
-
"cdeops": "10.0.6-alpha.
|
28
|
-
"common": "10.
|
27
|
+
"cdeops": "10.0.6-alpha.11",
|
28
|
+
"common": "10.1.1-alpha.0",
|
29
29
|
"minimatch": "^10.0.0",
|
30
30
|
"queueing-subject": "0.3.4",
|
31
31
|
"utility-types": "^3.10.0",
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"publishConfig": {
|
42
42
|
"access": "public"
|
43
43
|
},
|
44
|
-
"gitHead": "
|
44
|
+
"gitHead": "b92c4874f6547bda0cf6d2587729037c09356d2a",
|
45
45
|
"typescript": {
|
46
46
|
"definition": "lib/index.d.ts"
|
47
47
|
}
|