@adminide-stack/extension-api 5.0.1-alpha.0 → 5.0.1-alpha.8
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 +50 -49
- package/lib/connections/jsonrpc2/connection.js.map +1 -1
- package/lib/connections/jsonrpc2/connection.test.js +118 -120
- package/lib/connections/jsonrpc2/connection.test.js.map +1 -1
- package/lib/connections/jsonrpc2/events.js +3 -7
- package/lib/connections/jsonrpc2/events.js.map +1 -1
- package/lib/connections/jsonrpc2/index.js +5 -21
- package/lib/connections/jsonrpc2/index.js.map +1 -1
- package/lib/connections/jsonrpc2/linkedMap.js +3 -7
- package/lib/connections/jsonrpc2/linkedMap.js.map +1 -1
- package/lib/connections/jsonrpc2/linkedMap.test.js +15 -17
- package/lib/connections/jsonrpc2/linkedMap.test.js.map +1 -1
- package/lib/connections/jsonrpc2/messages.js +6 -13
- package/lib/connections/jsonrpc2/messages.js.map +1 -1
- package/lib/connections/jsonrpc2/test-helper.js +5 -10
- package/lib/connections/jsonrpc2/test-helper.js.map +1 -1
- package/lib/connections/jsonrpc2/trace.js +2 -6
- package/lib/connections/jsonrpc2/trace.js.map +1 -1
- package/lib/connections/jsonrpc2/transport.js +7 -12
- package/lib/connections/jsonrpc2/transport.js.map +1 -1
- package/lib/connections/jsonrpc2/transports/webWorker.js +4 -8
- package/lib/connections/jsonrpc2/transports/webWorker.js.map +1 -1
- package/lib/connections/proxy/index.js +1 -17
- package/lib/connections/proxy/index.js.map +1 -1
- package/lib/connections/proxy/proxy.js +6 -15
- package/lib/connections/proxy/proxy.js.map +1 -1
- package/lib/connections/proxy/proxy.test.js +13 -15
- package/lib/connections/proxy/proxy.test.js.map +1 -1
- package/lib/connections/remote-rpc/browser-remote-rpc.js +15 -19
- package/lib/connections/remote-rpc/browser-remote-rpc.js.map +1 -1
- package/lib/connections/remote-rpc/index.js +1 -17
- package/lib/connections/remote-rpc/index.js.map +1 -1
- package/lib/connections/remote-rpc/old-browser-remote-rpc.js +9 -13
- package/lib/connections/remote-rpc/old-browser-remote-rpc.js.map +1 -1
- package/lib/connections/remote-rpc/rxjs-websockets.js +8 -12
- package/lib/connections/remote-rpc/rxjs-websockets.js.map +1 -1
- package/lib/constants/action-types.js +4 -7
- package/lib/constants/action-types.js.map +1 -1
- package/lib/constants/index.js +2 -18
- package/lib/constants/index.js.map +1 -1
- package/lib/constants/types.js +1 -4
- package/lib/constants/types.js.map +1 -1
- package/lib/core/expr/evaluator.js +12 -19
- package/lib/core/expr/evaluator.js.map +1 -1
- package/lib/core/expr/evaluator.test.js +2 -4
- package/lib/core/expr/evaluator.test.js.map +1 -1
- package/lib/core/expr/index.js +3 -19
- package/lib/core/expr/index.js.map +1 -1
- package/lib/core/expr/lexer.js +8 -13
- package/lib/core/expr/lexer.js.map +1 -1
- package/lib/core/expr/parser.js +19 -24
- package/lib/core/expr/parser.js.map +1 -1
- package/lib/core/index.js +2 -18
- package/lib/core/index.js.map +1 -1
- package/lib/core/types/ext-host-types.js +10 -15
- package/lib/core/types/ext-host-types.js.map +1 -1
- package/lib/core/types/index.js +1 -17
- package/lib/core/types/index.js.map +1 -1
- package/lib/errors/errors.js +1 -5
- package/lib/errors/errors.js.map +1 -1
- package/lib/errors/index.js +1 -17
- package/lib/errors/index.js.map +1 -1
- package/lib/index.js +7 -23
- package/lib/index.js.map +1 -1
- package/lib/interfaces/command.js +1 -2
- package/lib/interfaces/configuration.js +1 -2
- package/lib/interfaces/connection.js +1 -2
- package/lib/interfaces/context.js +1 -2
- package/lib/interfaces/contributions/contribution-service.js +1 -2
- package/lib/interfaces/contributions/contribution.js +3 -6
- package/lib/interfaces/contributions/contribution.js.map +1 -1
- package/lib/interfaces/contributions/index.js +2 -18
- package/lib/interfaces/contributions/index.js.map +1 -1
- package/lib/interfaces/controller.js +1 -2
- package/lib/interfaces/errors.js +1 -2
- package/lib/interfaces/ext-services/contributon-registry.js +1 -2
- package/lib/interfaces/ext-services/ext-services.js +1 -2
- package/lib/interfaces/ext-services/extension-service.js +1 -2
- package/lib/interfaces/ext-services/index.js +8 -24
- package/lib/interfaces/ext-services/index.js.map +1 -1
- package/lib/interfaces/ext-services/model-service.js +1 -2
- package/lib/interfaces/ext-services/panel-view-registry.js +1 -2
- package/lib/interfaces/ext-services/settings-service.js +1 -2
- package/lib/interfaces/ext-services/view-service.js +1 -3
- package/lib/interfaces/ext-services/view-service.js.map +1 -1
- package/lib/interfaces/ext-services/viewer-service.js +1 -2
- package/lib/interfaces/ext-services/viewer-service.js.map +1 -1
- package/lib/interfaces/extension-manifest.js +1 -2
- package/lib/interfaces/extension.js +1 -2
- package/lib/interfaces/generated-models.js +105 -129
- package/lib/interfaces/generated-models.js.map +1 -1
- package/lib/interfaces/graphql.js +1 -4
- package/lib/interfaces/graphql.js.map +1 -1
- package/lib/interfaces/index.js +21 -37
- package/lib/interfaces/index.js.map +1 -1
- package/lib/interfaces/languages-types.js +1 -2
- package/lib/interfaces/model.js +1 -4
- package/lib/interfaces/model.js.map +1 -1
- package/lib/interfaces/plain-types.js +1 -2
- package/lib/interfaces/plain-types.js.map +1 -1
- package/lib/interfaces/plainTypes.js +1 -2
- package/lib/interfaces/platform-context.js +1 -2
- package/lib/interfaces/react-props/action-item.js +1 -2
- package/lib/interfaces/react-props/extension-controller.js +1 -2
- package/lib/interfaces/react-props/index.js +3 -19
- package/lib/interfaces/react-props/index.js.map +1 -1
- package/lib/interfaces/react-props/platform-context.js +1 -2
- package/lib/interfaces/registry-extension.js +1 -2
- package/lib/interfaces/settings.js +1 -2
- package/lib/interfaces/text-document.js +5 -10
- package/lib/interfaces/text-document.js.map +1 -1
- package/lib/interfaces/webview/index.js +3 -19
- package/lib/interfaces/webview/index.js.map +1 -1
- package/lib/interfaces/webview/webview-manager-service.js +1 -2
- package/lib/interfaces/webview/webview-port-mapping.js +1 -2
- package/lib/interfaces/webview/webview.js +2 -5
- package/lib/interfaces/webview/webview.js.map +1 -1
- package/lib/protocol/client.protocol.js +3 -6
- package/lib/protocol/client.protocol.js.map +1 -1
- package/lib/protocol/common.protocol.js +12 -17
- package/lib/protocol/common.protocol.js.map +1 -1
- package/lib/protocol/editor-missing-types.js +2 -5
- package/lib/protocol/editor-missing-types.js.map +1 -1
- package/lib/protocol/index.js +6 -22
- package/lib/protocol/index.js.map +1 -1
- package/lib/protocol/proxy-identifier.js +10 -17
- package/lib/protocol/proxy-identifier.js.map +1 -1
- package/lib/protocol/rpc-logger.js +1 -5
- package/lib/protocol/rpc-logger.js.map +1 -1
- package/lib/protocol/rpc-protocol.js +48 -55
- package/lib/protocol/rpc-protocol.js.map +1 -1
- package/lib/protocol/rpc-protocol.test.js +13 -15
- package/lib/protocol/rpc-protocol.test.js.map +1 -1
- package/lib/protocol/server.protocol.js +13 -16
- package/lib/protocol/server.protocol.js.map +1 -1
- package/lib/protocol/shared/editor.js +6 -11
- package/lib/protocol/shared/editor.js.map +1 -1
- package/lib/protocol/shared/tasks.js +1 -2
- package/lib/protocol/shared/tasks.js.map +1 -1
- package/lib/protocol/temporary-types.js +2 -5
- package/lib/protocol/temporary-types.js.map +1 -1
- package/lib/protocol/utils/index.js +1 -17
- package/lib/protocol/utils/index.js.map +1 -1
- package/lib/protocol/utils/lazy-promise.js +3 -7
- package/lib/protocol/utils/lazy-promise.js.map +1 -1
- package/lib/utils/errors.js +2 -7
- package/lib/utils/errors.js.map +1 -1
- package/lib/utils/extensions.js +3 -7
- package/lib/utils/extensions.js.map +1 -1
- package/lib/utils/helper.test.js +1 -5
- package/lib/utils/helper.test.js.map +1 -1
- package/lib/utils/index.js +7 -24
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/paths-util.js +17 -23
- package/lib/utils/paths-util.js.map +1 -1
- package/lib/utils/rxjs/combineLatestOrDefault.js +12 -16
- package/lib/utils/rxjs/combineLatestOrDefault.js.map +1 -1
- package/lib/utils/rxjs/combineLatestOrDefault.test.js +13 -15
- package/lib/utils/rxjs/combineLatestOrDefault.test.js.map +1 -1
- package/lib/utils/rxjs/index.js +1 -17
- package/lib/utils/rxjs/index.js.map +1 -1
- package/lib/utils/util.js +7 -15
- package/lib/utils/util.js.map +1 -1
- package/lib/worker-lib/MessageTypes.js +5 -8
- package/lib/worker-lib/MessageTypes.js.map +1 -1
- package/lib/worker-lib/index.js +2 -18
- package/lib/worker-lib/index.js.map +1 -1
- package/lib/worker-lib/webWorkerLink.js +10 -16
- package/lib/worker-lib/webWorkerLink.js.map +1 -1
- package/lib/worker-lib/workerUtils.js +16 -21
- package/lib/worker-lib/workerUtils.js.map +1 -1
- package/package.json +3 -3
package/lib/interfaces/index.js
CHANGED
@@ -1,38 +1,22 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
__exportStar(require("./settings"), exports);
|
23
|
-
__exportStar(require("./platform-context"), exports);
|
24
|
-
__exportStar(require("./graphql"), exports);
|
25
|
-
__exportStar(require("./ext-services"), exports);
|
26
|
-
__exportStar(require("./controller"), exports);
|
27
|
-
__exportStar(require("./connection"), exports);
|
28
|
-
__exportStar(require("./command"), exports);
|
29
|
-
__exportStar(require("./languages-types"), exports);
|
30
|
-
__exportStar(require("./model"), exports);
|
31
|
-
__exportStar(require("./text-document"), exports);
|
32
|
-
__exportStar(require("./contributions"), exports);
|
33
|
-
__exportStar(require("./plainTypes"), exports);
|
34
|
-
__exportStar(require("./configuration"), exports);
|
35
|
-
__exportStar(require("./react-props"), exports);
|
36
|
-
__exportStar(require("./generated-models"), exports);
|
37
|
-
__exportStar(require("./webview"), exports);
|
1
|
+
export * from './plain-types';
|
2
|
+
export * from './extension';
|
3
|
+
export * from './extension-manifest';
|
4
|
+
export * from './registry-extension';
|
5
|
+
export * from './errors';
|
6
|
+
export * from './settings';
|
7
|
+
export * from './platform-context';
|
8
|
+
export * from './graphql';
|
9
|
+
export * from './ext-services';
|
10
|
+
export * from './controller';
|
11
|
+
export * from './connection';
|
12
|
+
export * from './command';
|
13
|
+
export * from './languages-types';
|
14
|
+
export * from './model';
|
15
|
+
export * from './text-document';
|
16
|
+
export * from './contributions';
|
17
|
+
export * from './plainTypes';
|
18
|
+
export * from './configuration';
|
19
|
+
export * from './react-props';
|
20
|
+
export * from './generated-models';
|
21
|
+
export * from './webview';
|
38
22
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC"}
|
package/lib/interfaces/model.js
CHANGED
@@ -1,8 +1,5 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EMPTY_MODEL = void 0;
|
4
1
|
/** An empty Cdeops extension client IModel. */
|
5
|
-
|
2
|
+
export const EMPTY_MODEL = {
|
6
3
|
roots: null,
|
7
4
|
visibleViewComponents: null,
|
8
5
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/interfaces/model.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/interfaces/model.ts"],"names":[],"mappings":"AAwDA,+CAA+C;AAC/C,MAAM,CAAC,MAAM,WAAW,GAAW;IAC/B,KAAK,EAAE,IAAI;IACX,qBAAqB,EAAE,IAAI;CAC9B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"plain-types.js","sourceRoot":"","sources":["../../src/interfaces/plain-types.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"plain-types.js","sourceRoot":"","sources":["../../src/interfaces/plain-types.ts"],"names":[],"mappings":"AACA,IAAI;AACJ,wGAAwG;AACxG,IAAI"}
|
@@ -1,20 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./extension-controller"), exports);
|
18
|
-
__exportStar(require("./platform-context"), exports);
|
19
|
-
__exportStar(require("./action-item"), exports);
|
1
|
+
export * from './extension-controller';
|
2
|
+
export * from './platform-context';
|
3
|
+
export * from './action-item';
|
20
4
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/react-props/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/react-props/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC"}
|
@@ -1,11 +1,8 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.score = exports.match = void 0;
|
4
|
-
const minimatch_1 = require("minimatch");
|
1
|
+
import minimatch from 'minimatch';
|
5
2
|
/**
|
6
3
|
* Returns whether any of the document selectors match (or "select") the document.
|
7
4
|
*/
|
8
|
-
function match(selectors, document) {
|
5
|
+
export function match(selectors, document) {
|
9
6
|
for (const selector of isSingleDocumentSelector(selectors) ? [selectors] : selectors) {
|
10
7
|
if (match1(selector, document)) {
|
11
8
|
return true;
|
@@ -13,7 +10,6 @@ function match(selectors, document) {
|
|
13
10
|
}
|
14
11
|
return false;
|
15
12
|
}
|
16
|
-
exports.match = match;
|
17
13
|
function isSingleDocumentSelector(value) {
|
18
14
|
return Array.isArray(value) && (value.length === 0 || isDocumentSelectorElement(value[0]));
|
19
15
|
}
|
@@ -40,7 +36,7 @@ function match1(selector, document) {
|
|
40
36
|
* Taken from
|
41
37
|
* https://github.com/Microsoft/vscode/blob/3d35801127f0a62d58d752bc613506e836c5d120/src/vs/editor/common/modes/languageSelector.ts#L24.
|
42
38
|
*/
|
43
|
-
function score(selector, candidateUri, candidateLanguage) {
|
39
|
+
export function score(selector, candidateUri, candidateLanguage) {
|
44
40
|
// array -> take max individual value
|
45
41
|
let returnValue = 0;
|
46
42
|
for (const filter of selector) {
|
@@ -54,7 +50,6 @@ function score(selector, candidateUri, candidateLanguage) {
|
|
54
50
|
}
|
55
51
|
return returnValue;
|
56
52
|
}
|
57
|
-
exports.score = score;
|
58
53
|
function score1(selector, candidateUri, candidateLanguage) {
|
59
54
|
if (typeof selector === 'string') {
|
60
55
|
// Shorthand notation: "mylang" -> {language: "mylang"}, "*" -> {language: "*""}.
|
@@ -104,10 +99,10 @@ function score1(selector, candidateUri, candidateLanguage) {
|
|
104
99
|
}
|
105
100
|
if (pattern) {
|
106
101
|
const filePath = decodeURIComponent(candidateUri.protocol === 'git:' ? candidateUri.hash.slice(1) : candidateUri.pathname.replace(/^\//, ''));
|
107
|
-
if (filePath.endsWith(pattern) || (
|
102
|
+
if (filePath.endsWith(pattern) || minimatch(filePath, pattern)) {
|
108
103
|
returnValue = 10;
|
109
104
|
}
|
110
|
-
else if (filePath && (
|
105
|
+
else if (filePath && minimatch(filePath, pattern, { dot: true, matchBase: true })) {
|
111
106
|
returnValue = 5;
|
112
107
|
}
|
113
108
|
else {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"text-document.js","sourceRoot":"","sources":["../../src/interfaces/text-document.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"text-document.js","sourceRoot":"","sources":["../../src/interfaces/text-document.ts"],"names":[],"mappings":"AAKA,OAAO,SAAS,MAAM,WAAW,CAAC;AA6ClC;;GAEG;AACH,MAAM,UAAU,KAAK,CACjB,SAAgE,EAChE,QAAkD;IAElD,KAAK,MAAM,QAAQ,IAAI,wBAAwB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE;QAClF,IAAI,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAAE;YAC5B,OAAO,IAAI,CAAC;SACf;KACJ;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAS,wBAAwB,CAC7B,KAA4D;IAE5D,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI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CAAC,KAAK,EAAE,EAAE,CAAC,CAC3G,CAAC;QACF,IAAI,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE;YAC5D,WAAW,GAAG,EAAE,CAAC;SACpB;aAAM,IAAI,QAAQ,IAAI,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE;YACjF,WAAW,GAAG,CAAC,CAAC;SACnB;aAAM;YACH,OAAO,CAAC,CAAC;SACZ;KACJ;IACD,OAAO,WAAW,CAAC;AACvB,CAAC"}
|
@@ -1,20 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./webview"), exports);
|
18
|
-
__exportStar(require("./webview-port-mapping"), exports);
|
19
|
-
__exportStar(require("./webview-manager-service"), exports);
|
1
|
+
export * from './webview';
|
2
|
+
export * from './webview-port-mapping';
|
3
|
+
export * from './webview-manager-service';
|
20
4
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/webview/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/webview/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC"}
|
@@ -1,9 +1,6 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.WebviewContentPurpose = void 0;
|
4
|
-
var WebviewContentPurpose;
|
1
|
+
export var WebviewContentPurpose;
|
5
2
|
(function (WebviewContentPurpose) {
|
6
3
|
WebviewContentPurpose["NotebookRenderer"] = "notebookRenderer";
|
7
4
|
WebviewContentPurpose["CustomEditor"] = "customEditor";
|
8
|
-
})(WebviewContentPurpose
|
5
|
+
})(WebviewContentPurpose || (WebviewContentPurpose = {}));
|
9
6
|
//# sourceMappingURL=webview.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"webview.js","sourceRoot":"","sources":["../../../src/interfaces/webview/webview.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"webview.js","sourceRoot":"","sources":["../../../src/interfaces/webview/webview.ts"],"names":[],"mappings":"AA2CA,MAAM,CAAN,IAAkB,qBAGjB;AAHD,WAAkB,qBAAqB;IACnC,8DAAqC,CAAA;IACrC,sDAA6B,CAAA;AACjC,CAAC,EAHiB,qBAAqB,KAArB,qBAAqB,QAGtC"}
|
@@ -1,8 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const proxy_identifier_1 = require("./proxy-identifier");
|
5
|
-
exports.ClientContext = {
|
6
|
-
ClientThreadLanguageFeatures: (0, proxy_identifier_1.createMainContextProxyIdentifier)('ClientThreadLanguageFeatures'),
|
1
|
+
import { createMainContextProxyIdentifier as createMainId } from './proxy-identifier';
|
2
|
+
export const ClientContext = {
|
3
|
+
ClientThreadLanguageFeatures: createMainId('ClientThreadLanguageFeatures'),
|
7
4
|
};
|
8
5
|
//# sourceMappingURL=client.protocol.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"client.protocol.js","sourceRoot":"","sources":["../../src/protocol/client.protocol.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"client.protocol.js","sourceRoot":"","sources":["../../src/protocol/client.protocol.ts"],"names":[],"mappings":"AAMA,OAAO,EAAqF,gCAAgC,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAmIzK,MAAM,CAAC,MAAM,aAAa,GAAG;IACzB,4BAA4B,EAAE,YAAY,CAAoC,8BAA8B,CAAC;CAChH,CAAC"}
|
@@ -1,17 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
exports.ObjectIdentifier = exports.reviveWorkspaceEditDto = exports.ISuggestResultDtoField = exports.ISuggestDataDtoField = exports.IdObject = void 0;
|
4
|
-
const uri_1 = require("@vscode-alt/monaco-editor/esm/vs/base/common/uri");
|
5
|
-
class IdObject {
|
1
|
+
import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
2
|
+
export class IdObject {
|
6
3
|
static mixin(object) {
|
7
4
|
object._id = IdObject._n++;
|
8
5
|
return object;
|
9
6
|
}
|
10
7
|
}
|
11
|
-
exports.IdObject = IdObject;
|
12
8
|
IdObject._n = 0;
|
13
9
|
// needed
|
14
|
-
var ISuggestDataDtoField;
|
10
|
+
export var ISuggestDataDtoField;
|
15
11
|
(function (ISuggestDataDtoField) {
|
16
12
|
ISuggestDataDtoField["label"] = "a";
|
17
13
|
ISuggestDataDtoField["kind"] = "b";
|
@@ -29,30 +25,29 @@ var ISuggestDataDtoField;
|
|
29
25
|
ISuggestDataDtoField["kindModifier"] = "n";
|
30
26
|
// to merge into label
|
31
27
|
ISuggestDataDtoField["label2"] = "o";
|
32
|
-
})(ISuggestDataDtoField
|
33
|
-
var ISuggestResultDtoField;
|
28
|
+
})(ISuggestDataDtoField || (ISuggestDataDtoField = {}));
|
29
|
+
export var ISuggestResultDtoField;
|
34
30
|
(function (ISuggestResultDtoField) {
|
35
31
|
ISuggestResultDtoField["defaultRanges"] = "a";
|
36
32
|
ISuggestResultDtoField["completions"] = "b";
|
37
33
|
ISuggestResultDtoField["isIncomplete"] = "c";
|
38
34
|
ISuggestResultDtoField["duration"] = "d";
|
39
|
-
})(ISuggestResultDtoField
|
40
|
-
function reviveWorkspaceEditDto(data) {
|
35
|
+
})(ISuggestResultDtoField || (ISuggestResultDtoField = {}));
|
36
|
+
export function reviveWorkspaceEditDto(data) {
|
41
37
|
if (data && data.edits) {
|
42
38
|
for (const edit of data.edits) {
|
43
39
|
if (typeof edit.resource === 'object') {
|
44
|
-
edit.resource =
|
40
|
+
edit.resource = URI.revive(edit.resource);
|
45
41
|
}
|
46
42
|
else {
|
47
|
-
edit.newUri =
|
48
|
-
edit.oldUri =
|
43
|
+
edit.newUri = URI.revive(edit.newUri);
|
44
|
+
edit.oldUri = URI.revive(edit.oldUri);
|
49
45
|
}
|
50
46
|
}
|
51
47
|
}
|
52
48
|
return data;
|
53
49
|
}
|
54
|
-
|
55
|
-
var ObjectIdentifier;
|
50
|
+
export var ObjectIdentifier;
|
56
51
|
(function (ObjectIdentifier) {
|
57
52
|
ObjectIdentifier.name = '$ident';
|
58
53
|
function mixin(obj, id) {
|
@@ -64,5 +59,5 @@ var ObjectIdentifier;
|
|
64
59
|
return obj[ObjectIdentifier.name];
|
65
60
|
}
|
66
61
|
ObjectIdentifier.of = of;
|
67
|
-
})(ObjectIdentifier
|
62
|
+
})(ObjectIdentifier || (ObjectIdentifier = {}));
|
68
63
|
//# sourceMappingURL=common.protocol.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.protocol.js","sourceRoot":"","sources":["../../src/protocol/common.protocol.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"common.protocol.js","sourceRoot":"","sources":["../../src/protocol/common.protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAiB,MAAM,kDAAkD,CAAC;AAqBtF,MAAM,OAAO,QAAQ;IAGV,MAA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,CAAC,CAAC;aACvF;SACJ;KACJ;IACD,OAA4B,IAAI,CAAC;AACrC,CAAC;AA+FD,MAAM,KAAW,gBAAgB,CAShC;AATD,WAAiB,gBAAgB;IAChB,qBAAI,GAAG,QAAQ,CAAC;IAC7B,SAAgB,KAAK,CAAI,GAAM,EAAE,EAAU;QACvC,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,iBAAA,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;QAClE,OAA6B,GAAG,CAAC;IACrC,CAAC;IAHe,sBAAK,QAGpB,CAAA;IACD,SAAgB,EAAE,CAAC,GAAQ;QACvB,OAAO,GAAG,CAAC,iBAAA,IAAI,CAAC,CAAC;IACrB,CAAC;IAFe,mBAAE,KAEjB,CAAA;AACL,CAAC,EATgB,gBAAgB,KAAhB,gBAAgB,QAShC"}
|
@@ -1,10 +1,7 @@
|
|
1
|
-
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EditorPosition = void 0;
|
4
|
-
var EditorPosition;
|
1
|
+
export var EditorPosition;
|
5
2
|
(function (EditorPosition) {
|
6
3
|
EditorPosition[EditorPosition["ONE"] = 0] = "ONE";
|
7
4
|
EditorPosition[EditorPosition["TWO"] = 1] = "TWO";
|
8
5
|
EditorPosition[EditorPosition["THREE"] = 2] = "THREE";
|
9
|
-
})(EditorPosition
|
6
|
+
})(EditorPosition || (EditorPosition = {}));
|
10
7
|
//# sourceMappingURL=editor-missing-types.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"editor-missing-types.js","sourceRoot":"","sources":["../../src/protocol/editor-missing-types.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"editor-missing-types.js","sourceRoot":"","sources":["../../src/protocol/editor-missing-types.ts"],"names":[],"mappings":"AA0GA,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACtB,iDAAO,CAAA;IACP,iDAAO,CAAA;IACP,qDAAS,CAAA;AACb,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB"}
|
package/lib/protocol/index.js
CHANGED
@@ -1,24 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
17
1
|
// export * from './server.protocol';
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
2
|
+
export * from './editor-missing-types';
|
3
|
+
export * from './proxy-identifier';
|
4
|
+
export * from './temporary-types';
|
5
|
+
export * from './client.protocol';
|
6
|
+
export * from './common.protocol';
|
7
|
+
export * from './shared/editor';
|
24
8
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/protocol/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/protocol/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC"}
|
@@ -1,8 +1,5 @@
|
|
1
|
-
"use strict";
|
2
1
|
/* tslint:disable */
|
3
|
-
|
4
|
-
exports.TransportType = exports.RequestType = exports.HostIdentifier = exports.getStringIdentifierForProxy = exports.createExtHostContextProxyIdentifier = exports.createMainContextProxyIdentifier = exports.ProxyIdentifier = void 0;
|
5
|
-
class ProxyIdentifier {
|
2
|
+
export class ProxyIdentifier {
|
6
3
|
constructor(isMain, sid, hostId) {
|
7
4
|
this.isMain = isMain;
|
8
5
|
this.sid = sid;
|
@@ -10,33 +7,29 @@ class ProxyIdentifier {
|
|
10
7
|
this.hostId = hostId;
|
11
8
|
}
|
12
9
|
}
|
13
|
-
exports.ProxyIdentifier = ProxyIdentifier;
|
14
10
|
ProxyIdentifier.count = 0;
|
15
11
|
const identifiers = [];
|
16
|
-
function createMainContextProxyIdentifier(identifier, hostIdentifier = 1 /* HostIdentifier.ServerMainThread */) {
|
12
|
+
export function createMainContextProxyIdentifier(identifier, hostIdentifier = 1 /* HostIdentifier.ServerMainThread */) {
|
17
13
|
const result = new ProxyIdentifier(true, identifier, hostIdentifier);
|
18
14
|
identifiers[result.nid] = result;
|
19
15
|
return result;
|
20
16
|
}
|
21
|
-
|
22
|
-
function createExtHostContextProxyIdentifier(identifier, hostIdentifier = 0 /* HostIdentifier.ServerExtHost */) {
|
17
|
+
export function createExtHostContextProxyIdentifier(identifier, hostIdentifier = 0 /* HostIdentifier.ServerExtHost */) {
|
23
18
|
const result = new ProxyIdentifier(false, identifier, hostIdentifier);
|
24
19
|
identifiers[result.nid] = result;
|
25
20
|
return result;
|
26
21
|
}
|
27
|
-
|
28
|
-
function getStringIdentifierForProxy(nid) {
|
22
|
+
export function getStringIdentifierForProxy(nid) {
|
29
23
|
return identifiers[nid] ? identifiers[nid].sid : null;
|
30
24
|
}
|
31
|
-
|
32
|
-
var HostIdentifier;
|
25
|
+
export var HostIdentifier;
|
33
26
|
(function (HostIdentifier) {
|
34
27
|
HostIdentifier[HostIdentifier["ServerExtHost"] = 0] = "ServerExtHost";
|
35
28
|
HostIdentifier[HostIdentifier["ServerMainThread"] = 1] = "ServerMainThread";
|
36
29
|
HostIdentifier[HostIdentifier["BrowserExtHost"] = 2] = "BrowserExtHost";
|
37
30
|
HostIdentifier[HostIdentifier["BrowserClientThread"] = 3] = "BrowserClientThread";
|
38
|
-
})(HostIdentifier
|
39
|
-
var RequestType;
|
31
|
+
})(HostIdentifier || (HostIdentifier = {}));
|
32
|
+
export var RequestType;
|
40
33
|
(function (RequestType) {
|
41
34
|
/**
|
42
35
|
* Process the request on the reciever end
|
@@ -50,10 +43,10 @@ var RequestType;
|
|
50
43
|
* Process the request and reply with Forward bit.
|
51
44
|
*/
|
52
45
|
RequestType[RequestType["ProcessAndForward"] = 2] = "ProcessAndForward";
|
53
|
-
})(RequestType
|
54
|
-
var TransportType;
|
46
|
+
})(RequestType || (RequestType = {}));
|
47
|
+
export var TransportType;
|
55
48
|
(function (TransportType) {
|
56
49
|
TransportType[TransportType["Socket"] = 0] = "Socket";
|
57
50
|
TransportType[TransportType["WebSocket"] = 1] = "WebSocket";
|
58
|
-
})(TransportType
|
51
|
+
})(TransportType || (TransportType = {}));
|
59
52
|
//# sourceMappingURL=proxy-identifier.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"proxy-identifier.js","sourceRoot":"","sources":["../../src/protocol/proxy-identifier.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"proxy-identifier.js","sourceRoot":"","sources":["../../src/protocol/proxy-identifier.ts"],"names":[],"mappings":"AAAA,oBAAoB;AAmBpB,MAAM,OAAO,eAAe;IAUxB,YAAY,MAAe,EAAE,GAAW,EAAE,MAAuB;QAC7D,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,GAAG,GAAG,CAAC,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;QACrC,IA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a,KAAb,aAAa,QAG9B"}
|
@@ -1,6 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.RPCLogger = void 0;
|
4
1
|
// Enable to see detailed message communication between window and extension host
|
5
2
|
const LOG_EXTENSION_HOST_COMMUNICATION = false;
|
6
3
|
const LOG_USE_COLORS = true;
|
@@ -26,7 +23,7 @@ function pretty(data) {
|
|
26
23
|
}
|
27
24
|
return prettyWithoutArrays(data);
|
28
25
|
}
|
29
|
-
class RPCLogger {
|
26
|
+
export class RPCLogger {
|
30
27
|
constructor() {
|
31
28
|
this._totalIncoming = 0;
|
32
29
|
this._totalOutgoing = 0;
|
@@ -56,5 +53,4 @@ class RPCLogger {
|
|
56
53
|
this._log('Win \u2192 Ext', this._totalOutgoing, msgLength, req, initiator, str, data);
|
57
54
|
}
|
58
55
|
}
|
59
|
-
exports.RPCLogger = RPCLogger;
|
60
56
|
//# sourceMappingURL=rpc-logger.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rpc-logger.js","sourceRoot":"","sources":["../../src/protocol/rpc-logger.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"rpc-logger.js","sourceRoot":"","sources":["../../src/protocol/rpc-logger.ts"],"names":[],"mappings":"AAGA,iFAAiF;AACjF,MAAM,gCAAgC,GAAG,KAAK,CAAC;AAC/C,MAAM,cAAc,GAAG,IAAI,CAAC;AAE5B,MAAM,WAAW,GAAG;IAChB,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;IACvD,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;CAC1D,CAAC;AAGF,SAAS,mBAAmB,CAAC,IAAS;IAClC,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACrB,OAAO,IAAI,CAAC;KACf;IACD,IAAI,IAAI,IAAI,OAAO,IAAI,K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