@adminide-stack/extension-api 11.0.1-alpha.0 → 11.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 +507 -525
- package/lib/connections/jsonrpc2/connection.js.map +1 -0
- package/lib/connections/jsonrpc2/events.js +100 -100
- package/lib/connections/jsonrpc2/events.js.map +1 -0
- package/lib/connections/jsonrpc2/linkedMap.js +248 -246
- package/lib/connections/jsonrpc2/linkedMap.js.map +1 -0
- package/lib/connections/jsonrpc2/messages.js +36 -40
- package/lib/connections/jsonrpc2/messages.js.map +1 -0
- package/lib/connections/jsonrpc2/test-helper.js +35 -21
- package/lib/connections/jsonrpc2/test-helper.js.map +1 -0
- package/lib/connections/jsonrpc2/trace.js +70 -82
- package/lib/connections/jsonrpc2/trace.js.map +1 -0
- package/lib/connections/jsonrpc2/transport.js +56 -56
- package/lib/connections/jsonrpc2/transport.js.map +1 -0
- package/lib/connections/jsonrpc2/transports/webWorker.js +80 -88
- package/lib/connections/jsonrpc2/transports/webWorker.js.map +1 -0
- package/lib/connections/proxy/proxy.js +46 -47
- package/lib/connections/proxy/proxy.js.map +1 -0
- package/lib/connections/remote-rpc/browser-remote-rpc.js +55 -54
- package/lib/connections/remote-rpc/browser-remote-rpc.js.map +1 -0
- package/lib/connections/remote-rpc/rxjs-websockets.js +68 -68
- package/lib/connections/remote-rpc/rxjs-websockets.js.map +1 -0
- package/lib/constants/action-types.js +27 -27
- package/lib/constants/action-types.js.map +1 -0
- package/lib/constants/types.js +7 -7
- package/lib/constants/types.js.map +1 -0
- package/lib/core/expr/evaluator.js +103 -104
- package/lib/core/expr/evaluator.js.map +1 -0
- package/lib/core/expr/lexer.js +366 -361
- package/lib/core/expr/lexer.js.map +1 -0
- package/lib/core/expr/parser.js +228 -217
- package/lib/core/expr/parser.js.map +1 -0
- package/lib/core/types/ext-host-types.js +53 -54
- package/lib/core/types/ext-host-types.js.map +1 -0
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -0
- package/lib/interfaces/contributions/contribution.js +40 -40
- package/lib/interfaces/contributions/contribution.js.map +1 -0
- package/lib/interfaces/ext-services/ext-services.d.ts +2 -2
- package/lib/interfaces/extension-manifest.d.ts +1 -1
- package/lib/interfaces/graphql.js +1 -1
- package/lib/interfaces/graphql.js.map +1 -0
- package/lib/interfaces/model.js +3 -3
- package/lib/interfaces/model.js.map +1 -0
- package/lib/interfaces/text-document.js +76 -77
- package/lib/interfaces/text-document.js.map +1 -0
- package/lib/interfaces/webview/webview.d.ts +1 -1
- package/lib/interfaces/webview/webview.js +3 -3
- package/lib/interfaces/webview/webview.js.map +1 -0
- package/lib/middlewares/extensionController.js +9 -5
- package/lib/middlewares/extensionController.js.map +1 -0
- package/lib/protocol/client.protocol.js +2 -2
- package/lib/protocol/client.protocol.js.map +1 -0
- package/lib/protocol/common.protocol.d.ts +1 -2
- package/lib/protocol/common.protocol.js +50 -48
- package/lib/protocol/common.protocol.js.map +1 -0
- package/lib/protocol/editor-missing-types.js +4 -4
- package/lib/protocol/editor-missing-types.js.map +1 -0
- package/lib/protocol/proxy-identifier.js +39 -39
- package/lib/protocol/proxy-identifier.js.map +1 -0
- package/lib/protocol/rpc-logger.js +39 -43
- package/lib/protocol/rpc-logger.js.map +1 -0
- package/lib/protocol/rpc-protocol.js +736 -724
- package/lib/protocol/rpc-protocol.js.map +1 -0
- package/lib/protocol/server.protocol.js +22 -22
- package/lib/protocol/server.protocol.js.map +1 -0
- package/lib/protocol/shared/editor.js +17 -17
- package/lib/protocol/shared/editor.js.map +1 -0
- package/lib/protocol/temporary-types.js +16 -16
- package/lib/protocol/temporary-types.js.map +1 -0
- package/lib/protocol/utils/lazy-promise.js +60 -61
- package/lib/protocol/utils/lazy-promise.js.map +1 -0
- package/lib/react/components/view-component/ViewComponent.js +31 -26
- package/lib/react/components/view-component/ViewComponent.js.map +1 -0
- package/lib/react/index.js +1 -1
- package/lib/react/index.js.map +1 -0
- package/lib/react/useExtensionController.js +13 -11
- package/lib/react/useExtensionController.js.map +1 -0
- package/lib/utils/abortable-rx.js +73 -70
- package/lib/utils/abortable-rx.js.map +1 -0
- package/lib/utils/errors.js +10 -10
- package/lib/utils/errors.js.map +1 -0
- package/lib/utils/extensions.js +11 -11
- package/lib/utils/extensions.js.map +1 -0
- package/lib/utils/helper.test.js +7 -4
- package/lib/utils/helper.test.js.map +1 -0
- package/lib/utils/paths-util.js +79 -82
- package/lib/utils/paths-util.js.map +1 -0
- package/lib/utils/rxjs/combineLatestOrDefault.js +72 -70
- package/lib/utils/rxjs/combineLatestOrDefault.js.map +1 -0
- package/lib/utils/util.js +24 -25
- package/lib/utils/util.js.map +1 -0
- package/package.json +5 -5
@@ -1,45 +1,45 @@
|
|
1
1
|
var ContributableMenu;
|
2
2
|
(function (ContributableMenu) {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
3
|
+
/** The global command palette. */
|
4
|
+
ContributableMenu["CommandPalette"] = "commandPalette";
|
5
|
+
/** The global navigation bar in the application. */
|
6
|
+
ContributableMenu["GlobalNav"] = "global/nav";
|
7
|
+
/** The title bar for the current document. */
|
8
|
+
ContributableMenu["EditorTitle"] = "editor/title";
|
9
|
+
/** A directory page (including for the root directory of a repository). */
|
10
|
+
ContributableMenu["DirectoryPage"] = "directory/page";
|
11
|
+
/** The hover tooltip. */
|
12
|
+
ContributableMenu["Hover"] = "hover";
|
13
|
+
/** The panel toolbar. */
|
14
|
+
ContributableMenu["PanelToolbar"] = "panel/toolbar";
|
15
|
+
/** The search results toolbar. */
|
16
|
+
ContributableMenu["SearchResultsToolbar"] = "search/results/toolbar";
|
17
|
+
/** The help menu in the application. */
|
18
|
+
ContributableMenu["Help"] = "help";
|
19
19
|
})(ContributableMenu || (ContributableMenu = {}));
|
20
20
|
/** The containers to which an extension can contribute views. */
|
21
21
|
const ContributableViewContainer = {
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
};export{ContributableMenu,ContributableViewContainer}
|
22
|
+
/**
|
23
|
+
* A view that is displayed in the panel for a window.
|
24
|
+
*
|
25
|
+
* Clients: The client should render this as a resizable panel in a window, with multiple tabs to switch
|
26
|
+
* between different panel views.
|
27
|
+
*/
|
28
|
+
Panel: 'window/panel',
|
29
|
+
/**
|
30
|
+
* A global page view, displayed as a standalone page at `/views/ID`.
|
31
|
+
*/
|
32
|
+
GlobalPage: 'global/page',
|
33
|
+
/**
|
34
|
+
* A view contributed to directory pages.
|
35
|
+
*/
|
36
|
+
Directory: 'directory',
|
37
|
+
/**
|
38
|
+
* A view contributed to the area on the homepage below the search box.
|
39
|
+
*/
|
40
|
+
Homepage: 'homepage',
|
41
|
+
/**
|
42
|
+
* A view contributed to the dashboard on the insights page.
|
43
|
+
*/
|
44
|
+
InsightsPage: 'insightsPage'
|
45
|
+
};export{ContributableMenu,ContributableViewContainer};//# sourceMappingURL=contribution.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"contribution.js","sources":["../../../src/interfaces/contributions/contribution.ts"],"sourcesContent":[null],"names":[],"mappings":"IAqPY;AAAZ,CAAA,UAAY,iBAAiB,EAAA;;AAEzB,EAAA,iBAAA,CAAA,gBAAA,CAAA,GAAA,gBAAA;;AAGA,EAAA,iBAAA,CAAA,WAAA,CAAA,GAAA,YAAA;;AAGA,EAAA,iBAAA,CAAA,aAAA,CAAA,GAAA,cAAA;;AAGA,EAAA,iBAAA,CAAA,eAAA,CAAA,GAAA,gBAAA;;AAGA,EAAA,iBAAA,CAAA,OAAA,CAAA,GAAA,OAAA;;AAGA,EAAA,iBAAA,CAAA,cAAA,CAAA,GAAA,eAAA;;AAGA,EAAA,iBAAA,CAAA,sBAAA,CAAA,GAAA,wBAAA;;AAGA,EAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AACJ,CAAC,EAxBW,iBAAiB,KAAjB,iBAAiB,GAwB5B,EAAA,CAAA,CAAA;AAuDD;AACa,MAAA,0BAA0B,GAAG;AACtC;;;;;AAKG;AACH,EAAA,KAAA,EAAK,cAAgB;AAErB;;AAEG;AACH,EAAA,UAAA,EAAU,aAAe;AAEzB;;AAEG;AACH,EAAA,SAAA,EAAS,WAAa;AAEtB;;AAEG;AACH,EAAA,QAAA,EAAQ,UAAY;AAEpB;;AAEG;AACH,EAAA,YAAA,EAAY;"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import type
|
1
|
+
import { IRegistry } from '@adminide-stack/core';
|
2
|
+
import { IEnvironmentService, type IEnvironment } from 'common/server';
|
3
3
|
import { IViewerService } from './viewer-service';
|
4
4
|
import { ICommandRegistry } from '../command';
|
5
5
|
import { IContributionRegistry } from './contributon-registry';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { IExtensionManifest as IExtensionManifestSchema } from 'common
|
1
|
+
import { IExtensionManifest as IExtensionManifestSchema } from 'common';
|
2
2
|
/**
|
3
3
|
* Represents an input object that is validated against a subset of properties of the {@link IExtensionManifest}
|
4
4
|
* JSON Schema. For simplicity, only necessary fields are validated and included here.
|
@@ -1 +1 @@
|
|
1
|
-
const graphQLContent = Symbol('graphQLContent');export{graphQLContent}
|
1
|
+
const graphQLContent = Symbol('graphQLContent');export{graphQLContent};//# sourceMappingURL=graphql.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"graphql.js","sources":["../../src/interfaces/graphql.ts"],"sourcesContent":[null],"names":[],"mappings":"MAAa,cAAc,GAAG,MAAM,CAAC,gBAAgB"}
|
package/lib/interfaces/model.js
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"model.js","sources":["../../src/interfaces/model.ts"],"sourcesContent":[null],"names":[],"mappings":"AAwDA;AACa,MAAA,WAAW,GAAW;AAC/B,EAAA,KAAA,EAAK,IAAM;AACX,EAAA,qBAAA,EAAqB;"}
|
@@ -2,27 +2,25 @@ import {minimatch}from'minimatch';/**
|
|
2
2
|
* Returns whether any of the document selectors match (or "select") the document.
|
3
3
|
*/
|
4
4
|
function match(selectors, document) {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
}
|
5
|
+
for (const selector of isSingleDocumentSelector(selectors) ? [selectors] : selectors) {
|
6
|
+
if (match1(selector, document)) {
|
7
|
+
return true;
|
9
8
|
}
|
10
|
-
|
9
|
+
}
|
10
|
+
return false;
|
11
11
|
}
|
12
12
|
function isSingleDocumentSelector(value) {
|
13
|
-
|
13
|
+
return Array.isArray(value) && (value.length === 0 || isDocumentSelectorElement(value[0]));
|
14
14
|
}
|
15
15
|
function isDocumentSelectorElement(value) {
|
16
|
-
|
16
|
+
return typeof value === 'string' || isDocumentFilter(value);
|
17
17
|
}
|
18
18
|
function isDocumentFilter(value) {
|
19
|
-
|
20
|
-
|
21
|
-
typeof candidate.scheme === 'string' ||
|
22
|
-
typeof candidate.pattern === 'string');
|
19
|
+
const candidate = value;
|
20
|
+
return typeof candidate.language === 'string' || typeof candidate.scheme === 'string' || typeof candidate.pattern === 'string';
|
23
21
|
}
|
24
22
|
function match1(selector, document) {
|
25
|
-
|
23
|
+
return score(selector, new URL(document.uri), document.languageId) !== 0;
|
26
24
|
}
|
27
25
|
/**
|
28
26
|
* Returns the score that indicates "how well" the document selector matches a document (by its URI and language
|
@@ -36,77 +34,78 @@ function match1(selector, document) {
|
|
36
34
|
* https://github.com/Microsoft/vscode/blob/3d35801127f0a62d58d752bc613506e836c5d120/src/vs/editor/common/modes/languageSelector.ts#L24.
|
37
35
|
*/
|
38
36
|
function score(selector, candidateUri, candidateLanguage) {
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
}
|
46
|
-
if (value > returnValue) {
|
47
|
-
returnValue = value;
|
48
|
-
}
|
37
|
+
// array -> take max individual value
|
38
|
+
let returnValue = 0;
|
39
|
+
for (const filter of selector) {
|
40
|
+
const value = score1(filter, candidateUri, candidateLanguage);
|
41
|
+
if (value === 10) {
|
42
|
+
return value; // already at the highest
|
49
43
|
}
|
50
|
-
|
44
|
+
if (value > returnValue) {
|
45
|
+
returnValue = value;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
return returnValue;
|
51
49
|
}
|
52
50
|
function score1(selector, candidateUri, candidateLanguage) {
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
}
|
58
|
-
if (selector === candidateLanguage) {
|
59
|
-
return 10;
|
60
|
-
}
|
61
|
-
return 0;
|
51
|
+
if (typeof selector === 'string') {
|
52
|
+
// Shorthand notation: "mylang" -> {language: "mylang"}, "*" -> {language: "*""}.
|
53
|
+
if (selector === '*') {
|
54
|
+
return 5;
|
62
55
|
}
|
63
|
-
|
64
|
-
|
65
|
-
// `{}` was passed as a document filter, treat it like a wildcard
|
66
|
-
return 5;
|
56
|
+
if (selector === candidateLanguage) {
|
57
|
+
return 10;
|
67
58
|
}
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
59
|
+
return 0;
|
60
|
+
}
|
61
|
+
const {
|
62
|
+
language,
|
63
|
+
scheme,
|
64
|
+
pattern,
|
65
|
+
baseUri
|
66
|
+
} = selector;
|
67
|
+
if (!language && !scheme && !pattern) {
|
68
|
+
// `{}` was passed as a document filter, treat it like a wildcard
|
69
|
+
return 5;
|
70
|
+
}
|
71
|
+
let returnValue = 0;
|
72
|
+
if (scheme) {
|
73
|
+
if (candidateUri.protocol === scheme + ':') {
|
74
|
+
returnValue = 10;
|
75
|
+
} else if (scheme === '*') {
|
76
|
+
returnValue = 5;
|
77
|
+
} else {
|
78
|
+
return 0;
|
79
79
|
}
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
}
|
80
|
+
}
|
81
|
+
if (baseUri) {
|
82
|
+
if (candidateUri.href.startsWith(baseUri.toString())) {
|
83
|
+
returnValue = 5;
|
84
|
+
} else {
|
85
|
+
return 0;
|
87
86
|
}
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
return 0;
|
97
|
-
}
|
87
|
+
}
|
88
|
+
if (language) {
|
89
|
+
if (language === candidateLanguage) {
|
90
|
+
returnValue = 10;
|
91
|
+
} else if (language === '*') {
|
92
|
+
returnValue = Math.max(returnValue, 5);
|
93
|
+
} else {
|
94
|
+
return 0;
|
98
95
|
}
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
96
|
+
}
|
97
|
+
if (pattern) {
|
98
|
+
const filePath = decodeURIComponent(candidateUri.protocol === 'git:' ? candidateUri.hash.slice(1) : candidateUri.pathname.replace(/^\//, ''));
|
99
|
+
if (filePath.endsWith(pattern) || minimatch(filePath, pattern)) {
|
100
|
+
returnValue = 10;
|
101
|
+
} else if (filePath && minimatch(filePath, pattern, {
|
102
|
+
dot: true,
|
103
|
+
matchBase: true
|
104
|
+
})) {
|
105
|
+
returnValue = 5;
|
106
|
+
} else {
|
107
|
+
return 0;
|
110
108
|
}
|
111
|
-
|
112
|
-
|
109
|
+
}
|
110
|
+
return returnValue;
|
111
|
+
}export{match,score};//# sourceMappingURL=text-document.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"text-document.js","sources":["../../src/interfaces/text-document.ts"],"sourcesContent":[null],"names":[],"mappings":"kCA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AY,QAAS,IAAA,UAAQ,QAAc,EAAA,OAAS,EAAA;eACrC;eACd,EAAA;AAAM,KAAA,CAAA,EAAA;iBACQ,GAAA,CAAA;WACd;aAAM,CAAC;AACJ;;SAEP,WAAA;AACD"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Event } from '@vscode-alt/monaco-editor/esm/vs/base/common/event';
|
2
2
|
import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
3
|
-
import { IExtensionIdentifier } from 'common
|
3
|
+
import { IExtensionIdentifier } from 'common';
|
4
4
|
import { IMouseWheelEvent } from '@vscode-alt/monaco-editor/esm/vs/base/browser/mouseEvent';
|
5
5
|
import { Dimension } from '@vscode-alt/monaco-editor/esm/vs/base/browser/dom';
|
6
6
|
import * as modes from '@vscode-alt/monaco-editor/esm/vs/editor/common/modes';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
var WebviewContentPurpose;
|
2
2
|
(function (WebviewContentPurpose) {
|
3
|
-
|
4
|
-
|
5
|
-
})(WebviewContentPurpose || (WebviewContentPurpose = {}));export{WebviewContentPurpose}
|
3
|
+
WebviewContentPurpose["NotebookRenderer"] = "notebookRenderer";
|
4
|
+
WebviewContentPurpose["CustomEditor"] = "customEditor";
|
5
|
+
})(WebviewContentPurpose || (WebviewContentPurpose = {}));export{WebviewContentPurpose};//# sourceMappingURL=webview.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"webview.js","sources":["../../../src/interfaces/webview/webview.ts"],"sourcesContent":[null],"names":[],"mappings":"IAoCkB;AAAlB,CAAA,UAAkB,qBAAqB,EAAA;AACnC,EAAA,qBAAA,CAAA,kBAAA,CAAA,GAAA,kBAAA;AACA,EAAA,qBAAA,CAAA,cAAA,CAAA,GAAA,cAAA;AACJ,CAAC,EAHiB,qBAAqB,KAArB,qBAAqB,GAGtC,EAAA,CAAA,CAAA"}
|
@@ -1,5 +1,9 @@
|
|
1
|
-
import {ClientContainerService}from'common
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import {ClientContainerService}from'common';const middleware = async ({
|
2
|
+
context
|
3
|
+
}, dataLoader, next) => {
|
4
|
+
const {
|
5
|
+
container
|
6
|
+
} = context;
|
7
|
+
container.bind(ClientContainerService.ExtensionController).toConstantValue({});
|
8
|
+
await next();
|
9
|
+
};export{middleware};//# sourceMappingURL=extensionController.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"extensionController.js","sources":["../../src/middlewares/extensionController.ts"],"sourcesContent":[null],"names":[],"mappings":"4CAEO,MAAM,UAAU,GAAG,OAAO;AAC7B,EAAA;AAEA,CAAA,EAAA,UAAS,EAAC,IAAK,KAAA;QACT;AACV,IAAE;;;;"}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import {createMainContextProxyIdentifier}from'./proxy-identifier.js';const ClientContext = {
|
2
|
-
|
3
|
-
};export{ClientContext}
|
2
|
+
ClientThreadLanguageFeatures: createMainContextProxyIdentifier('ClientThreadLanguageFeatures')
|
3
|
+
};export{ClientContext};//# sourceMappingURL=client.protocol.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"client.protocol.js","sources":["../../src/protocol/client.protocol.ts"],"sourcesContent":[null],"names":["createMainId"],"mappings":"qEA8Ja,MAAA,aAAa,GAAG;AACzB,EAAA,4BAAA,EAA4BA,gCAAE,CAAA,8BAAgD;"}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { UriComponents } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
2
|
-
import { IConfigurationModel, IConfigurationData } from 'common';
|
3
|
-
import { ConfigurationScope } from '@adminide-stack/core';
|
2
|
+
import { IConfigurationModel, ConfigurationScope, IConfigurationData } from 'common';
|
4
3
|
import * as cdeops from 'cdeops';
|
5
4
|
import { Selection } from '@vscode-alt/monaco-editor/esm/vs/editor/common/core/selection';
|
6
5
|
import { IRange } from '@vscode-alt/monaco-editor/esm/vs/editor/common/core/range';
|
@@ -1,62 +1,64 @@
|
|
1
1
|
import {URI}from'@vscode-alt/monaco-editor/esm/vs/base/common/uri.js';class IdObject {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
_id;
|
3
|
+
static _n = 0;
|
4
|
+
static mixin(object) {
|
5
|
+
object._id = IdObject._n++;
|
6
|
+
return object;
|
7
|
+
}
|
8
8
|
}
|
9
9
|
// needed
|
10
10
|
var SuggestDataDtoField;
|
11
11
|
(function (SuggestDataDtoField) {
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
12
|
+
SuggestDataDtoField["label"] = "a";
|
13
|
+
SuggestDataDtoField["kind"] = "b";
|
14
|
+
SuggestDataDtoField["detail"] = "c";
|
15
|
+
SuggestDataDtoField["documentation"] = "d";
|
16
|
+
SuggestDataDtoField["sortText"] = "e";
|
17
|
+
SuggestDataDtoField["filterText"] = "f";
|
18
|
+
SuggestDataDtoField["preselect"] = "g";
|
19
|
+
SuggestDataDtoField["insertText"] = "h";
|
20
|
+
SuggestDataDtoField["insertTextRules"] = "i";
|
21
|
+
SuggestDataDtoField["range"] = "j";
|
22
|
+
SuggestDataDtoField["commitCharacters"] = "k";
|
23
|
+
SuggestDataDtoField["additionalTextEdits"] = "l";
|
24
|
+
SuggestDataDtoField["command"] = "m";
|
25
|
+
SuggestDataDtoField["kindModifier"] = "n";
|
26
|
+
// to merge into label
|
27
|
+
SuggestDataDtoField["label2"] = "o";
|
28
28
|
})(SuggestDataDtoField || (SuggestDataDtoField = {}));
|
29
29
|
var SuggestResultDtoField;
|
30
30
|
(function (SuggestResultDtoField) {
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
31
|
+
SuggestResultDtoField["defaultRanges"] = "a";
|
32
|
+
SuggestResultDtoField["completions"] = "b";
|
33
|
+
SuggestResultDtoField["isIncomplete"] = "c";
|
34
|
+
SuggestResultDtoField["duration"] = "d";
|
35
35
|
})(SuggestResultDtoField || (SuggestResultDtoField = {}));
|
36
36
|
function reviveWorkspaceEditDto(data) {
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
}
|
46
|
-
}
|
37
|
+
if (data && data.edits) {
|
38
|
+
for (const edit of data.edits) {
|
39
|
+
if (typeof edit.resource === 'object') {
|
40
|
+
edit.resource = URI.revive(edit.resource);
|
41
|
+
} else {
|
42
|
+
edit.newUri = URI.revive(edit.newUri);
|
43
|
+
edit.oldUri = URI.revive(edit.oldUri);
|
44
|
+
}
|
47
45
|
}
|
48
|
-
|
46
|
+
}
|
47
|
+
return data;
|
49
48
|
}
|
50
49
|
var ObjectIdentifier;
|
51
50
|
(function (ObjectIdentifier) {
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
51
|
+
ObjectIdentifier.name = '$ident';
|
52
|
+
function mixin(obj, id) {
|
53
|
+
Object.defineProperty(obj, ObjectIdentifier.name, {
|
54
|
+
value: id,
|
55
|
+
enumerable: true
|
56
|
+
});
|
57
|
+
return obj;
|
58
|
+
}
|
59
|
+
ObjectIdentifier.mixin = mixin;
|
60
|
+
function of(obj) {
|
61
|
+
return obj[ObjectIdentifier.name];
|
62
|
+
}
|
63
|
+
ObjectIdentifier.of = of;
|
64
|
+
})(ObjectIdentifier || (ObjectIdentifier = {}));export{IdObject,ObjectIdentifier,SuggestDataDtoField,SuggestResultDtoField,reviveWorkspaceEditDto};//# sourceMappingURL=common.protocol.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"common.protocol.js","sources":["../../src/protocol/common.protocol.ts"],"sourcesContent":[null],"names":[],"mappings":"4EAwBa,QAAQ,CAAA;AACV,EAA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,EALiB,qBAAqB,KAArB,qBAAqB,GAKtC,EAAA,CAAA,CAAA;AAyCK,SAAU,sBAAsB,CAAC,IAAsB,EAAA;AACzD,EAAA,IAAA,QAAY,IAAA,CAAA,KAAK,EAAK;AAClB,IAAA,KAAA,UAAW,IAAI,IAAI,MAAK,EAAA;AACpB,MAAA,IAAA,iCAAoD,EAAA;qBACpB,GAAQ,GAAA,CAAA,MAAM,CAAA,IAAO,CAAA,QAA6B,CAAQ;aACzF;mBAAO,GAAA,GAAA,CAAA,MAAA,CAAA,IAAA,CAAA,MAAA,CAAA;mBACuB,GAAO,GAAA,CAAA,MAAM,CAAA,IAAO,CAAA,MAA4B,CAAA;;;;SAItF,IAAA;AACD;AACH,IAAA;AA2FD,CAAM,UAAW,gBAAgB,EAShC;AATD,EAAA,gBAAiC,CAAA,IAAA,GAAA,QAAA;WACZ,KAAA,CAAA,GAAA,EAAA,EAAA,EAAA;AACjB,IAAA,MAAA,CAAA,cAA2C,CAAA,GAAA,EAAA,gBAAA,CAAA,IAAA,EAAA;AACvC,MAAA,KAAA,EAAA,EAAO;AACP,MAAA,YAAgC;KACnC,CAAA;AAHe,IAAA,OAAA,GAAA;;AAKZ,EAAA,gBAAU,CAAC,KAAA,GAAA,KAAA;WACd,EAAA,CAAA,GAAA,EAAA;AAFe,IAAA,OAAA,GAAA,CAAA,gBAEf,CAAA,IAAA,CAAA;AACL;;"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
var EditorPosition;
|
2
2
|
(function (EditorPosition) {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
})(EditorPosition || (EditorPosition = {}));export{EditorPosition}
|
3
|
+
EditorPosition[EditorPosition["ONE"] = 0] = "ONE";
|
4
|
+
EditorPosition[EditorPosition["TWO"] = 1] = "TWO";
|
5
|
+
EditorPosition[EditorPosition["THREE"] = 2] = "THREE";
|
6
|
+
})(EditorPosition || (EditorPosition = {}));export{EditorPosition};//# sourceMappingURL=editor-missing-types.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"editor-missing-types.js","sources":["../../src/protocol/editor-missing-types.ts"],"sourcesContent":[null],"names":[],"mappings":"IA0GY;AAAZ,CAAA,UAAY,cAAc,EAAA;AACtB,EAAA,cAAA,CAAA,cAAA,CAAA,KAAA,CAAA,GAAA,CAAA,CAAA,GAAA,KAAA;AACA,EAAA,cAAA,CAAA,cAAA,CAAA,KAAA,CAAA,GAAA,CAAA,CAAA,GAAA,KAAA;AACA,EAAA,cAAA,CAAA,cAAA,CAAA,OAAA,CAAA,GAAA,CAAA,CAAA,GAAA,OAAA;AACJ,CAAC,EAJW,cAAc,KAAd,cAAc,GAIzB,EAAA,CAAA,CAAA"}
|
@@ -1,57 +1,57 @@
|
|
1
1
|
/* tslint:disable */
|
2
2
|
class ProxyIdentifier {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
3
|
+
static count = 0;
|
4
|
+
_proxyIdentifierBrand;
|
5
|
+
_suppressCompilerUnusedWarning;
|
6
|
+
isMain;
|
7
|
+
sid;
|
8
|
+
nid;
|
9
|
+
hostId;
|
10
|
+
constructor(isMain, sid, hostId) {
|
11
|
+
this.isMain = isMain;
|
12
|
+
this.sid = sid;
|
13
|
+
this.nid = ++ProxyIdentifier.count;
|
14
|
+
this.hostId = hostId;
|
15
|
+
}
|
16
16
|
}
|
17
17
|
const identifiers = [];
|
18
18
|
function createMainContextProxyIdentifier(identifier, hostIdentifier = 1 /* HostIdentifier.ServerMainThread */) {
|
19
|
-
|
20
|
-
|
21
|
-
|
19
|
+
const result = new ProxyIdentifier(true, identifier, hostIdentifier);
|
20
|
+
identifiers[result.nid] = result;
|
21
|
+
return result;
|
22
22
|
}
|
23
23
|
function createExtHostContextProxyIdentifier(identifier, hostIdentifier = 0 /* HostIdentifier.ServerExtHost */) {
|
24
|
-
|
25
|
-
|
26
|
-
|
24
|
+
const result = new ProxyIdentifier(false, identifier, hostIdentifier);
|
25
|
+
identifiers[result.nid] = result;
|
26
|
+
return result;
|
27
27
|
}
|
28
28
|
function getStringIdentifierForProxy(nid) {
|
29
|
-
|
29
|
+
return identifiers[nid] ? identifiers[nid].sid : null;
|
30
30
|
}
|
31
31
|
var HostIdentifier;
|
32
32
|
(function (HostIdentifier) {
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
33
|
+
HostIdentifier[HostIdentifier["ServerExtHost"] = 0] = "ServerExtHost";
|
34
|
+
HostIdentifier[HostIdentifier["ServerMainThread"] = 1] = "ServerMainThread";
|
35
|
+
HostIdentifier[HostIdentifier["BrowserExtHost"] = 2] = "BrowserExtHost";
|
36
|
+
HostIdentifier[HostIdentifier["BrowserClientThread"] = 3] = "BrowserClientThread";
|
37
37
|
})(HostIdentifier || (HostIdentifier = {}));
|
38
38
|
var RequestType;
|
39
39
|
(function (RequestType) {
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
40
|
+
/**
|
41
|
+
* Process the request on the reciever end
|
42
|
+
*/
|
43
|
+
RequestType[RequestType["Process"] = 0] = "Process";
|
44
|
+
/**
|
45
|
+
* Forward the requests to the other end.
|
46
|
+
*/
|
47
|
+
RequestType[RequestType["Forward"] = 1] = "Forward";
|
48
|
+
/**
|
49
|
+
* Process the request and reply with Forward bit.
|
50
|
+
*/
|
51
|
+
RequestType[RequestType["ProcessAndForward"] = 2] = "ProcessAndForward";
|
52
52
|
})(RequestType || (RequestType = {}));
|
53
53
|
var TransportType;
|
54
54
|
(function (TransportType) {
|
55
|
-
|
56
|
-
|
57
|
-
})(TransportType || (TransportType = {}));export{HostIdentifier,ProxyIdentifier,RequestType,TransportType,createExtHostContextProxyIdentifier,createMainContextProxyIdentifier,getStringIdentifierForProxy}
|
55
|
+
TransportType[TransportType["Socket"] = 0] = "Socket";
|
56
|
+
TransportType[TransportType["WebSocket"] = 1] = "WebSocket";
|
57
|
+
})(TransportType || (TransportType = {}));export{HostIdentifier,ProxyIdentifier,RequestType,TransportType,createExtHostContextProxyIdentifier,createMainContextProxyIdentifier,getStringIdentifierForProxy};//# sourceMappingURL=proxy-identifier.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"proxy-identifier.js","sources":["../../src/protocol/proxy-identifier.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;MAmBa,eAAe,CAAA;AACjB,EAAA,OAAA,KAAO,GAAQ,CAAA;AACtB,EAAA,qBAAA;AACA,EAAA,8BAAA;AAEgB,EAAA,MAAA;AACA,EAAA,GAAA;AACA,EAAA,GAAA;AACA,EAAA,MAAA;AAEhB,EAAA,WAAA,CAAA,MAA2B,EAAA,GAAa,EAAA,MAAyB,EAAA;AAC7D,IAAA,IAAA,CAAA,MAAK,GAAA,MAAS;AACd,IAAA,IAAA,CAAA,GAAI,GAAC,GAAM;QACX,CAAI,GAAA,KAAO,eAAkB,CAAA,KAAC;AAC9B,IAAA,IAAA,CAAA,MAAK,GAAA,MAAS;;;AAItB,MAAM,WAAW,GAA2B,EAAE;AAE9B,SAAA,gCAAgC,CAAI,UAAkB,EAAE,cAAgE,GAAA,CAAA,wCAAA;QAC9H,MAAA,GAAS,IAAA,eAAmB,CAAA,IAAQ,EAAA,UAAY,EAAA,cAAgB,CAAA;AACtE,EAAA,WAAA,CAAA,MAAkB,CAAA,OAAK;AACvB,EAAA,OAAA;AACJ;AAEgB,SAAA,mCAAmC,CAAI,UAAkB,EAAE,cAA6D,GAAA,CAAA,qCAAA;QAC9H,MAAA,GAAS,IAAA,eAAmB,CAAA,KAAS,EAAA,UAAY,EAAA,cAAgB,CAAA;AACvE,EAAA,WAAA,CAAA,MAAkB,CAAA,OAAK;AACvB,EAAA,OAAA;AACJ;AAEM,SAAU,2BAA2B,CAAC,GAAW,EAAA;AACnD,EAAA,OAAA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