@adminide-stack/extension-api 5.0.1-alpha.10 → 5.0.1-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/connections/jsonrpc2/connection.js +5 -13
- package/lib/connections/jsonrpc2/events.js +3 -4
- package/lib/connections/jsonrpc2/linkedMap.js +3 -4
- package/lib/connections/jsonrpc2/messages.js +6 -7
- package/lib/connections/jsonrpc2/test-helper.js +4 -6
- package/lib/connections/jsonrpc2/trace.js +3 -6
- package/lib/connections/jsonrpc2/transport.js +3 -5
- package/lib/connections/jsonrpc2/transports/webWorker.js +3 -5
- package/lib/connections/proxy/proxy.js +7 -8
- package/lib/connections/remote-rpc/browser-remote-rpc.js +3 -9
- package/lib/connections/remote-rpc/rxjs-websockets.d.ts +1 -1
- package/lib/connections/remote-rpc/rxjs-websockets.js +4 -8
- package/lib/constants/action-types.js +5 -6
- package/lib/constants/types.js +2 -3
- package/lib/core/expr/evaluator.js +6 -9
- package/lib/core/expr/lexer.js +6 -7
- package/lib/core/expr/parser.js +4 -6
- package/lib/core/types/ext-host-types.js +5 -8
- package/lib/index.d.ts +2 -0
- package/lib/index.js +1 -8
- package/lib/interfaces/context.d.ts +1 -1
- package/lib/interfaces/contributions/contribution.js +3 -4
- package/lib/interfaces/generated-models.d.ts +1237 -1073
- package/lib/interfaces/generated-models.js +88 -63
- package/lib/interfaces/graphql.d.ts +1 -1
- package/lib/interfaces/graphql.js +1 -2
- package/lib/interfaces/model.js +2 -3
- package/lib/interfaces/platform-context.d.ts +1 -1
- package/lib/interfaces/text-document.js +4 -6
- package/lib/interfaces/webview/webview.js +2 -3
- package/lib/protocol/client.protocol.js +3 -5
- package/lib/protocol/common.protocol.js +6 -8
- package/lib/protocol/editor-missing-types.js +2 -3
- package/lib/protocol/index.d.ts +3 -0
- package/lib/protocol/proxy-identifier.js +8 -9
- package/lib/protocol/rpc-logger.js +3 -6
- package/lib/protocol/rpc-protocol.js +10 -20
- package/lib/protocol/server.protocol.js +14 -16
- package/lib/protocol/shared/editor.js +4 -6
- package/lib/protocol/temporary-types.js +4 -13
- package/lib/protocol/utils/lazy-promise.js +3 -6
- package/lib/utils/abortable-rx.d.ts +32 -0
- package/lib/utils/abortable-rx.js +112 -0
- package/lib/utils/errors.js +3 -4
- package/lib/utils/extensions.js +3 -5
- package/lib/utils/helper.test.js +2 -3
- package/lib/utils/paths-util.js +5 -7
- package/lib/utils/rxjs/combineLatestOrDefault.js +3 -10
- package/lib/utils/util.js +7 -9
- package/lib/worker-lib/webWorkerLink.d.ts +1 -1
- package/package.json +5 -4
- package/lib/connections/jsonrpc2/connection.js.map +0 -1
- package/lib/connections/jsonrpc2/connection.test.js +0 -441
- package/lib/connections/jsonrpc2/connection.test.js.map +0 -1
- package/lib/connections/jsonrpc2/events.js.map +0 -1
- package/lib/connections/jsonrpc2/index.js +0 -8
- package/lib/connections/jsonrpc2/index.js.map +0 -1
- package/lib/connections/jsonrpc2/linkedMap.js.map +0 -1
- package/lib/connections/jsonrpc2/linkedMap.test.js +0 -60
- package/lib/connections/jsonrpc2/linkedMap.test.js.map +0 -1
- package/lib/connections/jsonrpc2/messages.js.map +0 -1
- package/lib/connections/jsonrpc2/test-helper.js.map +0 -1
- package/lib/connections/jsonrpc2/trace.js.map +0 -1
- package/lib/connections/jsonrpc2/transport.js.map +0 -1
- package/lib/connections/jsonrpc2/transports/browser-websocket.d.ts +0 -0
- package/lib/connections/jsonrpc2/transports/browser-websocket.js +0 -189
- package/lib/connections/jsonrpc2/transports/browser-websocket.js.map +0 -1
- package/lib/connections/jsonrpc2/transports/merged.d.ts +0 -0
- package/lib/connections/jsonrpc2/transports/merged.js +0 -239
- package/lib/connections/jsonrpc2/transports/merged.js.map +0 -1
- package/lib/connections/jsonrpc2/transports/webSocket.d.ts +0 -0
- package/lib/connections/jsonrpc2/transports/webSocket.js +0 -138
- package/lib/connections/jsonrpc2/transports/webSocket.js.map +0 -1
- package/lib/connections/jsonrpc2/transports/webWorker.js.map +0 -1
- package/lib/connections/proxy/index.js +0 -2
- package/lib/connections/proxy/index.js.map +0 -1
- package/lib/connections/proxy/proxy.js.map +0 -1
- package/lib/connections/proxy/proxy.test.js +0 -53
- package/lib/connections/proxy/proxy.test.js.map +0 -1
- package/lib/connections/remote-rpc/browser-remote-rpc.js.map +0 -1
- package/lib/connections/remote-rpc/browser-server-rpc.test.d.ts +0 -0
- package/lib/connections/remote-rpc/browser-server-rpc.test.js +0 -317
- package/lib/connections/remote-rpc/browser-server-rpc.test.js.map +0 -1
- package/lib/connections/remote-rpc/index.js +0 -2
- package/lib/connections/remote-rpc/index.js.map +0 -1
- package/lib/connections/remote-rpc/old-browser-remote-rpc.js +0 -37
- package/lib/connections/remote-rpc/old-browser-remote-rpc.js.map +0 -1
- package/lib/connections/remote-rpc/rxjs-websockets.js.map +0 -1
- package/lib/constants/action-types.js.map +0 -1
- package/lib/constants/index.js +0 -3
- package/lib/constants/index.js.map +0 -1
- package/lib/constants/types.js.map +0 -1
- package/lib/core/expr/evaluator.js.map +0 -1
- package/lib/core/expr/evaluator.test.js +0 -50
- package/lib/core/expr/evaluator.test.js.map +0 -1
- package/lib/core/expr/index.js +0 -4
- package/lib/core/expr/index.js.map +0 -1
- package/lib/core/expr/lexer.js.map +0 -1
- package/lib/core/expr/parser.js.map +0 -1
- package/lib/core/index.js +0 -3
- package/lib/core/index.js.map +0 -1
- package/lib/core/types/ext-host-types-bk.d.ts +0 -0
- package/lib/core/types/ext-host-types-bk.js +0 -1275
- package/lib/core/types/ext-host-types-bk.js.map +0 -1
- package/lib/core/types/ext-host-types.js.map +0 -1
- package/lib/core/types/index.js +0 -2
- package/lib/core/types/index.js.map +0 -1
- package/lib/errors/errors.js +0 -9
- package/lib/errors/errors.js.map +0 -1
- package/lib/errors/index.js +0 -2
- package/lib/errors/index.js.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/interfaces/command.js +0 -2
- package/lib/interfaces/command.js.map +0 -1
- package/lib/interfaces/configuration.js +0 -2
- package/lib/interfaces/configuration.js.map +0 -1
- package/lib/interfaces/connection.js +0 -2
- package/lib/interfaces/connection.js.map +0 -1
- package/lib/interfaces/context.js +0 -2
- package/lib/interfaces/context.js.map +0 -1
- package/lib/interfaces/contributions/contribution-service.js +0 -2
- package/lib/interfaces/contributions/contribution-service.js.map +0 -1
- package/lib/interfaces/contributions/contribution.js.map +0 -1
- package/lib/interfaces/contributions/index.js +0 -3
- package/lib/interfaces/contributions/index.js.map +0 -1
- package/lib/interfaces/controller.js +0 -2
- package/lib/interfaces/controller.js.map +0 -1
- package/lib/interfaces/errors.js +0 -2
- package/lib/interfaces/errors.js.map +0 -1
- package/lib/interfaces/ext-services/contributon-registry.js +0 -2
- package/lib/interfaces/ext-services/contributon-registry.js.map +0 -1
- package/lib/interfaces/ext-services/ext-services.js +0 -2
- package/lib/interfaces/ext-services/ext-services.js.map +0 -1
- package/lib/interfaces/ext-services/extension-service.js +0 -2
- package/lib/interfaces/ext-services/extension-service.js.map +0 -1
- package/lib/interfaces/ext-services/index.js +0 -9
- package/lib/interfaces/ext-services/index.js.map +0 -1
- package/lib/interfaces/ext-services/model-service.js +0 -2
- package/lib/interfaces/ext-services/model-service.js.map +0 -1
- package/lib/interfaces/ext-services/panel-view-registry.js +0 -2
- package/lib/interfaces/ext-services/panel-view-registry.js.map +0 -1
- package/lib/interfaces/ext-services/settings-service.js +0 -2
- package/lib/interfaces/ext-services/settings-service.js.map +0 -1
- package/lib/interfaces/ext-services/view-service.js +0 -2
- package/lib/interfaces/ext-services/view-service.js.map +0 -1
- package/lib/interfaces/ext-services/viewer-service.js +0 -4
- package/lib/interfaces/ext-services/viewer-service.js.map +0 -1
- package/lib/interfaces/extension-manifest.js +0 -2
- package/lib/interfaces/extension-manifest.js.map +0 -1
- package/lib/interfaces/extension.js +0 -2
- package/lib/interfaces/extension.js.map +0 -1
- package/lib/interfaces/generated-models.js.map +0 -1
- package/lib/interfaces/graphql.js.map +0 -1
- package/lib/interfaces/index.js +0 -22
- package/lib/interfaces/index.js.map +0 -1
- package/lib/interfaces/languages-types.js +0 -2
- package/lib/interfaces/languages-types.js.map +0 -1
- package/lib/interfaces/model.js.map +0 -1
- package/lib/interfaces/plain-types.js +0 -5
- package/lib/interfaces/plain-types.js.map +0 -1
- package/lib/interfaces/plainTypes.js +0 -2
- package/lib/interfaces/plainTypes.js.map +0 -1
- package/lib/interfaces/platform-context.js +0 -2
- package/lib/interfaces/platform-context.js.map +0 -1
- package/lib/interfaces/react-props/action-item.js +0 -2
- package/lib/interfaces/react-props/action-item.js.map +0 -1
- package/lib/interfaces/react-props/extension-controller.js +0 -2
- package/lib/interfaces/react-props/extension-controller.js.map +0 -1
- package/lib/interfaces/react-props/index.js +0 -4
- package/lib/interfaces/react-props/index.js.map +0 -1
- package/lib/interfaces/react-props/platform-context.js +0 -2
- package/lib/interfaces/react-props/platform-context.js.map +0 -1
- package/lib/interfaces/registry-extension.js +0 -2
- package/lib/interfaces/registry-extension.js.map +0 -1
- package/lib/interfaces/settings.js +0 -2
- package/lib/interfaces/settings.js.map +0 -1
- package/lib/interfaces/text-document.js.map +0 -1
- package/lib/interfaces/webview/index.js +0 -4
- package/lib/interfaces/webview/index.js.map +0 -1
- package/lib/interfaces/webview/webview-manager-service.js +0 -2
- package/lib/interfaces/webview/webview-manager-service.js.map +0 -1
- package/lib/interfaces/webview/webview-port-mapping.js +0 -2
- package/lib/interfaces/webview/webview-port-mapping.js.map +0 -1
- package/lib/interfaces/webview/webview.js.map +0 -1
- package/lib/main.d.ts +0 -0
- package/lib/main.js +0 -3
- package/lib/main.js.map +0 -1
- package/lib/protocol/client.protocol.js.map +0 -1
- package/lib/protocol/common.protocol.js.map +0 -1
- package/lib/protocol/editor-missing-types.js.map +0 -1
- package/lib/protocol/index.js +0 -8
- package/lib/protocol/index.js.map +0 -1
- package/lib/protocol/proxy-identifier.js.map +0 -1
- package/lib/protocol/rpc-logger.js.map +0 -1
- package/lib/protocol/rpc-protocol.js.map +0 -1
- package/lib/protocol/rpc-protocol.test.js +0 -169
- package/lib/protocol/rpc-protocol.test.js.map +0 -1
- package/lib/protocol/server.protocol-bk.d.ts +0 -0
- package/lib/protocol/server.protocol-bk.js +0 -719
- package/lib/protocol/server.protocol-bk.js.map +0 -1
- package/lib/protocol/server.protocol.js.map +0 -1
- package/lib/protocol/shared/editor.js.map +0 -1
- package/lib/protocol/shared/tasks.js +0 -3
- package/lib/protocol/shared/tasks.js.map +0 -1
- package/lib/protocol/temporary-types.js.map +0 -1
- package/lib/protocol/utils/index.js +0 -2
- package/lib/protocol/utils/index.js.map +0 -1
- package/lib/protocol/utils/lazy-promise.js.map +0 -1
- package/lib/utils/errors.js.map +0 -1
- package/lib/utils/extensions.js.map +0 -1
- package/lib/utils/helper.test.js.map +0 -1
- package/lib/utils/index.js +0 -8
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/paths-util.js.map +0 -1
- package/lib/utils/rxjs/combineLatestOrDefault.js.map +0 -1
- package/lib/utils/rxjs/combineLatestOrDefault.test.js +0 -50
- package/lib/utils/rxjs/combineLatestOrDefault.test.js.map +0 -1
- package/lib/utils/rxjs/index.js +0 -2
- package/lib/utils/rxjs/index.js.map +0 -1
- package/lib/utils/util.js.map +0 -1
- package/lib/worker-lib/MessageTypes.js +0 -6
- package/lib/worker-lib/MessageTypes.js.map +0 -1
- package/lib/worker-lib/index.js +0 -3
- package/lib/worker-lib/index.js.map +0 -1
- package/lib/worker-lib/webWorkerLink.js +0 -90
- package/lib/worker-lib/webWorkerLink.js.map +0 -1
- package/lib/worker-lib/workerUtils.js +0 -173
- package/lib/worker-lib/workerUtils.js.map +0 -1
@@ -1,1275 +0,0 @@
|
|
1
|
-
// /* tslint:disable */
|
2
|
-
// /*---------------------------------------------------------------------------------------------
|
3
|
-
// * Copyright (c) Microsoft Corporation. All rights reserved.
|
4
|
-
// * Licensed under the MIT License. See License.txt in the project root for license information.
|
5
|
-
// *--------------------------------------------------------------------------------------------*/
|
6
|
-
// import * as crypto from 'crypto';
|
7
|
-
// import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri';
|
8
|
-
// import { illegalArgument } from '@vscode-alt/monaco-editor/esm/vs/base/common/errors';
|
9
|
-
// import * as cdecode from 'cdecode';
|
10
|
-
// import { isMarkdownString } from '@vscode-alt/monaco-editor/esm/vs/base/common/htmlContent';
|
11
|
-
// import { IRelativePattern } from '@vscode-alt/monaco-editor/esm/vs/base/common/glob';
|
12
|
-
// import { relative } from '../../utils/paths-util';
|
13
|
-
// import { startsWith } from '@vscode-alt/monaco-editor/esm/vs/base/common/strings';
|
14
|
-
// import { values } from '@vscode-alt/monaco-editor/esm/vs/base/common/map';
|
15
|
-
// import { coalesce, equals } from '@vscode-alt/monaco-editor/esm/vs/base/common/arrays';
|
16
|
-
// export class Disposable {
|
17
|
-
// static from(...inDisposables: { dispose(): any }[]): Disposable {
|
18
|
-
// let disposables: ReadonlyArray<{ dispose(): any }> | undefined = inDisposables;
|
19
|
-
// return new Disposable(function () {
|
20
|
-
// if (disposables) {
|
21
|
-
// for (const disposable of disposables) {
|
22
|
-
// if (disposable && typeof disposable.dispose === 'function') {
|
23
|
-
// disposable.dispose();
|
24
|
-
// }
|
25
|
-
// }
|
26
|
-
// disposables = undefined;
|
27
|
-
// }
|
28
|
-
// });
|
29
|
-
// }
|
30
|
-
// private _callOnDispose?: Function;
|
31
|
-
// constructor(callOnDispose: Function) {
|
32
|
-
// this._callOnDispose = callOnDispose;
|
33
|
-
// }
|
34
|
-
// dispose(): any {
|
35
|
-
// if (typeof this._callOnDispose === 'function') {
|
36
|
-
// this._callOnDispose();
|
37
|
-
// this._callOnDispose = undefined;
|
38
|
-
// }
|
39
|
-
// }
|
40
|
-
// }
|
41
|
-
// export interface IFileOperationOptions {
|
42
|
-
// overwrite?: boolean;
|
43
|
-
// ignoreIfExists?: boolean;
|
44
|
-
// ignoreIfNotExists?: boolean;
|
45
|
-
// recursive?: boolean;
|
46
|
-
// }
|
47
|
-
// export interface IFileOperation {
|
48
|
-
// _type: 1;
|
49
|
-
// from: URI;
|
50
|
-
// to: URI;
|
51
|
-
// options?: IFileOperationOptions;
|
52
|
-
// }
|
53
|
-
// export class SnippetString {
|
54
|
-
// static isSnippetString(thing: any): thing is SnippetString {
|
55
|
-
// if (thing instanceof SnippetString) {
|
56
|
-
// return true;
|
57
|
-
// }
|
58
|
-
// if (!thing) {
|
59
|
-
// return false;
|
60
|
-
// }
|
61
|
-
// return typeof (<SnippetString>thing).value === 'string';
|
62
|
-
// }
|
63
|
-
// private static _escape(value: string): string {
|
64
|
-
// return value.replace(/\$|}|\\/g, '\\$&');
|
65
|
-
// }
|
66
|
-
// private _tabstop: number = 1;
|
67
|
-
// value: string;
|
68
|
-
// constructor(value?: string) {
|
69
|
-
// this.value = value || '';
|
70
|
-
// }
|
71
|
-
// appendText(string: string): SnippetString {
|
72
|
-
// this.value += SnippetString._escape(string);
|
73
|
-
// return this;
|
74
|
-
// }
|
75
|
-
// appendTabstop(number: number = this._tabstop++): SnippetString {
|
76
|
-
// this.value += '$';
|
77
|
-
// this.value += number;
|
78
|
-
// return this;
|
79
|
-
// }
|
80
|
-
// appendPlaceholder(value: string | ((snippet: SnippetString) => any), number: number = this._tabstop++): SnippetString {
|
81
|
-
// if (typeof value === 'function') {
|
82
|
-
// const nested = new SnippetString();
|
83
|
-
// nested._tabstop = this._tabstop;
|
84
|
-
// value(nested);
|
85
|
-
// this._tabstop = nested._tabstop;
|
86
|
-
// value = nested.value;
|
87
|
-
// } else {
|
88
|
-
// value = SnippetString._escape(value);
|
89
|
-
// }
|
90
|
-
// this.value += '${';
|
91
|
-
// this.value += number;
|
92
|
-
// this.value += ':';
|
93
|
-
// this.value += value;
|
94
|
-
// this.value += '}';
|
95
|
-
// return this;
|
96
|
-
// }
|
97
|
-
// appendVariable(name: string, defaultValue?: string | ((snippet: SnippetString) => any)): SnippetString {
|
98
|
-
// if (typeof defaultValue === 'function') {
|
99
|
-
// const nested = new SnippetString();
|
100
|
-
// nested._tabstop = this._tabstop;
|
101
|
-
// defaultValue(nested);
|
102
|
-
// this._tabstop = nested._tabstop;
|
103
|
-
// defaultValue = nested.value;
|
104
|
-
// } else if (typeof defaultValue === 'string') {
|
105
|
-
// defaultValue = defaultValue.replace(/\$|}/g, '\\$&');
|
106
|
-
// }
|
107
|
-
// this.value += '${';
|
108
|
-
// this.value += name;
|
109
|
-
// if (defaultValue) {
|
110
|
-
// this.value += ':';
|
111
|
-
// this.value += defaultValue;
|
112
|
-
// }
|
113
|
-
// this.value += '}';
|
114
|
-
// return this;
|
115
|
-
// }
|
116
|
-
// }
|
117
|
-
// export enum DiagnosticTag {
|
118
|
-
// Unnecessary = 1,
|
119
|
-
// }
|
120
|
-
// export enum DiagnosticSeverity {
|
121
|
-
// Hint = 3,
|
122
|
-
// Information = 2,
|
123
|
-
// Warning = 1,
|
124
|
-
// Error = 0
|
125
|
-
// }
|
126
|
-
// export class Location {
|
127
|
-
// static isLocation(thing: any): thing is Location {
|
128
|
-
// if (thing instanceof Location) {
|
129
|
-
// return true;
|
130
|
-
// }
|
131
|
-
// if (!thing) {
|
132
|
-
// return false;
|
133
|
-
// }
|
134
|
-
// return Range.isRange((<Location>thing).range)
|
135
|
-
// && URI.isUri((<Location>thing).uri);
|
136
|
-
// }
|
137
|
-
// uri: URI;
|
138
|
-
// range: Range;
|
139
|
-
// constructor(uri: URI, rangeOrPosition: Range | Position) {
|
140
|
-
// this.uri = uri;
|
141
|
-
// if (!rangeOrPosition) {
|
142
|
-
// //that's OK
|
143
|
-
// } else if (rangeOrPosition instanceof Range) {
|
144
|
-
// this.range = rangeOrPosition;
|
145
|
-
// } else if (rangeOrPosition instanceof Position) {
|
146
|
-
// this.range = new Range(rangeOrPosition, rangeOrPosition);
|
147
|
-
// } else {
|
148
|
-
// throw new Error('Illegal argument');
|
149
|
-
// }
|
150
|
-
// }
|
151
|
-
// toJSON(): any {
|
152
|
-
// return {
|
153
|
-
// uri: this.uri,
|
154
|
-
// range: this.range
|
155
|
-
// };
|
156
|
-
// }
|
157
|
-
// }
|
158
|
-
// export class DiagnosticRelatedInformation {
|
159
|
-
// static is(thing: any): thing is DiagnosticRelatedInformation {
|
160
|
-
// if (!thing) {
|
161
|
-
// return false;
|
162
|
-
// }
|
163
|
-
// return typeof (<DiagnosticRelatedInformation>thing).message === 'string'
|
164
|
-
// && (<DiagnosticRelatedInformation>thing).location
|
165
|
-
// && Range.isRange((<DiagnosticRelatedInformation>thing).location.range)
|
166
|
-
// && URI.isUri((<DiagnosticRelatedInformation>thing).location.uri);
|
167
|
-
// }
|
168
|
-
// location: Location;
|
169
|
-
// message: string;
|
170
|
-
// constructor(location: Location, message: string) {
|
171
|
-
// this.location = location;
|
172
|
-
// this.message = message;
|
173
|
-
// }
|
174
|
-
// static isEqual(a: DiagnosticRelatedInformation, b: DiagnosticRelatedInformation): boolean {
|
175
|
-
// if (a === b) {
|
176
|
-
// return true;
|
177
|
-
// }
|
178
|
-
// if (!a || !b) {
|
179
|
-
// return false;
|
180
|
-
// }
|
181
|
-
// return a.message === b.message
|
182
|
-
// && a.location.range.isEqual(b.location.range)
|
183
|
-
// && a.location.uri.toString() === b.location.uri.toString();
|
184
|
-
// }
|
185
|
-
// }
|
186
|
-
// export class Diagnostic {
|
187
|
-
// range: Range;
|
188
|
-
// message: string;
|
189
|
-
// source: string;
|
190
|
-
// code: string | number;
|
191
|
-
// severity: DiagnosticSeverity;
|
192
|
-
// relatedInformation: DiagnosticRelatedInformation[];
|
193
|
-
// tags?: DiagnosticTag[];
|
194
|
-
// constructor(range: Range, message: string, severity: DiagnosticSeverity = DiagnosticSeverity.Error) {
|
195
|
-
// this.range = range;
|
196
|
-
// this.message = message;
|
197
|
-
// this.severity = severity;
|
198
|
-
// }
|
199
|
-
// toJSON(): any {
|
200
|
-
// return {
|
201
|
-
// severity: DiagnosticSeverity[this.severity],
|
202
|
-
// message: this.message,
|
203
|
-
// range: this.range,
|
204
|
-
// source: this.source,
|
205
|
-
// code: this.code,
|
206
|
-
// };
|
207
|
-
// }
|
208
|
-
// static isEqual(a: Diagnostic, b: Diagnostic): boolean {
|
209
|
-
// if (a === b) {
|
210
|
-
// return true;
|
211
|
-
// }
|
212
|
-
// if (!a || !b) {
|
213
|
-
// return false;
|
214
|
-
// }
|
215
|
-
// return a.message === b.message
|
216
|
-
// && a.severity === b.severity
|
217
|
-
// && a.code === b.code
|
218
|
-
// && a.severity === b.severity
|
219
|
-
// && a.source === b.source
|
220
|
-
// && a.range.isEqual(b.range)
|
221
|
-
// && equals(a.tags, b.tags)
|
222
|
-
// && equals(a.relatedInformation, b.relatedInformation, DiagnosticRelatedInformation.isEqual);
|
223
|
-
// }
|
224
|
-
// }
|
225
|
-
// export class Hover {
|
226
|
-
// public contents: cdecode.MarkdownString[] | cdecode.MarkedString[];
|
227
|
-
// public range: Range;
|
228
|
-
// constructor(
|
229
|
-
// contents: cdecode.MarkdownString | cdecode.MarkedString | cdecode.MarkdownString[] | cdecode.MarkedString[],
|
230
|
-
// range?: Range
|
231
|
-
// ) {
|
232
|
-
// if (!contents) {
|
233
|
-
// throw new Error('Illegal argument, contents must be defined');
|
234
|
-
// }
|
235
|
-
// if (Array.isArray(contents)) {
|
236
|
-
// this.contents = <cdecode.MarkdownString[] | cdecode.MarkedString[]>contents;
|
237
|
-
// } else if (isMarkdownString(contents)) {
|
238
|
-
// this.contents = [contents];
|
239
|
-
// } else {
|
240
|
-
// this.contents = [contents];
|
241
|
-
// }
|
242
|
-
// this.range = range;
|
243
|
-
// }
|
244
|
-
// }
|
245
|
-
// export enum DocumentHighlightKind {
|
246
|
-
// Text = 0,
|
247
|
-
// Read = 1,
|
248
|
-
// Write = 2
|
249
|
-
// }
|
250
|
-
// export class DocumentHighlight {
|
251
|
-
// range: Range;
|
252
|
-
// kind: DocumentHighlightKind;
|
253
|
-
// constructor(range: Range, kind: DocumentHighlightKind = DocumentHighlightKind.Text) {
|
254
|
-
// this.range = range;
|
255
|
-
// this.kind = kind;
|
256
|
-
// }
|
257
|
-
// toJSON(): any {
|
258
|
-
// return {
|
259
|
-
// range: this.range,
|
260
|
-
// kind: DocumentHighlightKind[this.kind]
|
261
|
-
// };
|
262
|
-
// }
|
263
|
-
// }
|
264
|
-
// export enum SymbolKind {
|
265
|
-
// File = 0,
|
266
|
-
// Module = 1,
|
267
|
-
// Namespace = 2,
|
268
|
-
// Package = 3,
|
269
|
-
// Class = 4,
|
270
|
-
// Method = 5,
|
271
|
-
// Property = 6,
|
272
|
-
// Field = 7,
|
273
|
-
// Constructor = 8,
|
274
|
-
// Enum = 9,
|
275
|
-
// Interface = 10,
|
276
|
-
// Function = 11,
|
277
|
-
// Variable = 12,
|
278
|
-
// Constant = 13,
|
279
|
-
// String = 14,
|
280
|
-
// Number = 15,
|
281
|
-
// Boolean = 16,
|
282
|
-
// Array = 17,
|
283
|
-
// Object = 18,
|
284
|
-
// Key = 19,
|
285
|
-
// Null = 20,
|
286
|
-
// EnumMember = 21,
|
287
|
-
// Struct = 22,
|
288
|
-
// Event = 23,
|
289
|
-
// Operator = 24,
|
290
|
-
// TypeParameter = 25
|
291
|
-
// }
|
292
|
-
// export class SymbolInformation {
|
293
|
-
// static validate(candidate: SymbolInformation): void {
|
294
|
-
// if (!candidate.name) {
|
295
|
-
// throw new Error('name must not be falsy');
|
296
|
-
// }
|
297
|
-
// }
|
298
|
-
// name: string;
|
299
|
-
// location: Location;
|
300
|
-
// kind: SymbolKind;
|
301
|
-
// containerName: string;
|
302
|
-
// constructor(name: string, kind: SymbolKind, containerName: string, location: Location);
|
303
|
-
// constructor(name: string, kind: SymbolKind, range: Range, uri?: URI, containerName?: string);
|
304
|
-
// constructor(name: string, kind: SymbolKind, rangeOrContainer: string | Range, locationOrUri?: Location | URI, containerName?: string) {
|
305
|
-
// this.name = name;
|
306
|
-
// this.kind = kind;
|
307
|
-
// this.containerName = containerName;
|
308
|
-
// if (typeof rangeOrContainer === 'string') {
|
309
|
-
// this.containerName = rangeOrContainer;
|
310
|
-
// }
|
311
|
-
// if (locationOrUri instanceof Location) {
|
312
|
-
// this.location = locationOrUri;
|
313
|
-
// } else if (rangeOrContainer instanceof Range) {
|
314
|
-
// this.location = new Location(locationOrUri, rangeOrContainer);
|
315
|
-
// }
|
316
|
-
// SymbolInformation.validate(this);
|
317
|
-
// }
|
318
|
-
// toJSON(): any {
|
319
|
-
// return {
|
320
|
-
// name: this.name,
|
321
|
-
// kind: SymbolKind[this.kind],
|
322
|
-
// location: this.location,
|
323
|
-
// containerName: this.containerName
|
324
|
-
// };
|
325
|
-
// }
|
326
|
-
// }
|
327
|
-
// export class DocumentSymbol {
|
328
|
-
// static validate(candidate: DocumentSymbol): void {
|
329
|
-
// if (!candidate.name) {
|
330
|
-
// throw new Error('name must not be falsy');
|
331
|
-
// }
|
332
|
-
// if (!candidate.range.contains(candidate.selectionRange)) {
|
333
|
-
// throw new Error('selectionRange must be contained in fullRange');
|
334
|
-
// }
|
335
|
-
// if (candidate.children) {
|
336
|
-
// candidate.children.forEach(DocumentSymbol.validate);
|
337
|
-
// }
|
338
|
-
// }
|
339
|
-
// name: string;
|
340
|
-
// detail: string;
|
341
|
-
// kind: SymbolKind;
|
342
|
-
// range: Range;
|
343
|
-
// selectionRange: Range;
|
344
|
-
// children: DocumentSymbol[];
|
345
|
-
// constructor(name: string, detail: string, kind: SymbolKind, range: Range, selectionRange: Range) {
|
346
|
-
// this.name = name;
|
347
|
-
// this.detail = detail;
|
348
|
-
// this.kind = kind;
|
349
|
-
// this.range = range;
|
350
|
-
// this.selectionRange = selectionRange;
|
351
|
-
// this.children = [];
|
352
|
-
// DocumentSymbol.validate(this);
|
353
|
-
// }
|
354
|
-
// }
|
355
|
-
// export enum CodeActionTrigger {
|
356
|
-
// Automatic = 1,
|
357
|
-
// Manual = 2,
|
358
|
-
// }
|
359
|
-
// export class CodeAction {
|
360
|
-
// title: string;
|
361
|
-
// command?: cdecode.Command;
|
362
|
-
// edit?: WorkspaceEdit;
|
363
|
-
// dianostics?: Diagnostic[];
|
364
|
-
// kind?: CodeActionKind;
|
365
|
-
// constructor(title: string, kind?: CodeActionKind) {
|
366
|
-
// this.title = title;
|
367
|
-
// this.kind = kind;
|
368
|
-
// }
|
369
|
-
// }
|
370
|
-
// export class CodeActionKind {
|
371
|
-
// private static readonly sep = '.';
|
372
|
-
// public static readonly Empty = new CodeActionKind('');
|
373
|
-
// public static readonly QuickFix = CodeActionKind.Empty.append('quickfix');
|
374
|
-
// public static readonly Refactor = CodeActionKind.Empty.append('refactor');
|
375
|
-
// public static readonly RefactorExtract = CodeActionKind.Refactor.append('extract');
|
376
|
-
// public static readonly RefactorInline = CodeActionKind.Refactor.append('inline');
|
377
|
-
// public static readonly RefactorRewrite = CodeActionKind.Refactor.append('rewrite');
|
378
|
-
// public static readonly Source = CodeActionKind.Empty.append('source');
|
379
|
-
// public static readonly SourceOrganizeImports = CodeActionKind.Source.append('organizeImports');
|
380
|
-
// constructor(
|
381
|
-
// public readonly value: string
|
382
|
-
// ) { }
|
383
|
-
// public append(parts: string): CodeActionKind {
|
384
|
-
// return new CodeActionKind(this.value ? this.value + CodeActionKind.sep + parts : parts);
|
385
|
-
// }
|
386
|
-
// public contains(other: CodeActionKind): boolean {
|
387
|
-
// return this.value === other.value || startsWith(other.value, this.value + CodeActionKind.sep);
|
388
|
-
// }
|
389
|
-
// }
|
390
|
-
// export class CodeLens {
|
391
|
-
// range: Range;
|
392
|
-
// command: cdecode.Command;
|
393
|
-
// constructor(range: Range, command?: cdecode.Command) {
|
394
|
-
// this.range = range;
|
395
|
-
// this.command = command;
|
396
|
-
// }
|
397
|
-
// get isResolved(): boolean {
|
398
|
-
// return !!this.command;
|
399
|
-
// }
|
400
|
-
// }
|
401
|
-
// export class MarkdownString {
|
402
|
-
// value: string;
|
403
|
-
// isTrusted?: boolean;
|
404
|
-
// constructor(value?: string) {
|
405
|
-
// this.value = value || '';
|
406
|
-
// }
|
407
|
-
// appendText(value: string): MarkdownString {
|
408
|
-
// // escape markdown syntax tokens: http://daringfireball.net/projects/markdown/syntax#backslash
|
409
|
-
// this.value += value.replace(/[\\`*_{}[\]()#+\-.!]/g, '\\$&');
|
410
|
-
// return this;
|
411
|
-
// }
|
412
|
-
// appendMarkdown(value: string): MarkdownString {
|
413
|
-
// this.value += value;
|
414
|
-
// return this;
|
415
|
-
// }
|
416
|
-
// appendCodeblock(code: string, language: string = ''): MarkdownString {
|
417
|
-
// this.value += '\n```';
|
418
|
-
// this.value += language;
|
419
|
-
// this.value += '\n';
|
420
|
-
// this.value += code;
|
421
|
-
// this.value += '\n```\n';
|
422
|
-
// return this;
|
423
|
-
// }
|
424
|
-
// }
|
425
|
-
// export class ParameterInformation {
|
426
|
-
// label: string | [number, number];
|
427
|
-
// documentation?: string | MarkdownString;
|
428
|
-
// constructor(label: string | [number, number], documentation?: string | MarkdownString) {
|
429
|
-
// this.label = label;
|
430
|
-
// this.documentation = documentation;
|
431
|
-
// }
|
432
|
-
// }
|
433
|
-
// export class SignatureInformation {
|
434
|
-
// label: string;
|
435
|
-
// documentation?: string | MarkdownString;
|
436
|
-
// parameters: ParameterInformation[];
|
437
|
-
// constructor(label: string, documentation?: string | MarkdownString) {
|
438
|
-
// this.label = label;
|
439
|
-
// this.documentation = documentation;
|
440
|
-
// this.parameters = [];
|
441
|
-
// }
|
442
|
-
// }
|
443
|
-
// export class SignatureHelp {
|
444
|
-
// signatures: SignatureInformation[];
|
445
|
-
// activeSignature: number;
|
446
|
-
// activeParameter: number;
|
447
|
-
// constructor() {
|
448
|
-
// this.signatures = [];
|
449
|
-
// }
|
450
|
-
// }
|
451
|
-
// export enum SignatureHelpTriggerReason {
|
452
|
-
// Invoke = 1,
|
453
|
-
// TriggerCharacter = 2,
|
454
|
-
// ContentChange = 3,
|
455
|
-
// }
|
456
|
-
// export enum CompletionTriggerKind {
|
457
|
-
// Invoke = 0,
|
458
|
-
// TriggerCharacter = 1,
|
459
|
-
// TriggerForIncompleteCompletions = 2
|
460
|
-
// }
|
461
|
-
// export interface CompletionContext {
|
462
|
-
// triggerKind: CompletionTriggerKind;
|
463
|
-
// triggerCharacter: string;
|
464
|
-
// }
|
465
|
-
// export enum CompletionItemKind {
|
466
|
-
// Text = 0,
|
467
|
-
// Method = 1,
|
468
|
-
// Function = 2,
|
469
|
-
// Constructor = 3,
|
470
|
-
// Field = 4,
|
471
|
-
// Variable = 5,
|
472
|
-
// Class = 6,
|
473
|
-
// Interface = 7,
|
474
|
-
// Module = 8,
|
475
|
-
// Property = 9,
|
476
|
-
// Unit = 10,
|
477
|
-
// Value = 11,
|
478
|
-
// Enum = 12,
|
479
|
-
// Keyword = 13,
|
480
|
-
// Snippet = 14,
|
481
|
-
// Color = 15,
|
482
|
-
// File = 16,
|
483
|
-
// Reference = 17,
|
484
|
-
// Folder = 18,
|
485
|
-
// EnumMember = 19,
|
486
|
-
// Constant = 20,
|
487
|
-
// Struct = 21,
|
488
|
-
// Event = 22,
|
489
|
-
// Operator = 23,
|
490
|
-
// TypeParameter = 24
|
491
|
-
// }
|
492
|
-
// export enum CompletionItemInsertTextRule {
|
493
|
-
// KeepWhitespace = 0b1
|
494
|
-
// }
|
495
|
-
// export class CompletionItem implements cdecode.CompletionItem {
|
496
|
-
// label: string;
|
497
|
-
// kind: CompletionItemKind;
|
498
|
-
// detail: string;
|
499
|
-
// documentation: string | MarkdownString;
|
500
|
-
// sortText: string;
|
501
|
-
// filterText: string;
|
502
|
-
// preselect: boolean;
|
503
|
-
// insertText: string | SnippetString;
|
504
|
-
// insertTextRules: CompletionItemInsertTextRule;
|
505
|
-
// range: Range;
|
506
|
-
// commitCharacters: string[];
|
507
|
-
// textEdit: TextEdit;
|
508
|
-
// additionalTextEdits: TextEdit[];
|
509
|
-
// command: cdecode.Command;
|
510
|
-
// constructor(label: string, kind?: CompletionItemKind) {
|
511
|
-
// this.label = label;
|
512
|
-
// this.kind = kind;
|
513
|
-
// }
|
514
|
-
// toJSON(): any {
|
515
|
-
// return {
|
516
|
-
// label: this.label,
|
517
|
-
// kind: CompletionItemKind[this.kind],
|
518
|
-
// detail: this.detail,
|
519
|
-
// documentation: this.documentation,
|
520
|
-
// sortText: this.sortText,
|
521
|
-
// filterText: this.filterText,
|
522
|
-
// preselect: this.preselect,
|
523
|
-
// insertText: this.insertText,
|
524
|
-
// textEdit: this.textEdit
|
525
|
-
// };
|
526
|
-
// }
|
527
|
-
// }
|
528
|
-
// export class CompletionList {
|
529
|
-
// isIncomplete?: boolean;
|
530
|
-
// items: cdecode.CompletionItem[];
|
531
|
-
// constructor(items: cdecode.CompletionItem[] = [], isIncomplete: boolean = false) {
|
532
|
-
// this.items = items;
|
533
|
-
// this.isIncomplete = isIncomplete;
|
534
|
-
// }
|
535
|
-
// }
|
536
|
-
// export enum ViewColumn {
|
537
|
-
// Active = -1,
|
538
|
-
// Beside = -2,
|
539
|
-
// One = 1,
|
540
|
-
// Two = 2,
|
541
|
-
// Three = 3,
|
542
|
-
// Four = 4,
|
543
|
-
// Five = 5,
|
544
|
-
// Six = 6,
|
545
|
-
// Seven = 7,
|
546
|
-
// Eight = 8,
|
547
|
-
// Nine = 9
|
548
|
-
// }
|
549
|
-
// export enum StatusBarAlignment {
|
550
|
-
// Left = 1,
|
551
|
-
// Right = 2
|
552
|
-
// }
|
553
|
-
// export enum TextEditorLineNumbersStyle {
|
554
|
-
// Off = 0,
|
555
|
-
// On = 1,
|
556
|
-
// Relative = 2
|
557
|
-
// }
|
558
|
-
// export enum TextDocumentSaveReason {
|
559
|
-
// Manual = 1,
|
560
|
-
// AfterDelay = 2,
|
561
|
-
// FocusOut = 3
|
562
|
-
// }
|
563
|
-
// export enum TextEditorRevealType {
|
564
|
-
// Default = 0,
|
565
|
-
// InCenter = 1,
|
566
|
-
// InCenterIfOutsideViewport = 2,
|
567
|
-
// AtTop = 3
|
568
|
-
// }
|
569
|
-
// export enum TextEditorSelectionChangeKind {
|
570
|
-
// Keyboard = 1,
|
571
|
-
// Mouse = 2,
|
572
|
-
// Command = 3
|
573
|
-
// }
|
574
|
-
// /**
|
575
|
-
// * These values match very carefully the values of `TrackedRangeStickiness`
|
576
|
-
// */
|
577
|
-
// export enum DecorationRangeBehavior {
|
578
|
-
// /**
|
579
|
-
// * TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges
|
580
|
-
// */
|
581
|
-
// OpenOpen = 0,
|
582
|
-
// /**
|
583
|
-
// * TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges
|
584
|
-
// */
|
585
|
-
// ClosedClosed = 1,
|
586
|
-
// /**
|
587
|
-
// * TrackedRangeStickiness.GrowsOnlyWhenTypingBefore
|
588
|
-
// */
|
589
|
-
// OpenClosed = 2,
|
590
|
-
// /**
|
591
|
-
// * TrackedRangeStickiness.GrowsOnlyWhenTypingAfter
|
592
|
-
// */
|
593
|
-
// ClosedOpen = 3
|
594
|
-
// }
|
595
|
-
// export namespace TextEditorSelectionChangeKind {
|
596
|
-
// export function fromValue(s: string) {
|
597
|
-
// switch (s) {
|
598
|
-
// case 'keyboard': return TextEditorSelectionChangeKind.Keyboard;
|
599
|
-
// case 'mouse': return TextEditorSelectionChangeKind.Mouse;
|
600
|
-
// case 'api': return TextEditorSelectionChangeKind.Command;
|
601
|
-
// }
|
602
|
-
// return undefined;
|
603
|
-
// }
|
604
|
-
// }
|
605
|
-
// export class DocumentLink {
|
606
|
-
// range: Range;
|
607
|
-
// target: URI;
|
608
|
-
// constructor(range: Range, target: URI) {
|
609
|
-
// if (target && !(target instanceof URI)) {
|
610
|
-
// throw illegalArgument('target');
|
611
|
-
// }
|
612
|
-
// if (!Range.isRange(range) || range.isEmpty) {
|
613
|
-
// throw illegalArgument('range');
|
614
|
-
// }
|
615
|
-
// this.range = range;
|
616
|
-
// this.target = target;
|
617
|
-
// }
|
618
|
-
// }
|
619
|
-
// export class Color {
|
620
|
-
// readonly red: number;
|
621
|
-
// readonly green: number;
|
622
|
-
// readonly blue: number;
|
623
|
-
// readonly alpha: number;
|
624
|
-
// constructor(red: number, green: number, blue: number, alpha: number) {
|
625
|
-
// this.red = red;
|
626
|
-
// this.green = green;
|
627
|
-
// this.blue = blue;
|
628
|
-
// this.alpha = alpha;
|
629
|
-
// }
|
630
|
-
// }
|
631
|
-
// export type IColorFormat = string | { opaque: string, transparent: string };
|
632
|
-
// export class ColorInformation {
|
633
|
-
// range: Range;
|
634
|
-
// color: Color;
|
635
|
-
// constructor(range: Range, color: Color) {
|
636
|
-
// if (color && !(color instanceof Color)) {
|
637
|
-
// throw illegalArgument('color');
|
638
|
-
// }
|
639
|
-
// if (!Range.isRange(range) || range.isEmpty) {
|
640
|
-
// throw illegalArgument('range');
|
641
|
-
// }
|
642
|
-
// this.range = range;
|
643
|
-
// this.color = color;
|
644
|
-
// }
|
645
|
-
// }
|
646
|
-
// export class ColorPresentation {
|
647
|
-
// label: string;
|
648
|
-
// textEdit?: TextEdit;
|
649
|
-
// additionalTextEdits?: TextEdit[];
|
650
|
-
// constructor(label: string) {
|
651
|
-
// if (!label || typeof label !== 'string') {
|
652
|
-
// throw illegalArgument('label');
|
653
|
-
// }
|
654
|
-
// this.label = label;
|
655
|
-
// }
|
656
|
-
// }
|
657
|
-
// export enum ColorFormat {
|
658
|
-
// RGB = 0,
|
659
|
-
// HEX = 1,
|
660
|
-
// HSL = 2
|
661
|
-
// }
|
662
|
-
// export enum SourceControlInputBoxValidationType {
|
663
|
-
// Error = 0,
|
664
|
-
// Warning = 1,
|
665
|
-
// Information = 2
|
666
|
-
// }
|
667
|
-
// export enum TaskRevealKind {
|
668
|
-
// Always = 1,
|
669
|
-
// Silent = 2,
|
670
|
-
// Never = 3
|
671
|
-
// }
|
672
|
-
// export enum TaskPanelKind {
|
673
|
-
// Shared = 1,
|
674
|
-
// Dedicated = 2,
|
675
|
-
// New = 3
|
676
|
-
// }
|
677
|
-
// export class TaskGroup implements cdecode.TaskGroup {
|
678
|
-
// private _id: string;
|
679
|
-
// public static Clean: TaskGroup = new TaskGroup('clean', 'Clean');
|
680
|
-
// public static Build: TaskGroup = new TaskGroup('build', 'Build');
|
681
|
-
// public static Rebuild: TaskGroup = new TaskGroup('rebuild', 'Rebuild');
|
682
|
-
// public static Test: TaskGroup = new TaskGroup('test', 'Test');
|
683
|
-
// public static from(value: string) {
|
684
|
-
// switch (value) {
|
685
|
-
// case 'clean':
|
686
|
-
// return TaskGroup.Clean;
|
687
|
-
// case 'build':
|
688
|
-
// return TaskGroup.Build;
|
689
|
-
// case 'rebuild':
|
690
|
-
// return TaskGroup.Rebuild;
|
691
|
-
// case 'test':
|
692
|
-
// return TaskGroup.Test;
|
693
|
-
// default:
|
694
|
-
// return undefined;
|
695
|
-
// }
|
696
|
-
// }
|
697
|
-
// constructor(id: string, _label: string) {
|
698
|
-
// if (typeof id !== 'string') {
|
699
|
-
// throw illegalArgument('name');
|
700
|
-
// }
|
701
|
-
// if (typeof _label !== 'string') {
|
702
|
-
// throw illegalArgument('name');
|
703
|
-
// }
|
704
|
-
// this._id = id;
|
705
|
-
// }
|
706
|
-
// get id(): string {
|
707
|
-
// return this._id;
|
708
|
-
// }
|
709
|
-
// }
|
710
|
-
// export class ProcessExecution implements cdecode.ProcessExecution {
|
711
|
-
// private _process: string;
|
712
|
-
// private _args: string[];
|
713
|
-
// private _options: cdecode.ProcessExecutionOptions;
|
714
|
-
// constructor(process: string, options?: cdecode.ProcessExecutionOptions);
|
715
|
-
// constructor(process: string, args: string[], options?: cdecode.ProcessExecutionOptions);
|
716
|
-
// constructor(process: string, varg1?: string[] | cdecode.ProcessExecutionOptions, varg2?: cdecode.ProcessExecutionOptions) {
|
717
|
-
// if (typeof process !== 'string') {
|
718
|
-
// throw illegalArgument('process');
|
719
|
-
// }
|
720
|
-
// this._process = process;
|
721
|
-
// if (varg1 !== void 0) {
|
722
|
-
// if (Array.isArray(varg1)) {
|
723
|
-
// this._args = varg1;
|
724
|
-
// this._options = varg2;
|
725
|
-
// } else {
|
726
|
-
// this._options = varg1;
|
727
|
-
// }
|
728
|
-
// }
|
729
|
-
// if (this._args === void 0) {
|
730
|
-
// this._args = [];
|
731
|
-
// }
|
732
|
-
// }
|
733
|
-
// get process(): string {
|
734
|
-
// return this._process;
|
735
|
-
// }
|
736
|
-
// set process(value: string) {
|
737
|
-
// if (typeof value !== 'string') {
|
738
|
-
// throw illegalArgument('process');
|
739
|
-
// }
|
740
|
-
// this._process = value;
|
741
|
-
// }
|
742
|
-
// get args(): string[] {
|
743
|
-
// return this._args;
|
744
|
-
// }
|
745
|
-
// set args(value: string[]) {
|
746
|
-
// if (!Array.isArray(value)) {
|
747
|
-
// value = [];
|
748
|
-
// }
|
749
|
-
// this._args = value;
|
750
|
-
// }
|
751
|
-
// get options(): cdecode.ProcessExecutionOptions {
|
752
|
-
// return this._options;
|
753
|
-
// }
|
754
|
-
// set options(value: cdecode.ProcessExecutionOptions) {
|
755
|
-
// this._options = value;
|
756
|
-
// }
|
757
|
-
// public computeId(): string {
|
758
|
-
// const hash = crypto.createHash('md5');
|
759
|
-
// hash.update('process');
|
760
|
-
// if (this._process !== void 0) {
|
761
|
-
// hash.update(this._process);
|
762
|
-
// }
|
763
|
-
// if (this._args && this._args.length > 0) {
|
764
|
-
// for (let arg of this._args) {
|
765
|
-
// hash.update(arg);
|
766
|
-
// }
|
767
|
-
// }
|
768
|
-
// return hash.digest('hex');
|
769
|
-
// }
|
770
|
-
// }
|
771
|
-
// export class ShellExecution implements cdecode.ShellExecution {
|
772
|
-
// private _commandLine: string;
|
773
|
-
// private _command: string | cdecode.ShellQuotedString;
|
774
|
-
// private _args: (string | cdecode.ShellQuotedString)[];
|
775
|
-
// private _options: cdecode.ShellExecutionOptions;
|
776
|
-
// constructor(commandLine: string, options?: cdecode.ShellExecutionOptions);
|
777
|
-
// constructor(command: string | cdecode.ShellQuotedString, args: (string | cdecode.ShellQuotedString)[], options?: cdecode.ShellExecutionOptions);
|
778
|
-
// constructor(arg0: string | cdecode.ShellQuotedString, arg1?: cdecode.ShellExecutionOptions | (string | cdecode.ShellQuotedString)[], arg2?: cdecode.ShellExecutionOptions) {
|
779
|
-
// if (Array.isArray(arg1)) {
|
780
|
-
// if (!arg0) {
|
781
|
-
// throw illegalArgument('command can\'t be undefined or null');
|
782
|
-
// }
|
783
|
-
// if (typeof arg0 !== 'string' && typeof arg0.value !== 'string') {
|
784
|
-
// throw illegalArgument('command');
|
785
|
-
// }
|
786
|
-
// this._command = arg0;
|
787
|
-
// this._args = arg1 as (string | cdecode.ShellQuotedString)[];
|
788
|
-
// this._options = arg2;
|
789
|
-
// } else {
|
790
|
-
// if (typeof arg0 !== 'string') {
|
791
|
-
// throw illegalArgument('commandLine');
|
792
|
-
// }
|
793
|
-
// this._commandLine = arg0;
|
794
|
-
// this._options = arg1;
|
795
|
-
// }
|
796
|
-
// }
|
797
|
-
// get commandLine(): string {
|
798
|
-
// return this._commandLine;
|
799
|
-
// }
|
800
|
-
// set commandLine(value: string) {
|
801
|
-
// if (typeof value !== 'string') {
|
802
|
-
// throw illegalArgument('commandLine');
|
803
|
-
// }
|
804
|
-
// this._commandLine = value;
|
805
|
-
// }
|
806
|
-
// get command(): string | cdecode.ShellQuotedString {
|
807
|
-
// return this._command;
|
808
|
-
// }
|
809
|
-
// set command(value: string | cdecode.ShellQuotedString) {
|
810
|
-
// if (typeof value !== 'string' && typeof value.value !== 'string') {
|
811
|
-
// throw illegalArgument('command');
|
812
|
-
// }
|
813
|
-
// this._command = value;
|
814
|
-
// }
|
815
|
-
// get args(): (string | cdecode.ShellQuotedString)[] {
|
816
|
-
// return this._args;
|
817
|
-
// }
|
818
|
-
// set args(value: (string | cdecode.ShellQuotedString)[]) {
|
819
|
-
// this._args = value || [];
|
820
|
-
// }
|
821
|
-
// get options(): cdecode.ShellExecutionOptions {
|
822
|
-
// return this._options;
|
823
|
-
// }
|
824
|
-
// set options(value: cdecode.ShellExecutionOptions) {
|
825
|
-
// this._options = value;
|
826
|
-
// }
|
827
|
-
// public computeId(): string {
|
828
|
-
// const hash = crypto.createHash('md5');
|
829
|
-
// hash.update('shell');
|
830
|
-
// if (this._commandLine !== void 0) {
|
831
|
-
// hash.update(this._commandLine);
|
832
|
-
// }
|
833
|
-
// if (this._command !== void 0) {
|
834
|
-
// hash.update(typeof this._command === 'string' ? this._command : this._command.value);
|
835
|
-
// }
|
836
|
-
// if (this._args && this._args.length > 0) {
|
837
|
-
// for (let arg of this._args) {
|
838
|
-
// hash.update(typeof arg === 'string' ? arg : arg.value);
|
839
|
-
// }
|
840
|
-
// }
|
841
|
-
// return hash.digest('hex');
|
842
|
-
// }
|
843
|
-
// }
|
844
|
-
// export enum ShellQuoting {
|
845
|
-
// Escape = 1,
|
846
|
-
// Strong = 2,
|
847
|
-
// Weak = 3
|
848
|
-
// }
|
849
|
-
// export enum TaskScope {
|
850
|
-
// Global = 1,
|
851
|
-
// Workspace = 2
|
852
|
-
// }
|
853
|
-
// export class Task implements cdecode.Task {
|
854
|
-
// private __id: string;
|
855
|
-
// private _definition: cdecode.TaskDefinition;
|
856
|
-
// private _scope: cdecode.TaskScope.Global | cdecode.TaskScope.Workspace | cdecode.WorkspaceFolder;
|
857
|
-
// private _name: string;
|
858
|
-
// private _execution: ProcessExecution | ShellExecution;
|
859
|
-
// private _problemMatchers: string[];
|
860
|
-
// private _hasDefinedMatchers: boolean;
|
861
|
-
// private _isBackground: boolean;
|
862
|
-
// private _source: string;
|
863
|
-
// private _group: TaskGroup;
|
864
|
-
// private _presentationOptions: cdecode.TaskPresentationOptions;
|
865
|
-
// constructor(definition: cdecode.TaskDefinition, name: string, source: string, execution?: ProcessExecution | ShellExecution, problemMatchers?: string | string[]);
|
866
|
-
// constructor(definition: cdecode.TaskDefinition, scope: cdecode.TaskScope.Global | cdecode.TaskScope.Workspace | cdecode.WorkspaceFolder, name: string, source: string, execution?: ProcessExecution | ShellExecution, problemMatchers?: string | string[]);
|
867
|
-
// constructor(definition: cdecode.TaskDefinition, arg2: string | (cdecode.TaskScope.Global | cdecode.TaskScope.Workspace) | cdecode.WorkspaceFolder, arg3: any, arg4?: any, arg5?: any, arg6?: any) {
|
868
|
-
// this.definition = definition;
|
869
|
-
// let problemMatchers: string | string[];
|
870
|
-
// if (typeof arg2 === 'string') {
|
871
|
-
// this.name = arg2;
|
872
|
-
// this.source = arg3;
|
873
|
-
// this.execution = arg4;
|
874
|
-
// problemMatchers = arg5;
|
875
|
-
// } else if (arg2 === TaskScope.Global || arg2 === TaskScope.Workspace) {
|
876
|
-
// this.target = arg2;
|
877
|
-
// this.name = arg3;
|
878
|
-
// this.source = arg4;
|
879
|
-
// this.execution = arg5;
|
880
|
-
// problemMatchers = arg6;
|
881
|
-
// } else {
|
882
|
-
// this.target = arg2;
|
883
|
-
// this.name = arg3;
|
884
|
-
// this.source = arg4;
|
885
|
-
// this.execution = arg5;
|
886
|
-
// problemMatchers = arg6;
|
887
|
-
// }
|
888
|
-
// if (typeof problemMatchers === 'string') {
|
889
|
-
// this._problemMatchers = [problemMatchers];
|
890
|
-
// this._hasDefinedMatchers = true;
|
891
|
-
// } else if (Array.isArray(problemMatchers)) {
|
892
|
-
// this._problemMatchers = problemMatchers;
|
893
|
-
// this._hasDefinedMatchers = true;
|
894
|
-
// } else {
|
895
|
-
// this._problemMatchers = [];
|
896
|
-
// this._hasDefinedMatchers = false;
|
897
|
-
// }
|
898
|
-
// this._isBackground = false;
|
899
|
-
// }
|
900
|
-
// get _id(): string {
|
901
|
-
// return this.__id;
|
902
|
-
// }
|
903
|
-
// set _id(value: string) {
|
904
|
-
// this.__id = value;
|
905
|
-
// }
|
906
|
-
// private clear(): void {
|
907
|
-
// if (this.__id === void 0) {
|
908
|
-
// return;
|
909
|
-
// }
|
910
|
-
// this.__id = undefined;
|
911
|
-
// this._scope = undefined;
|
912
|
-
// this._definition = undefined;
|
913
|
-
// if (this._execution instanceof ProcessExecution) {
|
914
|
-
// this._definition = {
|
915
|
-
// type: 'process',
|
916
|
-
// id: this._execution.computeId()
|
917
|
-
// };
|
918
|
-
// } else if (this._execution instanceof ShellExecution) {
|
919
|
-
// this._definition = {
|
920
|
-
// type: 'shell',
|
921
|
-
// id: this._execution.computeId()
|
922
|
-
// };
|
923
|
-
// }
|
924
|
-
// }
|
925
|
-
// get definition(): cdecode.TaskDefinition {
|
926
|
-
// return this._definition;
|
927
|
-
// }
|
928
|
-
// set definition(value: cdecode.TaskDefinition) {
|
929
|
-
// if (value === void 0 || value === null) {
|
930
|
-
// throw illegalArgument('Kind can\'t be undefined or null');
|
931
|
-
// }
|
932
|
-
// this.clear();
|
933
|
-
// this._definition = value;
|
934
|
-
// }
|
935
|
-
// get scope(): cdecode.TaskScope.Global | cdecode.TaskScope.Workspace | cdecode.WorkspaceFolder {
|
936
|
-
// return this._scope;
|
937
|
-
// }
|
938
|
-
// set target(value: cdecode.TaskScope.Global | cdecode.TaskScope.Workspace | cdecode.WorkspaceFolder) {
|
939
|
-
// this.clear();
|
940
|
-
// this._scope = value;
|
941
|
-
// }
|
942
|
-
// get name(): string {
|
943
|
-
// return this._name;
|
944
|
-
// }
|
945
|
-
// set name(value: string) {
|
946
|
-
// if (typeof value !== 'string') {
|
947
|
-
// throw illegalArgument('name');
|
948
|
-
// }
|
949
|
-
// this.clear();
|
950
|
-
// this._name = value;
|
951
|
-
// }
|
952
|
-
// get execution(): ProcessExecution | ShellExecution {
|
953
|
-
// return this._execution;
|
954
|
-
// }
|
955
|
-
// set execution(value: ProcessExecution | ShellExecution) {
|
956
|
-
// if (value === null) {
|
957
|
-
// value = undefined;
|
958
|
-
// }
|
959
|
-
// this.clear();
|
960
|
-
// this._execution = value;
|
961
|
-
// }
|
962
|
-
// get problemMatchers(): string[] {
|
963
|
-
// return this._problemMatchers;
|
964
|
-
// }
|
965
|
-
// set problemMatchers(value: string[]) {
|
966
|
-
// if (!Array.isArray(value)) {
|
967
|
-
// this._problemMatchers = [];
|
968
|
-
// this._hasDefinedMatchers = false;
|
969
|
-
// return;
|
970
|
-
// }
|
971
|
-
// this.clear();
|
972
|
-
// this._problemMatchers = value;
|
973
|
-
// this._hasDefinedMatchers = true;
|
974
|
-
// }
|
975
|
-
// get hasDefinedMatchers(): boolean {
|
976
|
-
// return this._hasDefinedMatchers;
|
977
|
-
// }
|
978
|
-
// get isBackground(): boolean {
|
979
|
-
// return this._isBackground;
|
980
|
-
// }
|
981
|
-
// set isBackground(value: boolean) {
|
982
|
-
// if (value !== true && value !== false) {
|
983
|
-
// value = false;
|
984
|
-
// }
|
985
|
-
// this.clear();
|
986
|
-
// this._isBackground = value;
|
987
|
-
// }
|
988
|
-
// get source(): string {
|
989
|
-
// return this._source;
|
990
|
-
// }
|
991
|
-
// set source(value: string) {
|
992
|
-
// if (typeof value !== 'string' || value.length === 0) {
|
993
|
-
// throw illegalArgument('source must be a string of length > 0');
|
994
|
-
// }
|
995
|
-
// this.clear();
|
996
|
-
// this._source = value;
|
997
|
-
// }
|
998
|
-
// get group(): TaskGroup {
|
999
|
-
// return this._group;
|
1000
|
-
// }
|
1001
|
-
// set group(value: TaskGroup) {
|
1002
|
-
// if (value === void 0 || value === null) {
|
1003
|
-
// this._group = undefined;
|
1004
|
-
// return;
|
1005
|
-
// }
|
1006
|
-
// this.clear();
|
1007
|
-
// this._group = value;
|
1008
|
-
// }
|
1009
|
-
// get presentationOptions(): cdecode.TaskPresentationOptions {
|
1010
|
-
// return this._presentationOptions;
|
1011
|
-
// }
|
1012
|
-
// set presentationOptions(value: cdecode.TaskPresentationOptions) {
|
1013
|
-
// if (value === null) {
|
1014
|
-
// value = undefined;
|
1015
|
-
// }
|
1016
|
-
// this.clear();
|
1017
|
-
// this._presentationOptions = value;
|
1018
|
-
// }
|
1019
|
-
// }
|
1020
|
-
// //@sri modified to add more locations
|
1021
|
-
// export enum ProgressLocation {
|
1022
|
-
// SourceControl = 1,
|
1023
|
-
// Scm = 3,
|
1024
|
-
// Extensions = 5,
|
1025
|
-
// Window = 10,
|
1026
|
-
// Notification = 15,
|
1027
|
-
// }
|
1028
|
-
// export class TreeItem {
|
1029
|
-
// label?: string | cdecode.TreeItemLabel;
|
1030
|
-
// resourceUri?: URI;
|
1031
|
-
// iconPath?: string | URI | { light: string | URI; dark: string | URI };
|
1032
|
-
// command?: cdecode.Command;
|
1033
|
-
// contextValue?: string;
|
1034
|
-
// tooltip?: string;
|
1035
|
-
// constructor(label: string | cdecode.TreeItemLabel, collapsibleState?: cdecode.TreeItemCollapsibleState)
|
1036
|
-
// constructor(resourceUri: URI, collapsibleState?: cdecode.TreeItemCollapsibleState)
|
1037
|
-
// constructor(arg1: string | cdecode.TreeItemLabel | URI, public collapsibleState: cdecode.TreeItemCollapsibleState = TreeItemCollapsibleState.None) {
|
1038
|
-
// if (arg1 instanceof URI || URI.isUri(arg1) /** @sri added isUri */) {
|
1039
|
-
// this.resourceUri = arg1;
|
1040
|
-
// } else {
|
1041
|
-
// this.label = arg1;
|
1042
|
-
// }
|
1043
|
-
// }
|
1044
|
-
// }
|
1045
|
-
// export enum TreeItemCollapsibleState {
|
1046
|
-
// None = 0,
|
1047
|
-
// Collapsed = 1,
|
1048
|
-
// Expanded = 2
|
1049
|
-
// }
|
1050
|
-
// export class ThemeIcon {
|
1051
|
-
// static readonly File = new ThemeIcon('file');
|
1052
|
-
// static readonly Folder = new ThemeIcon('folder');
|
1053
|
-
// readonly id: string;
|
1054
|
-
// private constructor(id: string) {
|
1055
|
-
// this.id = id;
|
1056
|
-
// }
|
1057
|
-
// }
|
1058
|
-
// export class ThemeColor {
|
1059
|
-
// id: string;
|
1060
|
-
// constructor(id: string) {
|
1061
|
-
// this.id = id;
|
1062
|
-
// }
|
1063
|
-
// }
|
1064
|
-
// export class RelativePattern implements IRelativePattern {
|
1065
|
-
// base: string;
|
1066
|
-
// baseFolder?: URI;
|
1067
|
-
// pattern: string;
|
1068
|
-
// constructor(base: cdecode.WorkspaceFolder | string, pattern: string) {
|
1069
|
-
// // if (typeof base !== 'string') {
|
1070
|
-
// // if (!base || !URI.isUri(base.uri)) {
|
1071
|
-
// // throw illegalArgument('base');
|
1072
|
-
// // }
|
1073
|
-
// // }
|
1074
|
-
// if (typeof pattern !== 'string') {
|
1075
|
-
// throw illegalArgument('pattern');
|
1076
|
-
// }
|
1077
|
-
// if (typeof base === 'string') {
|
1078
|
-
// this.base = base;
|
1079
|
-
// } else {
|
1080
|
-
// this.baseFolder = base.uri;
|
1081
|
-
// this.base = base.uri.fsPath;
|
1082
|
-
// }
|
1083
|
-
// this.pattern = pattern;
|
1084
|
-
// }
|
1085
|
-
// public pathToRelative(from: string, to: string): string {
|
1086
|
-
// return relative(from, to);
|
1087
|
-
// }
|
1088
|
-
// }
|
1089
|
-
// export class Breakpoint {
|
1090
|
-
// readonly enabled: boolean;
|
1091
|
-
// readonly condition?: string;
|
1092
|
-
// readonly hitCondition?: string;
|
1093
|
-
// readonly logMessage?: string;
|
1094
|
-
// protected constructor(enabled?: boolean, condition?: string, hitCondition?: string, logMessage?: string) {
|
1095
|
-
// this.enabled = typeof enabled === 'boolean' ? enabled : true;
|
1096
|
-
// if (typeof condition === 'string') {
|
1097
|
-
// this.condition = condition;
|
1098
|
-
// }
|
1099
|
-
// if (typeof hitCondition === 'string') {
|
1100
|
-
// this.hitCondition = hitCondition;
|
1101
|
-
// }
|
1102
|
-
// if (typeof logMessage === 'string') {
|
1103
|
-
// this.logMessage = logMessage;
|
1104
|
-
// }
|
1105
|
-
// }
|
1106
|
-
// }
|
1107
|
-
// export class SourceBreakpoint extends Breakpoint {
|
1108
|
-
// readonly location: Location;
|
1109
|
-
// constructor(location: Location, enabled?: boolean, condition?: string, hitCondition?: string, logMessage?: string) {
|
1110
|
-
// super(enabled, condition, hitCondition, logMessage);
|
1111
|
-
// if (location === null) {
|
1112
|
-
// throw illegalArgument('location');
|
1113
|
-
// }
|
1114
|
-
// this.location = location;
|
1115
|
-
// }
|
1116
|
-
// }
|
1117
|
-
// export class FunctionBreakpoint extends Breakpoint {
|
1118
|
-
// readonly functionName: string;
|
1119
|
-
// constructor(functionName: string, enabled?: boolean, condition?: string, hitCondition?: string, logMessage?: string) {
|
1120
|
-
// super(enabled, condition, hitCondition, logMessage);
|
1121
|
-
// if (!functionName) {
|
1122
|
-
// throw illegalArgument('functionName');
|
1123
|
-
// }
|
1124
|
-
// this.functionName = functionName;
|
1125
|
-
// }
|
1126
|
-
// }
|
1127
|
-
// // export class DebugAdapterExecutable implements cdecode.DebugAdapterExecutable {
|
1128
|
-
// // readonly type = 'executable';
|
1129
|
-
// // readonly command: string;
|
1130
|
-
// // readonly args: string[];
|
1131
|
-
// // readonly env?: { [key: string]: string };
|
1132
|
-
// // readonly cwd?: string;
|
1133
|
-
// // constructor(command: string, args?: string[], env?: { [key: string]: string }, cwd?: string) {
|
1134
|
-
// // this.command = command;
|
1135
|
-
// // this.args = args;
|
1136
|
-
// // this.env = env;
|
1137
|
-
// // this.cwd = cwd;
|
1138
|
-
// // }
|
1139
|
-
// // }
|
1140
|
-
// // export class DebugAdapterServer implements cdecode.DebugAdapterServer {
|
1141
|
-
// // readonly type = 'server';
|
1142
|
-
// // readonly port: number;
|
1143
|
-
// // readonly host: string;
|
1144
|
-
// // constructor(port: number, host?: string) {
|
1145
|
-
// // this.port = port;
|
1146
|
-
// // this.host = host;
|
1147
|
-
// // }
|
1148
|
-
// // }
|
1149
|
-
// // export class DebugAdapterImplementation implements cdecode.DebugAdapterImplementation {
|
1150
|
-
// // readonly type = 'implementation';
|
1151
|
-
// // readonly implementation: any;
|
1152
|
-
// // constructor(transport: any) {
|
1153
|
-
// // this.implementation = transport;
|
1154
|
-
// // }
|
1155
|
-
// // }
|
1156
|
-
// export enum LogLevel {
|
1157
|
-
// Trace = 1,
|
1158
|
-
// Debug = 2,
|
1159
|
-
// Info = 3,
|
1160
|
-
// Warning = 4,
|
1161
|
-
// Error = 5,
|
1162
|
-
// Critical = 6,
|
1163
|
-
// Off = 7
|
1164
|
-
// }
|
1165
|
-
// //#region file api
|
1166
|
-
// export enum FileChangeType {
|
1167
|
-
// Changed = 1,
|
1168
|
-
// Created = 2,
|
1169
|
-
// Deleted = 3,
|
1170
|
-
// }
|
1171
|
-
// export class FileSystemError extends Error {
|
1172
|
-
// static FileExists(messageOrUri?: string | URI): FileSystemError {
|
1173
|
-
// return new FileSystemError(messageOrUri, 'EntryExists', FileSystemError.FileExists);
|
1174
|
-
// }
|
1175
|
-
// static FileNotFound(messageOrUri?: string | URI): FileSystemError {
|
1176
|
-
// return new FileSystemError(messageOrUri, 'EntryNotFound', FileSystemError.FileNotFound);
|
1177
|
-
// }
|
1178
|
-
// static FileNotADirectory(messageOrUri?: string | URI): FileSystemError {
|
1179
|
-
// return new FileSystemError(messageOrUri, 'EntryNotADirectory', FileSystemError.FileNotADirectory);
|
1180
|
-
// }
|
1181
|
-
// static FileIsADirectory(messageOrUri?: string | URI): FileSystemError {
|
1182
|
-
// return new FileSystemError(messageOrUri, 'EntryIsADirectory', FileSystemError.FileIsADirectory);
|
1183
|
-
// }
|
1184
|
-
// static NoPermissions(messageOrUri?: string | URI): FileSystemError {
|
1185
|
-
// return new FileSystemError(messageOrUri, 'NoPermissions', FileSystemError.NoPermissions);
|
1186
|
-
// }
|
1187
|
-
// static Unavailable(messageOrUri?: string | URI): FileSystemError {
|
1188
|
-
// return new FileSystemError(messageOrUri, 'Unavailable', FileSystemError.Unavailable);
|
1189
|
-
// }
|
1190
|
-
// constructor(uriOrMessage?: string | URI, code?: string, terminator?: Function) {
|
1191
|
-
// super(URI.isUri(uriOrMessage) ? uriOrMessage.toString(true) : uriOrMessage);
|
1192
|
-
// this.name = code ? `${code} (FileSystemError)` : `FileSystemError`;
|
1193
|
-
// // workaround when extending builtin objects and when compiling to ES5, see:
|
1194
|
-
// // https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
1195
|
-
// if (typeof (<any>Object).setPrototypeOf === 'function') {
|
1196
|
-
// (<any>Object).setPrototypeOf(this, FileSystemError.prototype);
|
1197
|
-
// }
|
1198
|
-
// if (typeof Error.captureStackTrace === 'function' && typeof terminator === 'function') {
|
1199
|
-
// // nice stack traces
|
1200
|
-
// Error.captureStackTrace(this, terminator);
|
1201
|
-
// }
|
1202
|
-
// }
|
1203
|
-
// }
|
1204
|
-
// //#endregion
|
1205
|
-
// //#region folding api
|
1206
|
-
// export class FoldingRange {
|
1207
|
-
// start: number;
|
1208
|
-
// end: number;
|
1209
|
-
// kind?: FoldingRangeKind;
|
1210
|
-
// constructor(start: number, end: number, kind?: FoldingRangeKind) {
|
1211
|
-
// this.start = start;
|
1212
|
-
// this.end = end;
|
1213
|
-
// this.kind = kind;
|
1214
|
-
// }
|
1215
|
-
// }
|
1216
|
-
// export enum FoldingRangeKind {
|
1217
|
-
// Comment = 1,
|
1218
|
-
// Imports = 2,
|
1219
|
-
// Region = 3
|
1220
|
-
// }
|
1221
|
-
// //#endregion
|
1222
|
-
// export enum CommentThreadCollapsibleState {
|
1223
|
-
// /**
|
1224
|
-
// * Determines an item is collapsed
|
1225
|
-
// */
|
1226
|
-
// Collapsed = 0,
|
1227
|
-
// /**
|
1228
|
-
// * Determines an item is expanded
|
1229
|
-
// */
|
1230
|
-
// Expanded = 1
|
1231
|
-
// }
|
1232
|
-
// export class QuickInputButtons {
|
1233
|
-
// static readonly Back: cdecode.QuickInputButton = { iconPath: 'back.svg' };
|
1234
|
-
// private constructor() { }
|
1235
|
-
// }
|
1236
|
-
// export class SelectionRange {
|
1237
|
-
// range: Range;
|
1238
|
-
// parent?: SelectionRange;
|
1239
|
-
// constructor(range: Range, parent?: SelectionRange) {
|
1240
|
-
// this.range = range;
|
1241
|
-
// this.parent = parent;
|
1242
|
-
// if (parent && !parent.range.contains(this.range)) {
|
1243
|
-
// throw new Error('Invalid argument: parent must contain this range');
|
1244
|
-
// }
|
1245
|
-
// }
|
1246
|
-
// }
|
1247
|
-
// export enum CallHierarchyDirection {
|
1248
|
-
// CallsFrom = 1,
|
1249
|
-
// CallsTo = 2,
|
1250
|
-
// }
|
1251
|
-
// export class CallHierarchyItem {
|
1252
|
-
// kind: SymbolKind;
|
1253
|
-
// name: string;
|
1254
|
-
// detail?: string;
|
1255
|
-
// uri: URI;
|
1256
|
-
// range: Range;
|
1257
|
-
// selectionRange: Range;
|
1258
|
-
// constructor(kind: SymbolKind, name: string, detail: string, uri: URI, range: Range, selectionRange: Range) {
|
1259
|
-
// this.kind = kind;
|
1260
|
-
// this.name = name;
|
1261
|
-
// this.detail = detail;
|
1262
|
-
// this.uri = uri;
|
1263
|
-
// this.range = range;
|
1264
|
-
// this.selectionRange = selectionRange;
|
1265
|
-
// }
|
1266
|
-
// }
|
1267
|
-
// export class CodeInset {
|
1268
|
-
// range: Range;
|
1269
|
-
// height?: number;
|
1270
|
-
// constructor(range: Range, height?: number) {
|
1271
|
-
// this.range = range;
|
1272
|
-
// this.height = height;
|
1273
|
-
// }
|
1274
|
-
// }
|
1275
|
-
//# sourceMappingURL=ext-host-types-bk.js.map
|