@adminide-stack/extension-api 0.0.2-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +39 -0
- package/README.md +9 -0
- package/lib/connections/jsonrpc2/connection.d.ts +55 -0
- package/lib/connections/jsonrpc2/connection.js +575 -0
- package/lib/connections/jsonrpc2/connection.js.map +1 -0
- package/lib/connections/jsonrpc2/connection.test.d.ts +1 -0
- package/lib/connections/jsonrpc2/connection.test.js +443 -0
- package/lib/connections/jsonrpc2/connection.test.js.map +1 -0
- package/lib/connections/jsonrpc2/events.d.ts +24 -0
- package/lib/connections/jsonrpc2/events.js +117 -0
- package/lib/connections/jsonrpc2/events.js.map +1 -0
- package/lib/connections/jsonrpc2/index.d.ts +5 -0
- package/lib/connections/jsonrpc2/index.js +24 -0
- package/lib/connections/jsonrpc2/index.js.map +1 -0
- package/lib/connections/jsonrpc2/linkedMap.d.ts +29 -0
- package/lib/connections/jsonrpc2/linkedMap.js +254 -0
- package/lib/connections/jsonrpc2/linkedMap.js.map +1 -0
- package/lib/connections/jsonrpc2/linkedMap.test.d.ts +1 -0
- package/lib/connections/jsonrpc2/linkedMap.test.js +62 -0
- package/lib/connections/jsonrpc2/linkedMap.test.js.map +1 -0
- package/lib/connections/jsonrpc2/messages.d.ts +117 -0
- package/lib/connections/jsonrpc2/messages.js +72 -0
- package/lib/connections/jsonrpc2/messages.js.map +1 -0
- package/lib/connections/jsonrpc2/test-helper.d.ts +8 -0
- package/lib/connections/jsonrpc2/test-helper.js +36 -0
- package/lib/connections/jsonrpc2/test-helper.js.map +1 -0
- package/lib/connections/jsonrpc2/trace.d.ts +30 -0
- package/lib/connections/jsonrpc2/trace.js +96 -0
- package/lib/connections/jsonrpc2/trace.js.map +1 -0
- package/lib/connections/jsonrpc2/transport.d.ts +36 -0
- package/lib/connections/jsonrpc2/transport.js +66 -0
- package/lib/connections/jsonrpc2/transport.js.map +1 -0
- package/lib/connections/jsonrpc2/transports/browser-websocket.d.ts +0 -0
- package/lib/connections/jsonrpc2/transports/browser-websocket.js +189 -0
- package/lib/connections/jsonrpc2/transports/browser-websocket.js.map +1 -0
- package/lib/connections/jsonrpc2/transports/merged.d.ts +0 -0
- package/lib/connections/jsonrpc2/transports/merged.js +239 -0
- package/lib/connections/jsonrpc2/transports/merged.js.map +1 -0
- package/lib/connections/jsonrpc2/transports/webSocket.d.ts +0 -0
- package/lib/connections/jsonrpc2/transports/webSocket.js +138 -0
- package/lib/connections/jsonrpc2/transports/webSocket.js.map +1 -0
- package/lib/connections/jsonrpc2/transports/webWorker.d.ts +22 -0
- package/lib/connections/jsonrpc2/transports/webWorker.js +111 -0
- package/lib/connections/jsonrpc2/transports/webWorker.js.map +1 -0
- package/lib/connections/proxy/index.d.ts +1 -0
- package/lib/connections/proxy/index.js +18 -0
- package/lib/connections/proxy/index.js.map +1 -0
- package/lib/connections/proxy/proxy.d.ts +49 -0
- package/lib/connections/proxy/proxy.js +108 -0
- package/lib/connections/proxy/proxy.js.map +1 -0
- package/lib/connections/proxy/proxy.test.d.ts +1 -0
- package/lib/connections/proxy/proxy.test.js +55 -0
- package/lib/connections/proxy/proxy.test.js.map +1 -0
- package/lib/connections/remote-rpc/browser-remote-rpc.d.ts +12 -0
- package/lib/connections/remote-rpc/browser-remote-rpc.js +62 -0
- package/lib/connections/remote-rpc/browser-remote-rpc.js.map +1 -0
- package/lib/connections/remote-rpc/browser-server-rpc.test.d.ts +0 -0
- package/lib/connections/remote-rpc/browser-server-rpc.test.js +317 -0
- package/lib/connections/remote-rpc/browser-server-rpc.test.js.map +1 -0
- package/lib/connections/remote-rpc/index.d.ts +1 -0
- package/lib/connections/remote-rpc/index.js +18 -0
- package/lib/connections/remote-rpc/index.js.map +1 -0
- package/lib/connections/remote-rpc/old-browser-remote-rpc.d.ts +12 -0
- package/lib/connections/remote-rpc/old-browser-remote-rpc.js +41 -0
- package/lib/connections/remote-rpc/old-browser-remote-rpc.js.map +1 -0
- package/lib/connections/remote-rpc/rxjs-websockets.d.ts +18 -0
- package/lib/connections/remote-rpc/rxjs-websockets.js +80 -0
- package/lib/connections/remote-rpc/rxjs-websockets.js.map +1 -0
- package/lib/constants/action-types.d.ts +30 -0
- package/lib/constants/action-types.js +38 -0
- package/lib/constants/action-types.js.map +1 -0
- package/lib/constants/index.d.ts +2 -0
- package/lib/constants/index.js +19 -0
- package/lib/constants/index.js.map +1 -0
- package/lib/constants/types.d.ts +8 -0
- package/lib/constants/types.js +12 -0
- package/lib/constants/types.js.map +1 -0
- package/lib/core/expr/evaluator.d.ts +27 -0
- package/lib/core/expr/evaluator.js +144 -0
- package/lib/core/expr/evaluator.js.map +1 -0
- package/lib/core/expr/evaluator.test.d.ts +1 -0
- package/lib/core/expr/evaluator.test.js +52 -0
- package/lib/core/expr/evaluator.test.js.map +1 -0
- package/lib/core/expr/index.d.ts +3 -0
- package/lib/core/expr/index.js +20 -0
- package/lib/core/expr/index.js.map +1 -0
- package/lib/core/expr/lexer.d.ts +114 -0
- package/lib/core/expr/lexer.js +418 -0
- package/lib/core/expr/lexer.js.map +1 -0
- package/lib/core/expr/parser.d.ts +52 -0
- package/lib/core/expr/parser.js +242 -0
- package/lib/core/expr/parser.js.map +1 -0
- package/lib/core/index.d.ts +2 -0
- package/lib/core/index.js +19 -0
- package/lib/core/index.js.map +1 -0
- package/lib/core/types/ext-host-types-bk.d.ts +0 -0
- package/lib/core/types/ext-host-types-bk.js +1275 -0
- package/lib/core/types/ext-host-types-bk.js.map +1 -0
- package/lib/core/types/ext-host-types.d.ts +32 -0
- package/lib/core/types/ext-host-types.js +71 -0
- package/lib/core/types/ext-host-types.js.map +1 -0
- package/lib/core/types/index.d.ts +1 -0
- package/lib/core/types/index.js +18 -0
- package/lib/core/types/index.js.map +1 -0
- package/lib/errors/errors.d.ts +1 -0
- package/lib/errors/errors.js +13 -0
- package/lib/errors/errors.js.map +1 -0
- package/lib/errors/index.d.ts +1 -0
- package/lib/errors/index.js +18 -0
- package/lib/errors/index.js.map +1 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +24 -0
- package/lib/index.js.map +1 -0
- package/lib/interfaces/command.d.ts +28 -0
- package/lib/interfaces/command.js +3 -0
- package/lib/interfaces/command.js.map +1 -0
- package/lib/interfaces/configuration.d.ts +36 -0
- package/lib/interfaces/configuration.js +3 -0
- package/lib/interfaces/configuration.js.map +1 -0
- package/lib/interfaces/connection.d.ts +12 -0
- package/lib/interfaces/connection.js +3 -0
- package/lib/interfaces/connection.js.map +1 -0
- package/lib/interfaces/context.d.ts +12 -0
- package/lib/interfaces/context.js +3 -0
- package/lib/interfaces/context.js.map +1 -0
- package/lib/interfaces/contributions/contribution-service.d.ts +20 -0
- package/lib/interfaces/contributions/contribution-service.js +3 -0
- package/lib/interfaces/contributions/contribution-service.js.map +1 -0
- package/lib/interfaces/contributions/contribution.d.ts +383 -0
- package/lib/interfaces/contributions/contribution.js +49 -0
- package/lib/interfaces/contributions/contribution.js.map +1 -0
- package/lib/interfaces/contributions/index.d.ts +2 -0
- package/lib/interfaces/contributions/index.js +19 -0
- package/lib/interfaces/contributions/index.js.map +1 -0
- package/lib/interfaces/controller.d.ts +30 -0
- package/lib/interfaces/controller.js +3 -0
- package/lib/interfaces/controller.js.map +1 -0
- package/lib/interfaces/errors.d.ts +5 -0
- package/lib/interfaces/errors.js +3 -0
- package/lib/interfaces/errors.js.map +1 -0
- package/lib/interfaces/ext-services/contributon-registry.d.ts +45 -0
- package/lib/interfaces/ext-services/contributon-registry.js +3 -0
- package/lib/interfaces/ext-services/contributon-registry.js.map +1 -0
- package/lib/interfaces/ext-services/ext-services.d.ts +23 -0
- package/lib/interfaces/ext-services/ext-services.js +3 -0
- package/lib/interfaces/ext-services/ext-services.js.map +1 -0
- package/lib/interfaces/ext-services/extension-service.d.ts +8 -0
- package/lib/interfaces/ext-services/extension-service.js +3 -0
- package/lib/interfaces/ext-services/extension-service.js.map +1 -0
- package/lib/interfaces/ext-services/index.d.ts +8 -0
- package/lib/interfaces/ext-services/index.js +25 -0
- package/lib/interfaces/ext-services/index.js.map +1 -0
- package/lib/interfaces/ext-services/model-service.d.ts +89 -0
- package/lib/interfaces/ext-services/model-service.js +3 -0
- package/lib/interfaces/ext-services/model-service.js.map +1 -0
- package/lib/interfaces/ext-services/panel-view-registry.d.ts +21 -0
- package/lib/interfaces/ext-services/panel-view-registry.js +3 -0
- package/lib/interfaces/ext-services/panel-view-registry.js.map +1 -0
- package/lib/interfaces/ext-services/settings-service.d.ts +18 -0
- package/lib/interfaces/ext-services/settings-service.js +3 -0
- package/lib/interfaces/ext-services/settings-service.js.map +1 -0
- package/lib/interfaces/ext-services/view-service.d.ts +65 -0
- package/lib/interfaces/ext-services/view-service.js +4 -0
- package/lib/interfaces/ext-services/view-service.js.map +1 -0
- package/lib/interfaces/ext-services/viewer-service.d.ts +125 -0
- package/lib/interfaces/ext-services/viewer-service.js +5 -0
- package/lib/interfaces/ext-services/viewer-service.js.map +1 -0
- package/lib/interfaces/extension-manifest.d.ts +8 -0
- package/lib/interfaces/extension-manifest.js +3 -0
- package/lib/interfaces/extension-manifest.js.map +1 -0
- package/lib/interfaces/extension.d.ts +72 -0
- package/lib/interfaces/extension.js +3 -0
- package/lib/interfaces/extension.js.map +1 -0
- package/lib/interfaces/generated-models.d.ts +3716 -0
- package/lib/interfaces/generated-models.js +648 -0
- package/lib/interfaces/generated-models.js.map +1 -0
- package/lib/interfaces/graphql.d.ts +17 -0
- package/lib/interfaces/graphql.js +5 -0
- package/lib/interfaces/graphql.js.map +1 -0
- package/lib/interfaces/index.d.ts +21 -0
- package/lib/interfaces/index.js +38 -0
- package/lib/interfaces/index.js.map +1 -0
- package/lib/interfaces/languages-types.d.ts +65 -0
- package/lib/interfaces/languages-types.js +3 -0
- package/lib/interfaces/languages-types.js.map +1 -0
- package/lib/interfaces/model.d.ts +51 -0
- package/lib/interfaces/model.js +9 -0
- package/lib/interfaces/model.js.map +1 -0
- package/lib/interfaces/plain-types.d.ts +4 -0
- package/lib/interfaces/plain-types.js +6 -0
- package/lib/interfaces/plain-types.js.map +1 -0
- package/lib/interfaces/plainTypes.d.ts +68 -0
- package/lib/interfaces/plainTypes.js +3 -0
- package/lib/interfaces/plainTypes.js.map +1 -0
- package/lib/interfaces/platform-context.d.ts +82 -0
- package/lib/interfaces/platform-context.js +3 -0
- package/lib/interfaces/platform-context.js.map +1 -0
- package/lib/interfaces/react-props/action-item.d.ts +20 -0
- package/lib/interfaces/react-props/action-item.js +3 -0
- package/lib/interfaces/react-props/action-item.js.map +1 -0
- package/lib/interfaces/react-props/extension-controller.d.ts +11 -0
- package/lib/interfaces/react-props/extension-controller.js +3 -0
- package/lib/interfaces/react-props/extension-controller.js.map +1 -0
- package/lib/interfaces/react-props/index.d.ts +3 -0
- package/lib/interfaces/react-props/index.js +20 -0
- package/lib/interfaces/react-props/index.js.map +1 -0
- package/lib/interfaces/react-props/platform-context.d.ts +7 -0
- package/lib/interfaces/react-props/platform-context.js +3 -0
- package/lib/interfaces/react-props/platform-context.js.map +1 -0
- package/lib/interfaces/registry-extension.d.ts +21 -0
- package/lib/interfaces/registry-extension.js +3 -0
- package/lib/interfaces/registry-extension.js.map +1 -0
- package/lib/interfaces/settings.d.ts +51 -0
- package/lib/interfaces/settings.js +3 -0
- package/lib/interfaces/settings.js.map +1 -0
- package/lib/interfaces/text-document.d.ts +57 -0
- package/lib/interfaces/text-document.js +119 -0
- package/lib/interfaces/text-document.js.map +1 -0
- package/lib/interfaces/webview/index.d.ts +3 -0
- package/lib/interfaces/webview/index.js +20 -0
- package/lib/interfaces/webview/index.js.map +1 -0
- package/lib/interfaces/webview/webview-manager-service.d.ts +22 -0
- package/lib/interfaces/webview/webview-manager-service.js +3 -0
- package/lib/interfaces/webview/webview-manager-service.js.map +1 -0
- package/lib/interfaces/webview/webview-port-mapping.d.ts +4 -0
- package/lib/interfaces/webview/webview-port-mapping.js +3 -0
- package/lib/interfaces/webview/webview-port-mapping.js.map +1 -0
- package/lib/interfaces/webview/webview.d.ts +99 -0
- package/lib/interfaces/webview/webview.js +9 -0
- package/lib/interfaces/webview/webview.js.map +1 -0
- package/lib/main.d.ts +0 -0
- package/lib/main.js +3 -0
- package/lib/main.js.map +1 -0
- package/lib/protocol/client.protocol.d.ts +99 -0
- package/lib/protocol/client.protocol.js +8 -0
- package/lib/protocol/client.protocol.js.map +1 -0
- package/lib/protocol/common.protocol.d.ts +289 -0
- package/lib/protocol/common.protocol.js +68 -0
- package/lib/protocol/common.protocol.js.map +1 -0
- package/lib/protocol/editor-missing-types.d.ts +87 -0
- package/lib/protocol/editor-missing-types.js +10 -0
- package/lib/protocol/editor-missing-types.js.map +1 -0
- package/lib/protocol/index.d.ts +6 -0
- package/lib/protocol/index.js +24 -0
- package/lib/protocol/index.js.map +1 -0
- package/lib/protocol/proxy-identifier.d.ts +51 -0
- package/lib/protocol/proxy-identifier.js +59 -0
- package/lib/protocol/proxy-identifier.js.map +1 -0
- package/lib/protocol/rpc-logger.d.ts +8 -0
- package/lib/protocol/rpc-logger.js +60 -0
- package/lib/protocol/rpc-logger.js.map +1 -0
- package/lib/protocol/rpc-protocol.d.ts +148 -0
- package/lib/protocol/rpc-protocol.js +750 -0
- package/lib/protocol/rpc-protocol.js.map +1 -0
- package/lib/protocol/rpc-protocol.test.d.ts +1 -0
- package/lib/protocol/rpc-protocol.test.js +171 -0
- package/lib/protocol/rpc-protocol.test.js.map +1 -0
- package/lib/protocol/server.protocol-bk.d.ts +0 -0
- package/lib/protocol/server.protocol-bk.js +719 -0
- package/lib/protocol/server.protocol-bk.js.map +1 -0
- package/lib/protocol/server.protocol.d.ts +91 -0
- package/lib/protocol/server.protocol.js +31 -0
- package/lib/protocol/server.protocol.js.map +1 -0
- package/lib/protocol/shared/editor.d.ts +4 -0
- package/lib/protocol/shared/editor.js +28 -0
- package/lib/protocol/shared/editor.js.map +1 -0
- package/lib/protocol/shared/tasks.d.ts +104 -0
- package/lib/protocol/shared/tasks.js +4 -0
- package/lib/protocol/shared/tasks.js.map +1 -0
- package/lib/protocol/temporary-types.d.ts +198 -0
- package/lib/protocol/temporary-types.js +30 -0
- package/lib/protocol/temporary-types.js.map +1 -0
- package/lib/protocol/utils/index.d.ts +1 -0
- package/lib/protocol/utils/index.js +18 -0
- package/lib/protocol/utils/index.js.map +1 -0
- package/lib/protocol/utils/lazy-promise.d.ts +18 -0
- package/lib/protocol/utils/lazy-promise.js +69 -0
- package/lib/protocol/utils/lazy-promise.js.map +1 -0
- package/lib/utils/errors.d.ts +6 -0
- package/lib/utils/errors.js +19 -0
- package/lib/utils/errors.js.map +1 -0
- package/lib/utils/extensions.d.ts +9 -0
- package/lib/utils/extensions.js +25 -0
- package/lib/utils/extensions.js.map +1 -0
- package/lib/utils/helper.test.d.ts +9 -0
- package/lib/utils/helper.test.js +15 -0
- package/lib/utils/helper.test.js.map +1 -0
- package/lib/utils/index.d.ts +7 -0
- package/lib/utils/index.js +25 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/paths-util.d.ts +27 -0
- package/lib/utils/paths-util.js +127 -0
- package/lib/utils/paths-util.js.map +1 -0
- package/lib/utils/rxjs/combineLatestOrDefault.d.ts +28 -0
- package/lib/utils/rxjs/combineLatestOrDefault.js +111 -0
- package/lib/utils/rxjs/combineLatestOrDefault.js.map +1 -0
- package/lib/utils/rxjs/combineLatestOrDefault.test.d.ts +1 -0
- package/lib/utils/rxjs/combineLatestOrDefault.test.js +52 -0
- package/lib/utils/rxjs/combineLatestOrDefault.test.js.map +1 -0
- package/lib/utils/rxjs/index.d.ts +1 -0
- package/lib/utils/rxjs/index.js +18 -0
- package/lib/utils/rxjs/index.js.map +1 -0
- package/lib/utils/util.d.ts +19 -0
- package/lib/utils/util.js +57 -0
- package/lib/utils/util.js.map +1 -0
- package/lib/worker-lib/MessageTypes.d.ts +5 -0
- package/lib/worker-lib/MessageTypes.js +9 -0
- package/lib/worker-lib/MessageTypes.js.map +1 -0
- package/lib/worker-lib/index.d.ts +2 -0
- package/lib/worker-lib/index.js +19 -0
- package/lib/worker-lib/index.js.map +1 -0
- package/lib/worker-lib/webWorkerLink.d.ts +12 -0
- package/lib/worker-lib/webWorkerLink.js +96 -0
- package/lib/worker-lib/webWorkerLink.js.map +1 -0
- package/lib/worker-lib/workerUtils.d.ts +11 -0
- package/lib/worker-lib/workerUtils.js +178 -0
- package/lib/worker-lib/workerUtils.js.map +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import { UriComponents } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
|
2
|
+
import { ConfigurationScope, IConfigurationModel, IConfigurationData } from '@adminide-stack/core';
|
|
3
|
+
import * as cdeops from 'cdeops';
|
|
4
|
+
import { Selection } from '@vscode-alt/monaco-editor/esm/vs/editor/common/core/selection';
|
|
5
|
+
import { IRange } from '@vscode-alt/monaco-editor/esm/vs/editor/common/core/range';
|
|
6
|
+
import * as modes from '@vscode-alt/monaco-editor/esm/vs/editor/common/modes';
|
|
7
|
+
import { CharacterPair, CommentRule, EnterAction } from '@vscode-alt/monaco-editor/esm/vs/editor/common/modes/languageConfiguration';
|
|
8
|
+
import { IMarkerData } from '@vscode-alt/monaco-editor/esm/vs/platform/markers/common/markers';
|
|
9
|
+
import { IModelChangedEvent } from './temporary-types';
|
|
10
|
+
import * as editorCommonAdditions from './editor-missing-types';
|
|
11
|
+
import { IMarkdownString } from '@vscode-alt/monaco-editor/esm/vs/base/common/htmlContent';
|
|
12
|
+
import { ISingleEditOperation } from '@vscode-alt/monaco-editor/esm/vs/editor/common/model';
|
|
13
|
+
declare type EditorViewColumn = editorCommonAdditions.EditorPosition;
|
|
14
|
+
export interface IRawColorInfo {
|
|
15
|
+
color: [number, number, number, number];
|
|
16
|
+
range: IRange;
|
|
17
|
+
}
|
|
18
|
+
export declare class IdObject {
|
|
19
|
+
_id?: number;
|
|
20
|
+
private static _n;
|
|
21
|
+
static mixin<T extends object>(object: T): T & IdObject;
|
|
22
|
+
}
|
|
23
|
+
export declare const enum ISuggestDataDtoField {
|
|
24
|
+
label = "a",
|
|
25
|
+
kind = "b",
|
|
26
|
+
detail = "c",
|
|
27
|
+
documentation = "d",
|
|
28
|
+
sortText = "e",
|
|
29
|
+
filterText = "f",
|
|
30
|
+
preselect = "g",
|
|
31
|
+
insertText = "h",
|
|
32
|
+
insertTextRules = "i",
|
|
33
|
+
range = "j",
|
|
34
|
+
commitCharacters = "k",
|
|
35
|
+
additionalTextEdits = "l",
|
|
36
|
+
command = "m",
|
|
37
|
+
kindModifier = "n",
|
|
38
|
+
label2 = "o"
|
|
39
|
+
}
|
|
40
|
+
export interface ISuggestDataDto {
|
|
41
|
+
[ISuggestDataDtoField.label]: string;
|
|
42
|
+
[ISuggestDataDtoField.label2]?: string | modes.CompletionItemLabel;
|
|
43
|
+
[ISuggestDataDtoField.kind]?: modes.CompletionItemKind;
|
|
44
|
+
[ISuggestDataDtoField.detail]?: string;
|
|
45
|
+
[ISuggestDataDtoField.documentation]?: string | IMarkdownString;
|
|
46
|
+
[ISuggestDataDtoField.sortText]?: string;
|
|
47
|
+
[ISuggestDataDtoField.filterText]?: string;
|
|
48
|
+
[ISuggestDataDtoField.preselect]?: true;
|
|
49
|
+
[ISuggestDataDtoField.insertText]?: string;
|
|
50
|
+
[ISuggestDataDtoField.insertTextRules]?: modes.CompletionItemInsertTextRule;
|
|
51
|
+
[ISuggestDataDtoField.range]?: IRange | {
|
|
52
|
+
insert: IRange;
|
|
53
|
+
replace: IRange;
|
|
54
|
+
};
|
|
55
|
+
[ISuggestDataDtoField.commitCharacters]?: string[];
|
|
56
|
+
[ISuggestDataDtoField.additionalTextEdits]?: ISingleEditOperation[];
|
|
57
|
+
[ISuggestDataDtoField.command]?: modes.Command;
|
|
58
|
+
[ISuggestDataDtoField.kindModifier]?: modes.CompletionItemTag[];
|
|
59
|
+
x?: ChainedCacheId;
|
|
60
|
+
}
|
|
61
|
+
export declare type CacheId = number;
|
|
62
|
+
export declare type ChainedCacheId = [CacheId, CacheId];
|
|
63
|
+
export declare const enum ISuggestResultDtoField {
|
|
64
|
+
defaultRanges = "a",
|
|
65
|
+
completions = "b",
|
|
66
|
+
isIncomplete = "c",
|
|
67
|
+
duration = "d"
|
|
68
|
+
}
|
|
69
|
+
export interface SuggestResultDto extends IdObject {
|
|
70
|
+
[ISuggestResultDtoField.defaultRanges]: {
|
|
71
|
+
insert: IRange;
|
|
72
|
+
replace: IRange;
|
|
73
|
+
};
|
|
74
|
+
[ISuggestResultDtoField.completions]: ISuggestDataDto[];
|
|
75
|
+
[ISuggestResultDtoField.isIncomplete]: undefined | true;
|
|
76
|
+
[ISuggestResultDtoField.duration]: number;
|
|
77
|
+
x?: number;
|
|
78
|
+
}
|
|
79
|
+
export interface WorkspaceSymbolDto extends IdObject {
|
|
80
|
+
name: string;
|
|
81
|
+
containerName?: string;
|
|
82
|
+
kind: modes.SymbolKind;
|
|
83
|
+
location: LocationDto;
|
|
84
|
+
}
|
|
85
|
+
export interface WorkspaceSymbolsDto extends IdObject {
|
|
86
|
+
symbols: WorkspaceSymbolDto[];
|
|
87
|
+
}
|
|
88
|
+
export interface ResourceFileEditDto {
|
|
89
|
+
oldUri: UriComponents;
|
|
90
|
+
newUri: UriComponents;
|
|
91
|
+
}
|
|
92
|
+
export interface ResourceTextEditDto {
|
|
93
|
+
resource: UriComponents;
|
|
94
|
+
modelVersionId?: number;
|
|
95
|
+
edits: modes.TextEdit[];
|
|
96
|
+
}
|
|
97
|
+
export interface WorkspaceEditDto {
|
|
98
|
+
edits: (ResourceFileEditDto | ResourceTextEditDto)[];
|
|
99
|
+
rejectReason?: string;
|
|
100
|
+
}
|
|
101
|
+
export declare function reviveWorkspaceEditDto(data: WorkspaceEditDto): modes.WorkspaceEdit;
|
|
102
|
+
export declare type CommandDto = ObjectIdentifier & modes.Command;
|
|
103
|
+
export interface CodeActionDto {
|
|
104
|
+
title: string;
|
|
105
|
+
edit?: WorkspaceEditDto;
|
|
106
|
+
diagnostics?: IMarkerData[];
|
|
107
|
+
command?: modes.Command;
|
|
108
|
+
kind?: string;
|
|
109
|
+
}
|
|
110
|
+
export interface ExtHostDocumentSaveParticipantShape {
|
|
111
|
+
}
|
|
112
|
+
export interface ITextEditorPositionData {
|
|
113
|
+
[id: string]: EditorViewColumn;
|
|
114
|
+
}
|
|
115
|
+
export interface ISelectionChangeEvent {
|
|
116
|
+
selections: Selection[];
|
|
117
|
+
source?: string;
|
|
118
|
+
}
|
|
119
|
+
export interface ExtHostDocumentContentProvidersShape {
|
|
120
|
+
$provideTextDocumentContent(handle: number, uri: UriComponents): Promise<string>;
|
|
121
|
+
}
|
|
122
|
+
export interface IModelAddedData {
|
|
123
|
+
uri: UriComponents;
|
|
124
|
+
versionId: number;
|
|
125
|
+
lines: string[];
|
|
126
|
+
EOL: string;
|
|
127
|
+
modeId: string;
|
|
128
|
+
isDirty: boolean;
|
|
129
|
+
}
|
|
130
|
+
export interface ExtHostDocumentsShape {
|
|
131
|
+
$acceptModelModeChanged(strURL: UriComponents, oldModeId: string, newModeId: string): void;
|
|
132
|
+
$acceptModelSaved(strURL: UriComponents): void;
|
|
133
|
+
$acceptDirtyStateChanged(strURL: UriComponents, isDirty: boolean): void;
|
|
134
|
+
$acceptModelChanged(strURL: UriComponents, e: IModelChangedEvent, isDirty: boolean): void;
|
|
135
|
+
}
|
|
136
|
+
export interface IDocumentContentProvidersShape {
|
|
137
|
+
$registerTextContentProvider(handle: number, scheme: string): void;
|
|
138
|
+
$unregisterTextContentProvider(handle: number): void;
|
|
139
|
+
$onVirtualDocumentChange(uri: UriComponents, value: string): void;
|
|
140
|
+
}
|
|
141
|
+
export interface IDocumentsShape {
|
|
142
|
+
$tryCreateDocument(options?: {
|
|
143
|
+
language?: string;
|
|
144
|
+
content?: string;
|
|
145
|
+
}): Promise<UriComponents>;
|
|
146
|
+
$tryOpenDocument(uri: UriComponents): Promise<void>;
|
|
147
|
+
$trySaveDocument(uri: UriComponents): Promise<boolean>;
|
|
148
|
+
}
|
|
149
|
+
export interface IUndoStopOptions {
|
|
150
|
+
undoStopBefore: boolean;
|
|
151
|
+
undoStopAfter: boolean;
|
|
152
|
+
}
|
|
153
|
+
export interface ITextDocumentShowOptions {
|
|
154
|
+
position?: EditorViewColumn;
|
|
155
|
+
preserveFocus?: boolean;
|
|
156
|
+
pinned?: boolean;
|
|
157
|
+
selection?: IRange;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* We prefix anything that runs on the main thread as `ClientThread` and the one that
|
|
161
|
+
* runs on the extension host as `WebExtHost`. The `WebExtHost` services usually runs on
|
|
162
|
+
* a webworker in browser.
|
|
163
|
+
*/
|
|
164
|
+
export interface IStaticOrganizationData {
|
|
165
|
+
id: string;
|
|
166
|
+
name: string;
|
|
167
|
+
configuration?: UriComponents | null;
|
|
168
|
+
isUntitled?: boolean | null;
|
|
169
|
+
}
|
|
170
|
+
export interface IOrganizationData extends IStaticOrganizationData {
|
|
171
|
+
resources?: {
|
|
172
|
+
uri: UriComponents;
|
|
173
|
+
name: string;
|
|
174
|
+
index: number;
|
|
175
|
+
}[];
|
|
176
|
+
}
|
|
177
|
+
export interface DefinitionLinkDto {
|
|
178
|
+
originSelectionRange?: IRange;
|
|
179
|
+
uri: UriComponents;
|
|
180
|
+
range: IRange;
|
|
181
|
+
targetSelectionRange?: IRange;
|
|
182
|
+
}
|
|
183
|
+
export declare namespace ObjectIdentifier {
|
|
184
|
+
const name = "$ident";
|
|
185
|
+
function mixin<T>(obj: T, id: number): T & ObjectIdentifier;
|
|
186
|
+
function of(obj: any): number;
|
|
187
|
+
}
|
|
188
|
+
export interface ObjectIdentifier {
|
|
189
|
+
$ident: number;
|
|
190
|
+
}
|
|
191
|
+
export interface IOrganizationConfigurationChangeEventData {
|
|
192
|
+
changedConfiguration: IConfigurationModel;
|
|
193
|
+
changedConfigurationByResource: {
|
|
194
|
+
[folder: string]: IConfigurationModel;
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
export interface IConfigurationInitData extends IConfigurationData {
|
|
198
|
+
configurationScopes: {
|
|
199
|
+
[key: string]: ConfigurationScope;
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
export interface ISerializedDocumentFilter {
|
|
203
|
+
$serialized: true;
|
|
204
|
+
language?: string;
|
|
205
|
+
scheme?: string;
|
|
206
|
+
pattern?: cdeops.GlobPattern;
|
|
207
|
+
exclusive?: boolean;
|
|
208
|
+
}
|
|
209
|
+
export interface LocationDto {
|
|
210
|
+
uri: UriComponents;
|
|
211
|
+
range: IRange;
|
|
212
|
+
}
|
|
213
|
+
export interface LinkDto extends ObjectIdentifier {
|
|
214
|
+
range: IRange;
|
|
215
|
+
url?: string | UriComponents;
|
|
216
|
+
}
|
|
217
|
+
export interface ISerializedSignatureHelpProviderMetadata {
|
|
218
|
+
readonly triggerCharacters: ReadonlyArray<string>;
|
|
219
|
+
readonly retriggerCharacters: ReadonlyArray<string>;
|
|
220
|
+
}
|
|
221
|
+
export interface ISerializedRegExp {
|
|
222
|
+
pattern: string;
|
|
223
|
+
flags?: string;
|
|
224
|
+
}
|
|
225
|
+
export interface ISerializedIndentationRule {
|
|
226
|
+
decreaseIndentPattern: ISerializedRegExp;
|
|
227
|
+
increaseIndentPattern: ISerializedRegExp;
|
|
228
|
+
indentNextLinePattern?: ISerializedRegExp;
|
|
229
|
+
unIndentedLinePattern?: ISerializedRegExp;
|
|
230
|
+
}
|
|
231
|
+
export interface ISerializedOnEnterRule {
|
|
232
|
+
beforeText: ISerializedRegExp;
|
|
233
|
+
afterText?: ISerializedRegExp;
|
|
234
|
+
oneLineAboveText?: ISerializedRegExp;
|
|
235
|
+
action: EnterAction;
|
|
236
|
+
}
|
|
237
|
+
export interface ISerializedLanguageConfiguration {
|
|
238
|
+
comments?: CommentRule;
|
|
239
|
+
brackets?: CharacterPair[];
|
|
240
|
+
wordPattern?: ISerializedRegExp;
|
|
241
|
+
indentationRules?: ISerializedIndentationRule;
|
|
242
|
+
onEnterRules?: ISerializedOnEnterRule[];
|
|
243
|
+
__electricCharacterSupport?: {
|
|
244
|
+
brackets?: any;
|
|
245
|
+
docComment?: {
|
|
246
|
+
scope: string;
|
|
247
|
+
open: string;
|
|
248
|
+
lineStart: string;
|
|
249
|
+
close?: string;
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
__characterPairSupport?: {
|
|
253
|
+
autoClosingPairs: {
|
|
254
|
+
open: string;
|
|
255
|
+
close: string;
|
|
256
|
+
notIn?: string[];
|
|
257
|
+
}[];
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
export interface ILanguageFeaturesShape {
|
|
261
|
+
$unregister(handle: number): void;
|
|
262
|
+
$registerOutlineSupport(handle: number, selector: ISerializedDocumentFilter[], extensionId: string): void;
|
|
263
|
+
$registerCodeLensSupport(handle: number, selector: ISerializedDocumentFilter[], eventHandle: number): void;
|
|
264
|
+
$registerCodeInsetSupport(handle: number, selector: ISerializedDocumentFilter[], eventHandle: number | undefined): void;
|
|
265
|
+
$emitCodeLensEvent(eventHandle: number, event?: any): void;
|
|
266
|
+
$registerDeclarationSupport(handle: number, selector: ISerializedDocumentFilter[]): void;
|
|
267
|
+
$registerDefinitionSupport(handle: number, selector: ISerializedDocumentFilter[]): void;
|
|
268
|
+
$registerImplementationSupport(handle: number, selector: ISerializedDocumentFilter[]): void;
|
|
269
|
+
$registerTypeDefinitionSupport(handle: number, selector: ISerializedDocumentFilter[]): void;
|
|
270
|
+
$registerHoverProvider(handle: number, selector: ISerializedDocumentFilter[]): void;
|
|
271
|
+
$registerDocumentHighlightProvider(handle: number, selector: ISerializedDocumentFilter[]): void;
|
|
272
|
+
$registerReferenceSupport(handle: number, selector: ISerializedDocumentFilter[]): void;
|
|
273
|
+
$registerQuickFixSupport(handle: number, selector: ISerializedDocumentFilter[], supportedKinds?: string[]): void;
|
|
274
|
+
$registerDocumentFormattingSupport(handle: number, selector: ISerializedDocumentFilter[]): void;
|
|
275
|
+
$registerCompletionItemProvider(handle: number, selector: ISerializedDocumentFilter[], eventHandle: number): void;
|
|
276
|
+
$registerRangeFormattingSupport(handle: number, selector: ISerializedDocumentFilter[]): void;
|
|
277
|
+
$registerOnTypeFormattingSupport(handle: number, selector: ISerializedDocumentFilter[], autoFormatTriggerCharacters: string[]): void;
|
|
278
|
+
$registerNavigateTypeSupport(handle: number): void;
|
|
279
|
+
$registerRenameSupport(handle: number, selector: ISerializedDocumentFilter[], supportsResolveInitialValues: boolean): void;
|
|
280
|
+
$registerSuggestSupport(handle: number, selector: ISerializedDocumentFilter[], triggerCharacters: string[], supportsResolveDetails: boolean): void;
|
|
281
|
+
$registerSignatureHelpProvider(handle: number, selector: ISerializedDocumentFilter[], metadata: ISerializedSignatureHelpProviderMetadata): void;
|
|
282
|
+
$registerDocumentLinkProvider(handle: number, selector: ISerializedDocumentFilter[]): void;
|
|
283
|
+
$registerDocumentColorProvider(handle: number, selector: ISerializedDocumentFilter[]): void;
|
|
284
|
+
$registerFoldingRangeProvider(handle: number, selector: ISerializedDocumentFilter[]): void;
|
|
285
|
+
$registerSelectionRangeProvider(handle: number, selector: ISerializedDocumentFilter[]): void;
|
|
286
|
+
$registerCallHierarchyProvider(handle: number, selector: ISerializedDocumentFilter[]): void;
|
|
287
|
+
$setLanguageConfiguration(handle: number, languageId: string, configuration: ISerializedLanguageConfiguration): void;
|
|
288
|
+
}
|
|
289
|
+
export {};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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 {
|
|
6
|
+
static mixin(object) {
|
|
7
|
+
object._id = IdObject._n++;
|
|
8
|
+
return object;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.IdObject = IdObject;
|
|
12
|
+
IdObject._n = 0;
|
|
13
|
+
// needed
|
|
14
|
+
var ISuggestDataDtoField;
|
|
15
|
+
(function (ISuggestDataDtoField) {
|
|
16
|
+
ISuggestDataDtoField["label"] = "a";
|
|
17
|
+
ISuggestDataDtoField["kind"] = "b";
|
|
18
|
+
ISuggestDataDtoField["detail"] = "c";
|
|
19
|
+
ISuggestDataDtoField["documentation"] = "d";
|
|
20
|
+
ISuggestDataDtoField["sortText"] = "e";
|
|
21
|
+
ISuggestDataDtoField["filterText"] = "f";
|
|
22
|
+
ISuggestDataDtoField["preselect"] = "g";
|
|
23
|
+
ISuggestDataDtoField["insertText"] = "h";
|
|
24
|
+
ISuggestDataDtoField["insertTextRules"] = "i";
|
|
25
|
+
ISuggestDataDtoField["range"] = "j";
|
|
26
|
+
ISuggestDataDtoField["commitCharacters"] = "k";
|
|
27
|
+
ISuggestDataDtoField["additionalTextEdits"] = "l";
|
|
28
|
+
ISuggestDataDtoField["command"] = "m";
|
|
29
|
+
ISuggestDataDtoField["kindModifier"] = "n";
|
|
30
|
+
// to merge into label
|
|
31
|
+
ISuggestDataDtoField["label2"] = "o";
|
|
32
|
+
})(ISuggestDataDtoField = exports.ISuggestDataDtoField || (exports.ISuggestDataDtoField = {}));
|
|
33
|
+
var ISuggestResultDtoField;
|
|
34
|
+
(function (ISuggestResultDtoField) {
|
|
35
|
+
ISuggestResultDtoField["defaultRanges"] = "a";
|
|
36
|
+
ISuggestResultDtoField["completions"] = "b";
|
|
37
|
+
ISuggestResultDtoField["isIncomplete"] = "c";
|
|
38
|
+
ISuggestResultDtoField["duration"] = "d";
|
|
39
|
+
})(ISuggestResultDtoField = exports.ISuggestResultDtoField || (exports.ISuggestResultDtoField = {}));
|
|
40
|
+
function reviveWorkspaceEditDto(data) {
|
|
41
|
+
if (data && data.edits) {
|
|
42
|
+
for (const edit of data.edits) {
|
|
43
|
+
if (typeof edit.resource === 'object') {
|
|
44
|
+
edit.resource = uri_1.URI.revive(edit.resource);
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
edit.newUri = uri_1.URI.revive(edit.newUri);
|
|
48
|
+
edit.oldUri = uri_1.URI.revive(edit.oldUri);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return data;
|
|
53
|
+
}
|
|
54
|
+
exports.reviveWorkspaceEditDto = reviveWorkspaceEditDto;
|
|
55
|
+
var ObjectIdentifier;
|
|
56
|
+
(function (ObjectIdentifier) {
|
|
57
|
+
ObjectIdentifier.name = '$ident';
|
|
58
|
+
function mixin(obj, id) {
|
|
59
|
+
Object.defineProperty(obj, ObjectIdentifier.name, { value: id, enumerable: true });
|
|
60
|
+
return obj;
|
|
61
|
+
}
|
|
62
|
+
ObjectIdentifier.mixin = mixin;
|
|
63
|
+
function of(obj) {
|
|
64
|
+
return obj[ObjectIdentifier.name];
|
|
65
|
+
}
|
|
66
|
+
ObjectIdentifier.of = of;
|
|
67
|
+
})(ObjectIdentifier = exports.ObjectIdentifier || (exports.ObjectIdentifier = {}));
|
|
68
|
+
//# sourceMappingURL=common.protocol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.protocol.js","sourceRoot":"","sources":["../../src/protocol/common.protocol.ts"],"names":[],"mappings":";;;AAAA,0EAAsF;AAqBtF,MAAa,QAAQ;IAGV,MAAM,CAAC,KAAK,CAAmB,MAAS;QACrC,MAAO,CAAC,GAAG,GAAG,QAAQ,CAAC,EAAE,EAAE,CAAC;QAClC,OAAY,MAAM,CAAC;IACvB,CAAC;;AANL,4BAOC;AALkB,WAAE,GAAG,CAAC,CAAC;AAM1B,SAAS;AACT,IAAkB,oBAkBjB;AAlBD,WAAkB,oBAAoB;IACrC,mCAAW,CAAA;IACX,kCAAU,CAAA;IACV,oCAAY,CAAA;IACZ,2CAAmB,CAAA;IACnB,sCAAc,CAAA;IACd,wCAAgB,CAAA;IAChB,uCAAe,CAAA;IACf,wCAAgB,CAAA;IAChB,6CAAqB,CAAA;IACrB,mCAAW,CAAA;IACX,8CAAsB,CAAA;IACtB,iDAAyB,CAAA;IACzB,qCAAa,CAAA;IACb,0CAAkB,CAAA;IAElB,sBAAsB;IACtB,oCAAY,CAAA;AACb,CAAC,EAlBiB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAkBrC;AAyBD,IAAkB,sBAKjB;AALD,WAAkB,sBAAsB;IACvC,6CAAmB,CAAA;IACnB,2CAAiB,CAAA;IACjB,4CAAkB,CAAA;IAClB,wCAAc,CAAA;AACf,CAAC,EALiB,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAKvC;AAyCD,SAAgB,sBAAsB,CAAC,IAAsB;IACzD,IAAI,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE;QACpB,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,KAAK,EAAE;YAC3B,IAAI,OAA6B,IAAK,CAAC,QAAQ,KAAK,QAAQ,EAAE;gBACpC,IAAK,CAAC,QAAQ,GAAG,SAAG,CAAC,MAAM,CAAuB,IAAK,CAAC,QAAQ,CAAC,CAAC;aAC3F;iBAAM;gBACmB,IAAK,CAAC,MAAM,GAAG,SAAG,CAAC,MAAM,CAAuB,IAAK,CAAC,MAAM,CAAC,CAAC;gBAC9D,IAAK,CAAC,MAAM,GAAG,SAAG,CAAC,MAAM,CAAuB,IAAK,CAAC,MAAM,CAAC,CAAC;aACvF;SACJ;KACJ;IACD,OAA4B,IAAI,CAAC;AACrC,CAAC;AAZD,wDAYC;AA+FD,IAAiB,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,GAAhB,wBAAgB,KAAhB,wBAAgB,QAShC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { IMarkdownString } from '@vscode-alt/monaco-editor/esm/vs/base/common/htmlContent';
|
|
2
|
+
import { UriComponents } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
|
3
|
+
import { IRange } from '@vscode-alt/monaco-editor/esm/vs/editor/common/core/range';
|
|
4
|
+
import { ThemeColor } from '@vscode-alt/monaco-editor/esm/vs/platform/theme/common/themeService';
|
|
5
|
+
import { TrackedRangeStickiness, OverviewRulerLane } from '@vscode-alt/monaco-editor/esm/vs/editor/common/model';
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export interface IContentDecorationRenderOptions {
|
|
10
|
+
contentText?: string;
|
|
11
|
+
contentIconPath?: string | UriComponents;
|
|
12
|
+
border?: string;
|
|
13
|
+
borderColor?: string | ThemeColor;
|
|
14
|
+
fontStyle?: string;
|
|
15
|
+
fontWeight?: string;
|
|
16
|
+
textDecoration?: string;
|
|
17
|
+
color?: string | ThemeColor;
|
|
18
|
+
backgroundColor?: string | ThemeColor;
|
|
19
|
+
margin?: string;
|
|
20
|
+
width?: string;
|
|
21
|
+
height?: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
export interface IThemeDecorationRenderOptions {
|
|
27
|
+
backgroundColor?: string | ThemeColor;
|
|
28
|
+
outline?: string;
|
|
29
|
+
outlineColor?: string | ThemeColor;
|
|
30
|
+
outlineStyle?: string;
|
|
31
|
+
outlineWidth?: string;
|
|
32
|
+
border?: string;
|
|
33
|
+
borderColor?: string | ThemeColor;
|
|
34
|
+
borderRadius?: string;
|
|
35
|
+
borderSpacing?: string;
|
|
36
|
+
borderStyle?: string;
|
|
37
|
+
borderWidth?: string;
|
|
38
|
+
fontStyle?: string;
|
|
39
|
+
fontWeight?: string;
|
|
40
|
+
textDecoration?: string;
|
|
41
|
+
cursor?: string;
|
|
42
|
+
color?: string | ThemeColor;
|
|
43
|
+
opacity?: number;
|
|
44
|
+
letterSpacing?: string;
|
|
45
|
+
gutterIconPath?: string | UriComponents;
|
|
46
|
+
gutterIconSize?: string;
|
|
47
|
+
overviewRulerColor?: string | ThemeColor;
|
|
48
|
+
before?: IContentDecorationRenderOptions;
|
|
49
|
+
after?: IContentDecorationRenderOptions;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
export interface IDecorationRenderOptions extends IThemeDecorationRenderOptions {
|
|
55
|
+
isWholeLine?: boolean;
|
|
56
|
+
rangeBehavior?: TrackedRangeStickiness;
|
|
57
|
+
overviewRulerLane?: OverviewRulerLane;
|
|
58
|
+
light?: IThemeDecorationRenderOptions;
|
|
59
|
+
dark?: IThemeDecorationRenderOptions;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
*/
|
|
64
|
+
export interface IThemeDecorationInstanceRenderOptions {
|
|
65
|
+
before?: IContentDecorationRenderOptions;
|
|
66
|
+
after?: IContentDecorationRenderOptions;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
export interface IDecorationInstanceRenderOptions extends IThemeDecorationInstanceRenderOptions {
|
|
72
|
+
light?: IThemeDecorationInstanceRenderOptions;
|
|
73
|
+
dark?: IThemeDecorationInstanceRenderOptions;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
export interface IDecorationOptions {
|
|
79
|
+
range: IRange;
|
|
80
|
+
hoverMessage?: IMarkdownString | IMarkdownString[];
|
|
81
|
+
renderOptions?: IDecorationInstanceRenderOptions;
|
|
82
|
+
}
|
|
83
|
+
export declare enum EditorPosition {
|
|
84
|
+
ONE = 0,
|
|
85
|
+
TWO = 1,
|
|
86
|
+
THREE = 2
|
|
87
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EditorPosition = void 0;
|
|
4
|
+
var EditorPosition;
|
|
5
|
+
(function (EditorPosition) {
|
|
6
|
+
EditorPosition[EditorPosition["ONE"] = 0] = "ONE";
|
|
7
|
+
EditorPosition[EditorPosition["TWO"] = 1] = "TWO";
|
|
8
|
+
EditorPosition[EditorPosition["THREE"] = 2] = "THREE";
|
|
9
|
+
})(EditorPosition = exports.EditorPosition || (exports.EditorPosition = {}));
|
|
10
|
+
//# sourceMappingURL=editor-missing-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-missing-types.js","sourceRoot":"","sources":["../../src/protocol/editor-missing-types.ts"],"names":[],"mappings":";;;AA0GA,IAAY,cAIX;AAJD,WAAY,cAAc;IACtB,iDAAO,CAAA;IACP,iDAAO,CAAA;IACP,qDAAS,CAAA;AACb,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
// export * from './server.protocol';
|
|
18
|
+
__exportStar(require("./editor-missing-types"), exports);
|
|
19
|
+
__exportStar(require("./proxy-identifier"), exports);
|
|
20
|
+
__exportStar(require("./temporary-types"), exports);
|
|
21
|
+
__exportStar(require("./client.protocol"), exports);
|
|
22
|
+
__exportStar(require("./common.protocol"), exports);
|
|
23
|
+
__exportStar(require("./shared/editor"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/protocol/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qCAAqC;AACrC,yDAAuC;AACvC,qDAAmC;AACnC,oDAAkC;AAClC,oDAAkC;AAClC,oDAAkC;AAClC,kDAAgC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export interface IRPCProtocol {
|
|
2
|
+
/**
|
|
3
|
+
* Returns a proxy to an object addressable/named in the extension host process or in the renderer process.
|
|
4
|
+
*/
|
|
5
|
+
getProxy<T>(identifier: ProxyIdentifier<T>): T;
|
|
6
|
+
/**
|
|
7
|
+
* Register manually created instance.
|
|
8
|
+
*/
|
|
9
|
+
set<T, R extends T>(identifier: ProxyIdentifier<T>, instance: R): R;
|
|
10
|
+
/**
|
|
11
|
+
* Assert these identifiers are already registered via `.set`.
|
|
12
|
+
*/
|
|
13
|
+
assertRegistered(identifiers: ProxyIdentifier<any>[]): void;
|
|
14
|
+
}
|
|
15
|
+
export declare class ProxyIdentifier<T> {
|
|
16
|
+
static count: number;
|
|
17
|
+
_proxyIdentifierBrand: void;
|
|
18
|
+
_suppressCompilerUnusedWarning: T;
|
|
19
|
+
readonly isMain: boolean;
|
|
20
|
+
readonly sid: string;
|
|
21
|
+
readonly nid: number;
|
|
22
|
+
readonly hostId: HostIdentifier;
|
|
23
|
+
constructor(isMain: boolean, sid: string, hostId?: HostIdentifier);
|
|
24
|
+
}
|
|
25
|
+
export declare function createMainContextProxyIdentifier<T>(identifier: string, hostIdentifier?: HostIdentifier): ProxyIdentifier<T>;
|
|
26
|
+
export declare function createExtHostContextProxyIdentifier<T>(identifier: string, hostIdentifier?: HostIdentifier): ProxyIdentifier<T>;
|
|
27
|
+
export declare function getStringIdentifierForProxy(nid: number): string;
|
|
28
|
+
export declare const enum HostIdentifier {
|
|
29
|
+
ServerExtHost = 0,
|
|
30
|
+
ServerMainThread = 1,
|
|
31
|
+
BrowserExtHost = 2,
|
|
32
|
+
BrowserClientThread = 3
|
|
33
|
+
}
|
|
34
|
+
export declare const enum RequestType {
|
|
35
|
+
/**
|
|
36
|
+
* Process the request on the reciever end
|
|
37
|
+
*/
|
|
38
|
+
Process = 0,
|
|
39
|
+
/**
|
|
40
|
+
* Forward the requests to the other end.
|
|
41
|
+
*/
|
|
42
|
+
Forward = 1,
|
|
43
|
+
/**
|
|
44
|
+
* Process the request and reply with Forward bit.
|
|
45
|
+
*/
|
|
46
|
+
ProcessAndForward = 2
|
|
47
|
+
}
|
|
48
|
+
export declare const enum TransportType {
|
|
49
|
+
Socket = 0,
|
|
50
|
+
WebSocket = 1
|
|
51
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TransportType = exports.RequestType = exports.HostIdentifier = exports.getStringIdentifierForProxy = exports.createExtHostContextProxyIdentifier = exports.createMainContextProxyIdentifier = exports.ProxyIdentifier = void 0;
|
|
5
|
+
class ProxyIdentifier {
|
|
6
|
+
constructor(isMain, sid, hostId) {
|
|
7
|
+
this.isMain = isMain;
|
|
8
|
+
this.sid = sid;
|
|
9
|
+
this.nid = (++ProxyIdentifier.count);
|
|
10
|
+
this.hostId = hostId;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.ProxyIdentifier = ProxyIdentifier;
|
|
14
|
+
ProxyIdentifier.count = 0;
|
|
15
|
+
const identifiers = [];
|
|
16
|
+
function createMainContextProxyIdentifier(identifier, hostIdentifier = 1 /* HostIdentifier.ServerMainThread */) {
|
|
17
|
+
const result = new ProxyIdentifier(true, identifier, hostIdentifier);
|
|
18
|
+
identifiers[result.nid] = result;
|
|
19
|
+
return result;
|
|
20
|
+
}
|
|
21
|
+
exports.createMainContextProxyIdentifier = createMainContextProxyIdentifier;
|
|
22
|
+
function createExtHostContextProxyIdentifier(identifier, hostIdentifier = 0 /* HostIdentifier.ServerExtHost */) {
|
|
23
|
+
const result = new ProxyIdentifier(false, identifier, hostIdentifier);
|
|
24
|
+
identifiers[result.nid] = result;
|
|
25
|
+
return result;
|
|
26
|
+
}
|
|
27
|
+
exports.createExtHostContextProxyIdentifier = createExtHostContextProxyIdentifier;
|
|
28
|
+
function getStringIdentifierForProxy(nid) {
|
|
29
|
+
return identifiers[nid] ? identifiers[nid].sid : null;
|
|
30
|
+
}
|
|
31
|
+
exports.getStringIdentifierForProxy = getStringIdentifierForProxy;
|
|
32
|
+
var HostIdentifier;
|
|
33
|
+
(function (HostIdentifier) {
|
|
34
|
+
HostIdentifier[HostIdentifier["ServerExtHost"] = 0] = "ServerExtHost";
|
|
35
|
+
HostIdentifier[HostIdentifier["ServerMainThread"] = 1] = "ServerMainThread";
|
|
36
|
+
HostIdentifier[HostIdentifier["BrowserExtHost"] = 2] = "BrowserExtHost";
|
|
37
|
+
HostIdentifier[HostIdentifier["BrowserClientThread"] = 3] = "BrowserClientThread";
|
|
38
|
+
})(HostIdentifier = exports.HostIdentifier || (exports.HostIdentifier = {}));
|
|
39
|
+
var RequestType;
|
|
40
|
+
(function (RequestType) {
|
|
41
|
+
/**
|
|
42
|
+
* Process the request on the reciever end
|
|
43
|
+
*/
|
|
44
|
+
RequestType[RequestType["Process"] = 0] = "Process";
|
|
45
|
+
/**
|
|
46
|
+
* Forward the requests to the other end.
|
|
47
|
+
*/
|
|
48
|
+
RequestType[RequestType["Forward"] = 1] = "Forward";
|
|
49
|
+
/**
|
|
50
|
+
* Process the request and reply with Forward bit.
|
|
51
|
+
*/
|
|
52
|
+
RequestType[RequestType["ProcessAndForward"] = 2] = "ProcessAndForward";
|
|
53
|
+
})(RequestType = exports.RequestType || (exports.RequestType = {}));
|
|
54
|
+
var TransportType;
|
|
55
|
+
(function (TransportType) {
|
|
56
|
+
TransportType[TransportType["Socket"] = 0] = "Socket";
|
|
57
|
+
TransportType[TransportType["WebSocket"] = 1] = "WebSocket";
|
|
58
|
+
})(TransportType = exports.TransportType || (exports.TransportType = {}));
|
|
59
|
+
//# sourceMappingURL=proxy-identifier.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy-identifier.js","sourceRoot":"","sources":["../../src/protocol/proxy-identifier.ts"],"names":[],"mappings":";AAAA,oBAAoB;;;AAmBpB,MAAa,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,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;;AAfL,0CAgBC;AAfiB,qBAAK,GAAG,CAAC,CAAC;AAiB5B,MAAM,WAAW,GAA2B,EAAE,CAAC;AAE/C,SAAgB,gCAAgC,CAAI,UAAkB,EAAE,wDAAgE;IACpI,MAAM,MAAM,GAAG,IAAI,eAAe,CAAI,IAAI,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACxE,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;IACjC,OAAO,MAAM,CAAC;AAClB,CAAC;AAJD,4EAIC;AAED,SAAgB,mCAAmC,CAAI,UAAkB,EAAE,qDAA6D;IACpI,MAAM,MAAM,GAAG,IAAI,eAAe,CAAI,KAAK,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;IACjC,OAAO,MAAM,CAAC;AAClB,CAAC;AAJD,kFAIC;AAED,SAAgB,2BAA2B,CAAC,GAAW;IACnD,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1D,CAAC;AAFD,kEAEC;AAED,IAAkB,cAKjB;AALD,WAAkB,cAAc;IAC5B,qEAAiB,CAAA;IACjB,2EAAoB,CAAA;IACpB,uEAAkB,CAAA;IAClB,iFAAuB,CAAA;AAC3B,CAAC,EALiB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAK/B;AAED,IAAkB,WAajB;AAbD,WAAkB,WAAW;IACzB;;OAEG;IACH,mDAAW,CAAA;IACX;;OAEG;IACH,mDAAW,CAAA;IACX;;OAEG;IACH,uEAAqB,CAAA;AACzB,CAAC,EAbiB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAa5B;AACD,IAAkB,aAGjB;AAHD,WAAkB,aAAa;IAC3B,qDAAU,CAAA;IACV,2DAAa,CAAA;AACjB,CAAC,EAHiB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAG9B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RequestInitiator, IRPCProtocolLogger } from './rpc-protocol';
|
|
2
|
+
export declare class RPCLogger implements IRPCProtocolLogger {
|
|
3
|
+
private _totalIncoming;
|
|
4
|
+
private _totalOutgoing;
|
|
5
|
+
private _log;
|
|
6
|
+
logIncoming(msgLength: number, req: number, initiator: RequestInitiator, str: string, data?: any): void;
|
|
7
|
+
logOutgoing(msgLength: number, req: number, initiator: RequestInitiator, str: string, data?: any): void;
|
|
8
|
+
}
|