@adminide-stack/extension-api 5.0.1-alpha.11 → 5.0.1-alpha.12
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/connection.js +5 -13
- package/lib/connections/jsonrpc2/events.js +3 -4
- package/lib/connections/jsonrpc2/linkedMap.js +3 -4
- package/lib/connections/jsonrpc2/messages.js +6 -7
- package/lib/connections/jsonrpc2/test-helper.js +4 -6
- package/lib/connections/jsonrpc2/trace.js +3 -6
- package/lib/connections/jsonrpc2/transport.js +3 -5
- package/lib/connections/jsonrpc2/transports/webWorker.js +3 -5
- package/lib/connections/proxy/proxy.js +7 -8
- package/lib/connections/remote-rpc/browser-remote-rpc.js +3 -9
- package/lib/connections/remote-rpc/rxjs-websockets.d.ts +1 -1
- package/lib/connections/remote-rpc/rxjs-websockets.js +4 -8
- package/lib/constants/action-types.js +5 -6
- package/lib/constants/types.js +2 -3
- package/lib/core/expr/evaluator.js +6 -9
- package/lib/core/expr/lexer.js +6 -7
- package/lib/core/expr/parser.js +4 -6
- package/lib/core/types/ext-host-types.js +5 -8
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -9
- package/lib/interfaces/context.d.ts +1 -1
- package/lib/interfaces/contributions/contribution.js +3 -4
- package/lib/interfaces/generated-models.d.ts +1237 -1073
- package/lib/interfaces/generated-models.js +88 -63
- package/lib/interfaces/graphql.d.ts +1 -1
- package/lib/interfaces/graphql.js +1 -2
- package/lib/interfaces/model.js +2 -3
- package/lib/interfaces/platform-context.d.ts +1 -1
- package/lib/interfaces/text-document.js +4 -6
- package/lib/interfaces/webview/webview.js +2 -3
- package/lib/protocol/client.protocol.js +3 -5
- package/lib/protocol/common.protocol.js +6 -8
- package/lib/protocol/editor-missing-types.js +2 -3
- package/lib/protocol/index.d.ts +3 -0
- package/lib/protocol/proxy-identifier.js +8 -9
- package/lib/protocol/rpc-logger.js +3 -6
- package/lib/protocol/rpc-protocol.js +10 -20
- package/lib/protocol/server.protocol.js +14 -16
- package/lib/protocol/shared/editor.js +4 -6
- package/lib/protocol/temporary-types.js +4 -13
- package/lib/protocol/utils/lazy-promise.js +3 -6
- package/lib/utils/abortable-rx.d.ts +32 -0
- package/lib/utils/abortable-rx.js +112 -0
- package/lib/utils/errors.js +3 -4
- package/lib/utils/extensions.js +3 -5
- package/lib/utils/helper.test.js +2 -3
- package/lib/utils/paths-util.js +5 -7
- package/lib/utils/rxjs/combineLatestOrDefault.js +3 -10
- package/lib/utils/util.js +7 -9
- package/lib/worker-lib/webWorkerLink.d.ts +1 -1
- package/package.json +5 -4
- package/lib/connections/jsonrpc2/connection.js.map +0 -1
- package/lib/connections/jsonrpc2/connection.test.js +0 -441
- package/lib/connections/jsonrpc2/connection.test.js.map +0 -1
- package/lib/connections/jsonrpc2/events.js.map +0 -1
- package/lib/connections/jsonrpc2/index.js +0 -8
- package/lib/connections/jsonrpc2/index.js.map +0 -1
- package/lib/connections/jsonrpc2/linkedMap.js.map +0 -1
- package/lib/connections/jsonrpc2/linkedMap.test.js +0 -60
- package/lib/connections/jsonrpc2/linkedMap.test.js.map +0 -1
- package/lib/connections/jsonrpc2/messages.js.map +0 -1
- package/lib/connections/jsonrpc2/test-helper.js.map +0 -1
- package/lib/connections/jsonrpc2/trace.js.map +0 -1
- package/lib/connections/jsonrpc2/transport.js.map +0 -1
- package/lib/connections/jsonrpc2/transports/browser-websocket.d.ts +0 -0
- package/lib/connections/jsonrpc2/transports/browser-websocket.js +0 -189
- package/lib/connections/jsonrpc2/transports/browser-websocket.js.map +0 -1
- package/lib/connections/jsonrpc2/transports/merged.d.ts +0 -0
- package/lib/connections/jsonrpc2/transports/merged.js +0 -239
- package/lib/connections/jsonrpc2/transports/merged.js.map +0 -1
- package/lib/connections/jsonrpc2/transports/webSocket.d.ts +0 -0
- package/lib/connections/jsonrpc2/transports/webSocket.js +0 -138
- package/lib/connections/jsonrpc2/transports/webSocket.js.map +0 -1
- package/lib/connections/jsonrpc2/transports/webWorker.js.map +0 -1
- package/lib/connections/proxy/index.js +0 -2
- package/lib/connections/proxy/index.js.map +0 -1
- package/lib/connections/proxy/proxy.js.map +0 -1
- package/lib/connections/proxy/proxy.test.js +0 -53
- package/lib/connections/proxy/proxy.test.js.map +0 -1
- package/lib/connections/remote-rpc/browser-remote-rpc.js.map +0 -1
- package/lib/connections/remote-rpc/browser-server-rpc.test.d.ts +0 -0
- package/lib/connections/remote-rpc/browser-server-rpc.test.js +0 -317
- package/lib/connections/remote-rpc/browser-server-rpc.test.js.map +0 -1
- package/lib/connections/remote-rpc/index.js +0 -2
- package/lib/connections/remote-rpc/index.js.map +0 -1
- package/lib/connections/remote-rpc/old-browser-remote-rpc.js +0 -37
- package/lib/connections/remote-rpc/old-browser-remote-rpc.js.map +0 -1
- package/lib/connections/remote-rpc/rxjs-websockets.js.map +0 -1
- package/lib/constants/action-types.js.map +0 -1
- package/lib/constants/index.js +0 -3
- package/lib/constants/index.js.map +0 -1
- package/lib/constants/types.js.map +0 -1
- package/lib/core/expr/evaluator.js.map +0 -1
- package/lib/core/expr/evaluator.test.js +0 -50
- package/lib/core/expr/evaluator.test.js.map +0 -1
- package/lib/core/expr/index.js +0 -4
- package/lib/core/expr/index.js.map +0 -1
- package/lib/core/expr/lexer.js.map +0 -1
- package/lib/core/expr/parser.js.map +0 -1
- package/lib/core/index.js +0 -3
- package/lib/core/index.js.map +0 -1
- package/lib/core/types/ext-host-types-bk.d.ts +0 -0
- package/lib/core/types/ext-host-types-bk.js +0 -1275
- package/lib/core/types/ext-host-types-bk.js.map +0 -1
- package/lib/core/types/ext-host-types.js.map +0 -1
- package/lib/core/types/index.js +0 -2
- package/lib/core/types/index.js.map +0 -1
- package/lib/errors/errors.js +0 -9
- package/lib/errors/errors.js.map +0 -1
- package/lib/errors/index.js +0 -2
- package/lib/errors/index.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/interfaces/command.js +0 -2
- package/lib/interfaces/command.js.map +0 -1
- package/lib/interfaces/configuration.js +0 -2
- package/lib/interfaces/configuration.js.map +0 -1
- package/lib/interfaces/connection.js +0 -2
- package/lib/interfaces/connection.js.map +0 -1
- package/lib/interfaces/context.js +0 -2
- package/lib/interfaces/context.js.map +0 -1
- package/lib/interfaces/contributions/contribution-service.js +0 -2
- package/lib/interfaces/contributions/contribution-service.js.map +0 -1
- package/lib/interfaces/contributions/contribution.js.map +0 -1
- package/lib/interfaces/contributions/index.js +0 -3
- package/lib/interfaces/contributions/index.js.map +0 -1
- package/lib/interfaces/controller.js +0 -2
- package/lib/interfaces/controller.js.map +0 -1
- package/lib/interfaces/errors.js +0 -2
- package/lib/interfaces/errors.js.map +0 -1
- package/lib/interfaces/ext-services/contributon-registry.js +0 -2
- package/lib/interfaces/ext-services/contributon-registry.js.map +0 -1
- package/lib/interfaces/ext-services/ext-services.js +0 -2
- package/lib/interfaces/ext-services/ext-services.js.map +0 -1
- package/lib/interfaces/ext-services/extension-service.js +0 -2
- package/lib/interfaces/ext-services/extension-service.js.map +0 -1
- package/lib/interfaces/ext-services/index.js +0 -9
- package/lib/interfaces/ext-services/index.js.map +0 -1
- package/lib/interfaces/ext-services/model-service.js +0 -2
- package/lib/interfaces/ext-services/model-service.js.map +0 -1
- package/lib/interfaces/ext-services/panel-view-registry.js +0 -2
- package/lib/interfaces/ext-services/panel-view-registry.js.map +0 -1
- package/lib/interfaces/ext-services/settings-service.js +0 -2
- package/lib/interfaces/ext-services/settings-service.js.map +0 -1
- package/lib/interfaces/ext-services/view-service.js +0 -2
- package/lib/interfaces/ext-services/view-service.js.map +0 -1
- package/lib/interfaces/ext-services/viewer-service.js +0 -4
- package/lib/interfaces/ext-services/viewer-service.js.map +0 -1
- package/lib/interfaces/extension-manifest.js +0 -2
- package/lib/interfaces/extension-manifest.js.map +0 -1
- package/lib/interfaces/extension.js +0 -2
- package/lib/interfaces/extension.js.map +0 -1
- package/lib/interfaces/generated-models.js.map +0 -1
- package/lib/interfaces/graphql.js.map +0 -1
- package/lib/interfaces/index.js +0 -22
- package/lib/interfaces/index.js.map +0 -1
- package/lib/interfaces/languages-types.js +0 -2
- package/lib/interfaces/languages-types.js.map +0 -1
- package/lib/interfaces/model.js.map +0 -1
- package/lib/interfaces/plain-types.js +0 -5
- package/lib/interfaces/plain-types.js.map +0 -1
- package/lib/interfaces/plainTypes.js +0 -2
- package/lib/interfaces/plainTypes.js.map +0 -1
- package/lib/interfaces/platform-context.js +0 -2
- package/lib/interfaces/platform-context.js.map +0 -1
- package/lib/interfaces/react-props/action-item.js +0 -2
- package/lib/interfaces/react-props/action-item.js.map +0 -1
- package/lib/interfaces/react-props/extension-controller.js +0 -2
- package/lib/interfaces/react-props/extension-controller.js.map +0 -1
- package/lib/interfaces/react-props/index.js +0 -4
- package/lib/interfaces/react-props/index.js.map +0 -1
- package/lib/interfaces/react-props/platform-context.js +0 -2
- package/lib/interfaces/react-props/platform-context.js.map +0 -1
- package/lib/interfaces/registry-extension.js +0 -2
- package/lib/interfaces/registry-extension.js.map +0 -1
- package/lib/interfaces/settings.js +0 -2
- package/lib/interfaces/settings.js.map +0 -1
- package/lib/interfaces/text-document.js.map +0 -1
- package/lib/interfaces/webview/index.js +0 -4
- package/lib/interfaces/webview/index.js.map +0 -1
- package/lib/interfaces/webview/webview-manager-service.js +0 -2
- package/lib/interfaces/webview/webview-manager-service.js.map +0 -1
- package/lib/interfaces/webview/webview-port-mapping.js +0 -2
- package/lib/interfaces/webview/webview-port-mapping.js.map +0 -1
- package/lib/interfaces/webview/webview.js.map +0 -1
- package/lib/main.d.ts +0 -0
- package/lib/main.js +0 -3
- package/lib/main.js.map +0 -1
- package/lib/protocol/client.protocol.js.map +0 -1
- package/lib/protocol/common.protocol.js.map +0 -1
- package/lib/protocol/editor-missing-types.js.map +0 -1
- package/lib/protocol/index.js +0 -8
- package/lib/protocol/index.js.map +0 -1
- package/lib/protocol/proxy-identifier.js.map +0 -1
- package/lib/protocol/rpc-logger.js.map +0 -1
- package/lib/protocol/rpc-protocol.js.map +0 -1
- package/lib/protocol/rpc-protocol.test.js +0 -169
- package/lib/protocol/rpc-protocol.test.js.map +0 -1
- package/lib/protocol/server.protocol-bk.d.ts +0 -0
- package/lib/protocol/server.protocol-bk.js +0 -719
- package/lib/protocol/server.protocol-bk.js.map +0 -1
- package/lib/protocol/server.protocol.js.map +0 -1
- package/lib/protocol/shared/editor.js.map +0 -1
- package/lib/protocol/shared/tasks.js +0 -3
- package/lib/protocol/shared/tasks.js.map +0 -1
- package/lib/protocol/temporary-types.js.map +0 -1
- package/lib/protocol/utils/index.js +0 -2
- package/lib/protocol/utils/index.js.map +0 -1
- package/lib/protocol/utils/lazy-promise.js.map +0 -1
- package/lib/utils/errors.js.map +0 -1
- package/lib/utils/extensions.js.map +0 -1
- package/lib/utils/helper.test.js.map +0 -1
- package/lib/utils/index.js +0 -8
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/paths-util.js.map +0 -1
- package/lib/utils/rxjs/combineLatestOrDefault.js.map +0 -1
- package/lib/utils/rxjs/combineLatestOrDefault.test.js +0 -50
- package/lib/utils/rxjs/combineLatestOrDefault.test.js.map +0 -1
- package/lib/utils/rxjs/index.js +0 -2
- package/lib/utils/rxjs/index.js.map +0 -1
- package/lib/utils/util.js.map +0 -1
- package/lib/worker-lib/MessageTypes.js +0 -6
- package/lib/worker-lib/MessageTypes.js.map +0 -1
- package/lib/worker-lib/index.js +0 -3
- package/lib/worker-lib/index.js.map +0 -1
- package/lib/worker-lib/webWorkerLink.js +0 -90
- package/lib/worker-lib/webWorkerLink.js.map +0 -1
- package/lib/worker-lib/workerUtils.js +0 -173
- package/lib/worker-lib/workerUtils.js.map +0 -1
@@ -1,11 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
import { from, isObservable, Observable, Subject } from 'rxjs';
|
3
|
-
import { isPromise } from '../../utils';
|
4
|
-
import { Emitter } from './events';
|
5
|
-
import { LinkedMap } from './linkedMap';
|
6
|
-
import AbortController from 'abort-controller';
|
7
|
-
import { ErrorCodes, isNotificationMessage, isRequestMessage, isResponseMessage, ResponseError, } from './messages';
|
8
|
-
import { noopTracer } from './trace';
|
1
|
+
import*as abortableRx from'../../utils/abortable-rx.js';import {Subject,Observable,isObservable,from}from'rxjs';import {isPromise}from'../../utils/util.js';import'rxjs-compat/observable/fromArray.js';import'rxjs-compat/OuterSubscriber.js';import'rxjs-compat/scheduler/asap.js';import'rxjs-compat/util/subscribeToResult.js';import'@vscode-alt/monaco-editor/esm/vs/base/common/path.js';import {Emitter}from'./events.js';import {LinkedMap}from'./linkedMap.js';import AbortController from'abort-controller';import {isNotificationMessage,isRequestMessage,ErrorCodes,ResponseError,isResponseMessage}from'./messages.js';import {noopTracer}from'./trace.js';const { toPromise } = abortableRx; // to support vite esm
|
9
2
|
const NullLogger = Object.freeze({
|
10
3
|
error: () => {
|
11
4
|
/* noop */
|
@@ -20,7 +13,7 @@ const NullLogger = Object.freeze({
|
|
20
13
|
/* noop */
|
21
14
|
},
|
22
15
|
});
|
23
|
-
|
16
|
+
var ConnectionErrors;
|
24
17
|
(function (ConnectionErrors) {
|
25
18
|
/**
|
26
19
|
* The connection is closed.
|
@@ -35,14 +28,14 @@ export var ConnectionErrors;
|
|
35
28
|
*/
|
36
29
|
ConnectionErrors[ConnectionErrors["AlreadyListening"] = 3] = "AlreadyListening";
|
37
30
|
})(ConnectionErrors || (ConnectionErrors = {}));
|
38
|
-
|
31
|
+
class ConnectionError extends Error {
|
39
32
|
constructor(code, message) {
|
40
33
|
super(message);
|
41
34
|
this.code = code;
|
42
35
|
Object.setPrototypeOf(this, ConnectionError.prototype);
|
43
36
|
}
|
44
37
|
}
|
45
|
-
|
38
|
+
function createConnection(transports, logger) {
|
46
39
|
if (!logger) {
|
47
40
|
logger = NullLogger;
|
48
41
|
}
|
@@ -572,5 +565,4 @@ function matchedStartActor(requestHandlersKeys, method) {
|
|
572
565
|
console.log('no matched value');
|
573
566
|
return null;
|
574
567
|
}
|
575
|
-
}
|
576
|
-
//# sourceMappingURL=connection.js.map
|
568
|
+
}export{ConnectionError,ConnectionErrors,createConnection};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
var Event;
|
2
2
|
(function (Event) {
|
3
3
|
const _unsubscribable = {
|
4
4
|
unsubscribe() {
|
@@ -66,7 +66,7 @@ class CallbackList {
|
|
66
66
|
this._contexts = undefined;
|
67
67
|
}
|
68
68
|
}
|
69
|
-
|
69
|
+
class Emitter {
|
70
70
|
/**
|
71
71
|
* For the public to allow to subscribe
|
72
72
|
* to events from this Emitter
|
@@ -109,5 +109,4 @@ export class Emitter {
|
|
109
109
|
}
|
110
110
|
}
|
111
111
|
}
|
112
|
-
Emitter._noop = () => void 0;
|
113
|
-
//# sourceMappingURL=events.js.map
|
112
|
+
Emitter._noop = () => void 0;export{Emitter,Event};
|
@@ -1,10 +1,10 @@
|
|
1
|
-
|
1
|
+
var Touch;
|
2
2
|
(function (Touch) {
|
3
3
|
Touch.None = 0;
|
4
4
|
Touch.First = 1;
|
5
5
|
Touch.Last = 2;
|
6
6
|
})(Touch || (Touch = {}));
|
7
|
-
|
7
|
+
class LinkedMap {
|
8
8
|
constructor() {
|
9
9
|
this._map = new Map();
|
10
10
|
this._head = undefined;
|
@@ -246,5 +246,4 @@ export class LinkedMap {
|
|
246
246
|
this._tail = item;
|
247
247
|
}
|
248
248
|
}
|
249
|
-
}
|
250
|
-
//# sourceMappingURL=linkedMap.js.map
|
249
|
+
}export{LinkedMap,Touch};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* Predefined error codes.
|
3
3
|
*/
|
4
|
-
|
4
|
+
var ErrorCodes;
|
5
5
|
(function (ErrorCodes) {
|
6
6
|
// Defined by JSON-RPC 2.0.
|
7
7
|
ErrorCodes.ParseError = -32700;
|
@@ -22,7 +22,7 @@ export var ErrorCodes;
|
|
22
22
|
* An error object return in a response in case a request
|
23
23
|
* has failed.
|
24
24
|
*/
|
25
|
-
|
25
|
+
class ResponseError extends Error {
|
26
26
|
constructor(code, message, data) {
|
27
27
|
super(message);
|
28
28
|
this.code = typeof code === 'number' ? code : ErrorCodes.UnknownErrorCode;
|
@@ -40,7 +40,7 @@ export class ResponseError extends Error {
|
|
40
40
|
/**
|
41
41
|
* Tests if the given message is a request message
|
42
42
|
*/
|
43
|
-
|
43
|
+
function isRequestMessage(message) {
|
44
44
|
const candidate = message;
|
45
45
|
return (candidate &&
|
46
46
|
typeof candidate.method === 'string' &&
|
@@ -49,17 +49,16 @@ export function isRequestMessage(message) {
|
|
49
49
|
/**
|
50
50
|
* Tests if the given message is a notification message
|
51
51
|
*/
|
52
|
-
|
52
|
+
function isNotificationMessage(message) {
|
53
53
|
const candidate = message;
|
54
54
|
return candidate && typeof candidate.method === 'string' && message.id === void 0;
|
55
55
|
}
|
56
56
|
/**
|
57
57
|
* Tests if the given message is a response message
|
58
58
|
*/
|
59
|
-
|
59
|
+
function isResponseMessage(message) {
|
60
60
|
const candidate = message;
|
61
61
|
return (candidate &&
|
62
62
|
(candidate.result !== void 0 || !!candidate.error || !!candidate.complete) &&
|
63
63
|
(typeof candidate.id === 'string' || typeof candidate.id === 'number' || candidate.id === null));
|
64
|
-
}
|
65
|
-
//# sourceMappingURL=messages.js.map
|
64
|
+
}export{ErrorCodes,ResponseError,isNotificationMessage,isRequestMessage,isResponseMessage};
|
@@ -1,15 +1,14 @@
|
|
1
|
-
import {
|
2
|
-
/**
|
1
|
+
import {AbstractMessageReader,AbstractMessageWriter}from'./transport.js';/**
|
3
2
|
* Creates a pair of message transports that are connected to each other. One can be used as the server and the
|
4
3
|
* other as the client.
|
5
4
|
*/
|
6
|
-
|
5
|
+
function createMessageTransports() {
|
7
6
|
const { reader: reader1, writer: writer1 } = createMessagePipe();
|
8
7
|
const { reader: reader2, writer: writer2 } = createMessagePipe();
|
9
8
|
return [{ reader: reader1, writer: writer2 }, { reader: reader2, writer: writer1 }];
|
10
9
|
}
|
11
10
|
/** Creates a single set of transports that are connected to each other. */
|
12
|
-
|
11
|
+
function createMessagePipe() {
|
13
12
|
let readerCallback;
|
14
13
|
const reader = new class extends AbstractMessageReader {
|
15
14
|
listen(callback) {
|
@@ -27,5 +26,4 @@ export function createMessagePipe() {
|
|
27
26
|
}
|
28
27
|
}();
|
29
28
|
return { reader, writer };
|
30
|
-
}
|
31
|
-
//# sourceMappingURL=test-helper.js.map
|
29
|
+
}export{createMessagePipe,createMessageTransports};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/** A tracer that implements the Tracer interface with noop methods. */
|
2
|
-
|
2
|
+
const noopTracer = {
|
3
3
|
log: () => void 0,
|
4
4
|
requestSent: () => void 0,
|
5
5
|
requestReceived: () => void 0,
|
@@ -11,7 +11,7 @@ export const noopTracer = {
|
|
11
11
|
unknownResponseReceived: () => void 0,
|
12
12
|
};
|
13
13
|
/** A tracer that implements the Tracer interface with console API calls, intended for a web browser. */
|
14
|
-
|
14
|
+
class BrowserConsoleTracer {
|
15
15
|
constructor(name) {
|
16
16
|
this.name = name;
|
17
17
|
}
|
@@ -39,7 +39,6 @@ export class BrowserConsoleTracer {
|
|
39
39
|
}
|
40
40
|
log(message, details) {
|
41
41
|
if (details) {
|
42
|
-
;
|
43
42
|
console.groupCollapsed(...this.prefix('info', 'log', ''), message);
|
44
43
|
console.log(details);
|
45
44
|
console.groupEnd();
|
@@ -77,7 +76,6 @@ export class BrowserConsoleTracer {
|
|
77
76
|
console.log(...prefix, message.error || message.result);
|
78
77
|
}
|
79
78
|
else {
|
80
|
-
;
|
81
79
|
console.groupCollapsed(...prefix);
|
82
80
|
console.log('Response:', message);
|
83
81
|
console.log('Request:', request);
|
@@ -88,5 +86,4 @@ export class BrowserConsoleTracer {
|
|
88
86
|
unknownResponseReceived(message) {
|
89
87
|
console.log(...this.prefix('error', 'UNKNOWN', ''), message);
|
90
88
|
}
|
91
|
-
}
|
92
|
-
//# sourceMappingURL=trace.js.map
|
89
|
+
}export{BrowserConsoleTracer,noopTracer};
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
export class AbstractMessageReader {
|
1
|
+
import {Emitter}from'./events.js';class AbstractMessageReader {
|
3
2
|
constructor() {
|
4
3
|
this.errorEmitter = new Emitter();
|
5
4
|
this.closeEmitter = new Emitter();
|
@@ -30,7 +29,7 @@ export class AbstractMessageReader {
|
|
30
29
|
// )
|
31
30
|
}
|
32
31
|
}
|
33
|
-
|
32
|
+
class AbstractMessageWriter {
|
34
33
|
constructor() {
|
35
34
|
this.errorEmitter = new Emitter();
|
36
35
|
this.closeEmitter = new Emitter();
|
@@ -57,5 +56,4 @@ export class AbstractMessageWriter {
|
|
57
56
|
}
|
58
57
|
return new Error(`Writer received error. Reason: ${typeof error.message === 'string' ? error.message : 'unknown'}`);
|
59
58
|
}
|
60
|
-
}
|
61
|
-
//# sourceMappingURL=transport.js.map
|
59
|
+
}export{AbstractMessageReader,AbstractMessageWriter};
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
class WebWorkerMessageReader extends AbstractMessageReader {
|
1
|
+
import {AbstractMessageReader,AbstractMessageWriter}from'../transport.js';class WebWorkerMessageReader extends AbstractMessageReader {
|
3
2
|
constructor(worker) {
|
4
3
|
super();
|
5
4
|
this.worker = worker;
|
@@ -81,7 +80,7 @@ function terminateWorker(worker) {
|
|
81
80
|
* @param worker The Worker to communicate with (e.g., created with `new Worker(...)`), or the global scope (i.e.,
|
82
81
|
* `self`) if the current execution context is in a Worker. Defaults to the global scope.
|
83
82
|
*/
|
84
|
-
|
83
|
+
function createWebWorkerMessageTransports(worker = globalWorkerScope()) {
|
85
84
|
const reader = new WebWorkerMessageReader(worker);
|
86
85
|
const writer = new WebWorkerMessageWriter(worker);
|
87
86
|
reader.onError(err => console.error(err));
|
@@ -103,5 +102,4 @@ function globalWorkerScope() {
|
|
103
102
|
console.warn('global scope is not a Worker');
|
104
103
|
}
|
105
104
|
return worker;
|
106
|
-
}
|
107
|
-
//# sourceMappingURL=webWorker.js.map
|
105
|
+
}export{createWebWorkerMessageTransports};
|
@@ -5,11 +5,11 @@
|
|
5
5
|
* @param handler
|
6
6
|
* @return A proxy that translates method calls on itself to requests sent on the {@link connection}.
|
7
7
|
*/
|
8
|
-
|
8
|
+
function createProxyAndHandleRequests(prefix, connection, handler) {
|
9
9
|
handleRequests(connection, prefix, handler);
|
10
10
|
return createProxy(connection, prefix);
|
11
11
|
}
|
12
|
-
|
12
|
+
function createExtensionProxy(connection, rpcId) {
|
13
13
|
let handler = {
|
14
14
|
get: (target, name) => {
|
15
15
|
if (!target[name] && name[0] === '$') {
|
@@ -30,7 +30,7 @@ export function createExtensionProxy(connection, rpcId) {
|
|
30
30
|
* @param connection - The connection to send messages on when proxy methods are called.
|
31
31
|
* @param prefix - The name prefix for connection methods.
|
32
32
|
*/
|
33
|
-
|
33
|
+
function createProxy(connection, prefix) {
|
34
34
|
return new Proxy(Object.create(null), {
|
35
35
|
get: (target, name) => {
|
36
36
|
if (!target[name] && name[0] === '$') {
|
@@ -57,7 +57,7 @@ export function createProxy(connection, prefix) {
|
|
57
57
|
* corresponding requests, or an object created with Object.create(null) (or otherwise with a null
|
58
58
|
* prototype) whose properties contain functions to be called.
|
59
59
|
*/
|
60
|
-
|
60
|
+
function handleRequests(connection, prefix, handler) {
|
61
61
|
// A class instance's methods are own, non-enumerable properties of its prototype.
|
62
62
|
const proto = Object.getPrototypeOf(handler) || handler;
|
63
63
|
for (const name of Object.getOwnPropertyNames(proto)) {
|
@@ -74,7 +74,7 @@ export function handleRequests(connection, prefix, handler) {
|
|
74
74
|
* @param extContext - Remote Context, usually for connecting to Server side providers
|
75
75
|
* @param identifier - Remote Actor Identifier.
|
76
76
|
*/
|
77
|
-
|
77
|
+
function handleServerProxyRequest(connection, remoteProtocol, identifier) {
|
78
78
|
const aProxy = remoteProtocol.getProxy(identifier);
|
79
79
|
connection.onRequest(`${identifier.sid}/*`, (args, signal, method) => {
|
80
80
|
const methodName = method.split('/')[1];
|
@@ -91,9 +91,8 @@ export function handleServerProxyRequest(connection, remoteProtocol, identifier)
|
|
91
91
|
* @param extContext - Remote Context, usually for connecting to Server side providers
|
92
92
|
* @param identifier - Remote Actor Identifier.
|
93
93
|
*/
|
94
|
-
|
94
|
+
function handleServerProxyRequests(connection, remoteProtocol, identifiers) {
|
95
95
|
for (let i in identifiers) {
|
96
96
|
handleServerProxyRequest(connection, remoteProtocol, identifiers[i]);
|
97
97
|
}
|
98
|
-
}
|
99
|
-
//# sourceMappingURL=proxy.js.map
|
98
|
+
}export{createExtensionProxy,createProxy,createProxyAndHandleRequests,handleRequests,handleServerProxyRequest,handleServerProxyRequests};
|
@@ -1,9 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
import { VSBuffer } from '@vscode-alt/monaco-editor/esm/vs/base/common/buffer';
|
3
|
-
import { Emitter } from '@vscode-alt/monaco-editor/esm/vs/base/common/event';
|
4
|
-
import websocketConnect, { normalClosureMessage } from './rxjs-websockets';
|
5
|
-
import { share, switchMap } from 'rxjs/operators';
|
6
|
-
export class BrowserRemoteRPC {
|
1
|
+
import {QueueingSubject}from'queueing-subject';import {VSBuffer}from'@vscode-alt/monaco-editor/esm/vs/base/common/buffer.js';import {Emitter}from'@vscode-alt/monaco-editor/esm/vs/base/common/event.js';import makeWebSocketObservable,{normalClosureMessage}from'./rxjs-websockets.js';import {switchMap,share}from'rxjs/operators/index.js';class BrowserRemoteRPC {
|
7
2
|
constructor(hostId = 2 /* HostIdentifier.BrowserExtHost */) {
|
8
3
|
this._onMessage = new Emitter();
|
9
4
|
this._localHostId = hostId;
|
@@ -14,7 +9,7 @@ export class BrowserRemoteRPC {
|
|
14
9
|
return this._onMessage.event(event);
|
15
10
|
}
|
16
11
|
connect(url, makeWebSocket) {
|
17
|
-
const socket$ =
|
12
|
+
const socket$ = makeWebSocketObservable(url, {
|
18
13
|
protocols: '',
|
19
14
|
makeWebSocket,
|
20
15
|
});
|
@@ -54,5 +49,4 @@ export class BrowserRemoteRPC {
|
|
54
49
|
// converts to ArrayBuffer and sends data
|
55
50
|
this.input$.next(cocnatBuf.buffer);
|
56
51
|
}
|
57
|
-
}
|
58
|
-
//# sourceMappingURL=browser-remote-rpc.js.map
|
52
|
+
}export{BrowserRemoteRPC};
|
@@ -1,10 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import { Subject } from 'rxjs/Subject';
|
3
|
-
import WebSocket from 'ws';
|
4
|
-
const defaultProtocols = [];
|
1
|
+
import {Observable,Subject}from'rxjs';import WebSocket from'ws';const defaultProtocols = [];
|
5
2
|
const defaultWebsocketFactory = (url, protocols) => new WebSocket(url, protocols);
|
6
|
-
|
7
|
-
|
3
|
+
const normalClosureMessage = 'Normal closure';
|
4
|
+
function makeWebSocketObservable(url, { protocols = defaultProtocols, makeWebSocket = defaultWebsocketFactory } = {
|
8
5
|
protocols: defaultProtocols,
|
9
6
|
makeWebSocket: defaultWebsocketFactory,
|
10
7
|
}) {
|
@@ -72,5 +69,4 @@ export default function makeWebSocketObservable(url, { protocols = defaultProtoc
|
|
72
69
|
}
|
73
70
|
};
|
74
71
|
});
|
75
|
-
}
|
76
|
-
//# sourceMappingURL=rxjs-websockets.js.map
|
72
|
+
}export{makeWebSocketObservable as default,normalClosureMessage};
|
@@ -1,15 +1,15 @@
|
|
1
|
-
|
1
|
+
const CONTRIBUTION_ACTION_TYPES = {
|
2
2
|
GET_CONTRIBUTIONS: 'contribution/GET_CONTRIBUTIONS',
|
3
3
|
REGISTER_CONTRIBUTIONS: 'contribution/REGISTER_CONTRIBUTIONS',
|
4
4
|
DEREGISTER_CONTRIBUTIONS: 'contribution/DEREGISTER_CONTRIBUTIONS',
|
5
5
|
REPLACE_CONTRIBUTIONS: 'contribution/REPLACE_CONTRIBUTIONS',
|
6
6
|
};
|
7
|
-
|
7
|
+
const COMMAND_ACTION_TYPES = {
|
8
8
|
REGISTER_COMMAND: 'command/REGISTER_COMMAND',
|
9
9
|
DEREGISTER_COMMAND: 'command/DEREGISTER_COMMAND',
|
10
10
|
EXECUTE_COMMAND: 'command/EXECUTE_COMMAND',
|
11
11
|
};
|
12
|
-
|
12
|
+
const EXTENSION_ACTION_TYPES = {
|
13
13
|
// extensions
|
14
14
|
GET_EXECUTABLE_EXTENIONS: 'extension/GET_EXECUTABLE_EXTENIONS',
|
15
15
|
GET_CONFIGURED_EXTENSION: 'extension/GET_CONFIGURED_EXTENSION',
|
@@ -27,9 +27,8 @@ export const EXTENSION_ACTION_TYPES = {
|
|
27
27
|
// Document
|
28
28
|
TEXT_POSITION: 'extension/TEXT_POSITION',
|
29
29
|
};
|
30
|
-
|
30
|
+
const SETTINGS_ACTION_TYPES = {
|
31
31
|
// settings
|
32
32
|
GET_SETTINGS: 'settings/GET_SETTINGS',
|
33
33
|
UPDATE_SETTINGS: 'settings/UPDATE_SETTINGS',
|
34
|
-
};
|
35
|
-
//# sourceMappingURL=action-types.js.map
|
34
|
+
};export{COMMAND_ACTION_TYPES,CONTRIBUTION_ACTION_TYPES,EXTENSION_ACTION_TYPES,SETTINGS_ACTION_TYPES};
|
package/lib/constants/types.js
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
|
1
|
+
const ClientTypes = {
|
2
2
|
ICommandRegistry: Symbol.for('ICommandRegistry'),
|
3
3
|
IContributionRegistry: Symbol.for('IContributionRegistry'),
|
4
4
|
IExtensionService: Symbol.for('IExtensionService'),
|
5
5
|
IModelService: Symbol.for('IModelService'),
|
6
6
|
IViewerService: Symbol.for('IViewerService'),
|
7
7
|
IWindowsService: Symbol.for('IWindowsService'),
|
8
|
-
};
|
9
|
-
//# sourceMappingURL=types.js.map
|
8
|
+
};export{ClientTypes};
|
@@ -1,9 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import { Parser, TemplateParser } from './parser';
|
3
|
-
/**
|
1
|
+
import {TokenType}from'./lexer.js';import {Parser,TemplateParser}from'./parser.js';/**
|
4
2
|
* A parsed context expression (that can evaluate to anything)
|
5
3
|
*/
|
6
|
-
|
4
|
+
class Expression {
|
7
5
|
constructor(root) {
|
8
6
|
this.root = root;
|
9
7
|
}
|
@@ -15,12 +13,12 @@ export class Expression {
|
|
15
13
|
* A parsed template string that can contain `${contextKey}` interpolations.
|
16
14
|
* Always evaluates to a string.
|
17
15
|
*/
|
18
|
-
|
16
|
+
class TemplateExpression extends Expression {
|
19
17
|
}
|
20
18
|
/**
|
21
19
|
* Evaluates an expression with the given context and returns the result.
|
22
20
|
*/
|
23
|
-
|
21
|
+
function parse(expression) {
|
24
22
|
return new Expression(new Parser().parse(expression));
|
25
23
|
}
|
26
24
|
/**
|
@@ -29,7 +27,7 @@ export function parse(expression) {
|
|
29
27
|
* A template is a string that interpolates expressions in ${...}. It uses the same syntax as
|
30
28
|
* JavaScript templates.
|
31
29
|
*/
|
32
|
-
|
30
|
+
function parseTemplate(template) {
|
33
31
|
return new TemplateExpression(new TemplateParser().parse(template));
|
34
32
|
}
|
35
33
|
const FUNCS = {
|
@@ -133,5 +131,4 @@ function exec(node, context) {
|
|
133
131
|
throw new SyntaxError(`Undefined function: ${expression.name}`);
|
134
132
|
}
|
135
133
|
throw new SyntaxError('Unrecognized syntax node');
|
136
|
-
}
|
137
|
-
//# sourceMappingURL=evaluator.js.map
|
134
|
+
}export{Expression,TemplateExpression,parse,parseTemplate};
|
package/lib/core/expr/lexer.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/** Valid token types in expressions. */
|
2
|
-
|
2
|
+
var TokenType;
|
3
3
|
(function (TokenType) {
|
4
4
|
/** An operator. */
|
5
5
|
TokenType[TokenType["Operator"] = 0] = "Operator";
|
@@ -29,7 +29,7 @@ export var TokenType;
|
|
29
29
|
*
|
30
30
|
* Exported for testing only.
|
31
31
|
*/
|
32
|
-
|
32
|
+
const OPERATORS = {
|
33
33
|
'(': 0,
|
34
34
|
')': 0,
|
35
35
|
'}': 0,
|
@@ -59,7 +59,7 @@ export const OPERATORS = {
|
|
59
59
|
*
|
60
60
|
* Exported for testing only.
|
61
61
|
*/
|
62
|
-
|
62
|
+
const OPERATOR_CHARS = {
|
63
63
|
'&': { '&': true },
|
64
64
|
'|': { '|': true },
|
65
65
|
'=': {
|
@@ -105,7 +105,7 @@ function isIdentifierPart(character) {
|
|
105
105
|
return isIdentifierStart(character) || isDecimalDigit(character) || character === '.';
|
106
106
|
}
|
107
107
|
/** Scans an expression. */
|
108
|
-
|
108
|
+
class Lexer {
|
109
109
|
constructor() {
|
110
110
|
this.expression = '';
|
111
111
|
this.length = 0;
|
@@ -386,7 +386,7 @@ export class Lexer {
|
|
386
386
|
}
|
387
387
|
}
|
388
388
|
/** Scans a template. */
|
389
|
-
|
389
|
+
class TemplateLexer extends Lexer {
|
390
390
|
next() {
|
391
391
|
if (this._index === 0) {
|
392
392
|
return this.doScanTemplate(true);
|
@@ -409,5 +409,4 @@ function backslashEscapeCodeString(character) {
|
|
409
409
|
default:
|
410
410
|
return character;
|
411
411
|
}
|
412
|
-
}
|
413
|
-
//# sourceMappingURL=lexer.js.map
|
412
|
+
}export{Lexer,OPERATORS,OPERATOR_CHARS,TemplateLexer,TokenType};
|
package/lib/core/expr/parser.js
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
import {
|
2
|
-
/**
|
1
|
+
import {Lexer,TokenType,TemplateLexer}from'./lexer.js';/**
|
3
2
|
* Parses an expression.
|
4
3
|
*
|
5
4
|
* TODO: Operator precedence is not handled correctly. Use parentheses to be explicit about your desired
|
6
5
|
* precedence.
|
7
6
|
*/
|
8
|
-
|
7
|
+
class Parser {
|
9
8
|
parse(expressionString) {
|
10
9
|
if (!this.lexer) {
|
11
10
|
this.lexer = new Lexer();
|
@@ -217,7 +216,7 @@ export class Parser {
|
|
217
216
|
}
|
218
217
|
}
|
219
218
|
/** Parses a template. */
|
220
|
-
|
219
|
+
class TemplateParser extends Parser {
|
221
220
|
parse(templateString) {
|
222
221
|
if (!this.lexer) {
|
223
222
|
this.lexer = new TemplateLexer();
|
@@ -233,5 +232,4 @@ export class TemplateParser extends Parser {
|
|
233
232
|
}
|
234
233
|
function matchOp(token, operator) {
|
235
234
|
return token !== undefined && token.type === TokenType.Operator && token.value === operator;
|
236
|
-
}
|
237
|
-
//# sourceMappingURL=parser.js.map
|
235
|
+
}export{Parser,TemplateParser};
|
@@ -1,6 +1,4 @@
|
|
1
|
-
import {
|
2
|
-
import { relative } from '../../utils/paths-util';
|
3
|
-
export class Disposable {
|
1
|
+
import {illegalArgument}from'@vscode-alt/monaco-editor/esm/vs/base/common/errors.js';import {relative}from'../../utils/paths-util.js';class Disposable {
|
4
2
|
static from(...inDisposables) {
|
5
3
|
let disposables = inDisposables;
|
6
4
|
return new Disposable(function () {
|
@@ -24,13 +22,13 @@ export class Disposable {
|
|
24
22
|
}
|
25
23
|
}
|
26
24
|
}
|
27
|
-
|
25
|
+
var ConfigurationTarget;
|
28
26
|
(function (ConfigurationTarget) {
|
29
27
|
ConfigurationTarget[ConfigurationTarget["Global"] = 1] = "Global";
|
30
28
|
ConfigurationTarget[ConfigurationTarget["Organization"] = 2] = "Organization";
|
31
29
|
ConfigurationTarget[ConfigurationTarget["OrganizationResource"] = 3] = "OrganizationResource";
|
32
30
|
})(ConfigurationTarget || (ConfigurationTarget = {}));
|
33
|
-
|
31
|
+
var LogLevel;
|
34
32
|
(function (LogLevel) {
|
35
33
|
LogLevel[LogLevel["Trace"] = 1] = "Trace";
|
36
34
|
LogLevel[LogLevel["Debug"] = 2] = "Debug";
|
@@ -40,7 +38,7 @@ export var LogLevel;
|
|
40
38
|
LogLevel[LogLevel["Critical"] = 6] = "Critical";
|
41
39
|
LogLevel[LogLevel["Off"] = 7] = "Off";
|
42
40
|
})(LogLevel || (LogLevel = {}));
|
43
|
-
|
41
|
+
class RelativePattern {
|
44
42
|
constructor(base, pattern) {
|
45
43
|
// if (typeof base !== 'string') {
|
46
44
|
// if (!base || !URI.isUri(base.uri)) {
|
@@ -62,5 +60,4 @@ export class RelativePattern {
|
|
62
60
|
pathToRelative(from, to) {
|
63
61
|
return relative(from, to);
|
64
62
|
}
|
65
|
-
}
|
66
|
-
//# sourceMappingURL=ext-host-types.js.map
|
63
|
+
}export{ConfigurationTarget,Disposable,LogLevel,RelativePattern};
|
package/lib/index.d.ts
CHANGED
@@ -3,6 +3,7 @@ export * from './protocol';
|
|
3
3
|
export * from './utils';
|
4
4
|
export * from './core';
|
5
5
|
export * from './connections/jsonrpc2';
|
6
|
+
export * from './connections/remote-rpc';
|
6
7
|
export * from './connections/proxy';
|
7
8
|
export * from './connections/remote-rpc';
|
8
9
|
export * from './constants';
|
package/lib/index.js
CHANGED
@@ -1,9 +1 @@
|
|
1
|
-
export
|
2
|
-
export * from './protocol';
|
3
|
-
export * from './utils';
|
4
|
-
export * from './core';
|
5
|
-
export * from './connections/jsonrpc2';
|
6
|
-
export * from './connections/proxy';
|
7
|
-
export * from './connections/remote-rpc';
|
8
|
-
export * from './constants';
|
9
|
-
//# sourceMappingURL=index.js.map
|
1
|
+
export{graphQLContent}from'./interfaces/graphql.js';export{ContributableViewContainer,IContributableMenu}from'./interfaces/contributions/contribution.js';export{EMPTY_MODEL}from'./interfaces/model.js';export{match,score}from'./interfaces/text-document.js';export{ContextMenuDocument,CopyDocument,ExtensionsByLimitDocument,GalleryDocument,GalleryExtensionDocument,HideContextMenuDocument,ICacheControlScope,IClientContainerService,IEnvironmentSync,IExtensionKind,IExtensionType,IGraphqlCallType,IMarkupKind,IMenuId,IMoleculerServiceName,INotificationChangeType,INotificationSeverity,INotificationViewItemLabelKind,ISortEnum,InstallDocument,InstalledExtensionsDocument,NotificationsDocument,ProviderDefinitionDocument,RemoveDocument,RunMenuActionDocument,ShowContextMenuDocument,ShowNotificationDocument,useContextMenuLazyQuery,useContextMenuQuery,useContextMenuSuspenseQuery,useCopyMutation,useExtensionsByLimitLazyQuery,useExtensionsByLimitQuery,useExtensionsByLimitSuspenseQuery,useGalleryExtensionLazyQuery,useGalleryExtensionQuery,useGalleryExtensionSuspenseQuery,useGalleryLazyQuery,useGalleryQuery,useGallerySuspenseQuery,useHideContextMenuMutation,useInstallMutation,useInstalledExtensionsLazyQuery,useInstalledExtensionsQuery,useInstalledExtensionsSuspenseQuery,useNotificationsLazyQuery,useNotificationsQuery,useNotificationsSuspenseQuery,useProviderDefinitionMutation,useRemoveMutation,useRunMenuActionMutation,useShowContextMenuMutation,useShowNotificationLazyQuery,useShowNotificationQuery,useShowNotificationSuspenseQuery}from'./interfaces/generated-models.js';export{WebviewContentPurpose}from'./interfaces/webview/webview.js';export{EditorPosition}from'./protocol/editor-missing-types.js';export{HostIdentifier,ProxyIdentifier,RequestType,TransportType,createExtHostContextProxyIdentifier,createMainContextProxyIdentifier,getStringIdentifierForProxy}from'./protocol/proxy-identifier.js';export{modes}from'./protocol/temporary-types.js';export{ClientContext}from'./protocol/client.protocol.js';export{ISuggestDataDtoField,ISuggestResultDtoField,IdObject,ObjectIdentifier,reviveWorkspaceEditDto}from'./protocol/common.protocol.js';export{editorGroupToViewColumn,viewColumnToEditorGroup}from'./protocol/shared/editor.js';export{ExtHostContext,MainContext}from'./protocol/server.protocol.js';export{ArgType,MessageBuffer,MessageIO,MessageType,RPCProtocol,RequestInitiator,ResponsiveState,safeStringify}from'./protocol/rpc-protocol.js';export{RPCLogger}from'./protocol/rpc-logger.js';export{createBarrier}from'./utils/helper.test.js';export{flattenAndCompact,generateContributionId,isPromise,isSubscribable,tryCatchPromise}from'./utils/util.js';export{asError,isErrorLike}from'./utils/errors.js';export{getScriptURLFromExtensionManifest}from'./utils/extensions.js';export{combineLatestOrDefault}from'./utils/rxjs/combineLatestOrDefault.js';import*as pathsUtil from'./utils/paths-util.js';export{pathsUtil as path };export{ConfigurationTarget,Disposable,LogLevel,RelativePattern}from'./core/types/ext-host-types.js';export{Expression,TemplateExpression,parse,parseTemplate}from'./core/expr/evaluator.js';export{Lexer,OPERATORS,OPERATOR_CHARS,TemplateLexer,TokenType}from'./core/expr/lexer.js';export{Parser,TemplateParser}from'./core/expr/parser.js';export{ConnectionError,ConnectionErrors,createConnection}from'./connections/jsonrpc2/connection.js';export{createWebWorkerMessageTransports}from'./connections/jsonrpc2/transports/webWorker.js';export{BrowserConsoleTracer,noopTracer}from'./connections/jsonrpc2/trace.js';export{createMessagePipe,createMessageTransports}from'./connections/jsonrpc2/test-helper.js';export{BrowserRemoteRPC}from'./connections/remote-rpc/browser-remote-rpc.js';export{createExtensionProxy,createProxy,createProxyAndHandleRequests,handleRequests,handleServerProxyRequest,handleServerProxyRequests}from'./connections/proxy/proxy.js';export{ClientTypes}from'./constants/types.js';export{COMMAND_ACTION_TYPES,CONTRIBUTION_ACTION_TYPES,EXTENSION_ACTION_TYPES,SETTINGS_ACTION_TYPES}from'./constants/action-types.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
var IContributableMenu;
|
2
2
|
(function (IContributableMenu) {
|
3
3
|
/** The global command palette. */
|
4
4
|
IContributableMenu["CommandPalette"] = "commandPalette";
|
@@ -18,7 +18,7 @@ export var IContributableMenu;
|
|
18
18
|
IContributableMenu["Help"] = "help";
|
19
19
|
})(IContributableMenu || (IContributableMenu = {}));
|
20
20
|
/** The containers to which an extension can contribute views. */
|
21
|
-
|
21
|
+
const ContributableViewContainer = {
|
22
22
|
/**
|
23
23
|
* A view that is displayed in the panel for a window.
|
24
24
|
*
|
@@ -42,5 +42,4 @@ export const ContributableViewContainer = {
|
|
42
42
|
* A view contributed to the dashboard on the insights page.
|
43
43
|
*/
|
44
44
|
InsightsPage: 'insightsPage',
|
45
|
-
};
|
46
|
-
//# sourceMappingURL=contribution.js.map
|
45
|
+
};export{ContributableViewContainer,IContributableMenu};
|