monaco-languageclient 2.0.0-dev.1 → 2.0.2
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/CHANGELOG.md +332 -0
- package/License.txt +11 -0
- package/dist/{amd → cjs}/monaco-converter.d.ts +0 -0
- package/dist/{amd → cjs}/monaco-converter.d.ts.map +1 -1
- package/dist/cjs/monaco-converter.js +1195 -0
- package/dist/cjs/monaco-converter.js.map +1 -0
- package/lib/console-window.d.ts.map +1 -1
- package/lib/console-window.js.map +1 -1
- package/lib/disposable.d.ts +2 -2
- package/lib/disposable.d.ts.map +1 -1
- package/lib/disposable.js +2 -2
- package/lib/disposable.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/monaco-converter.d.ts.map +1 -1
- package/lib/monaco-converter.js +21 -27
- package/lib/monaco-converter.js.map +1 -1
- package/lib/monaco-language-client.d.ts +2 -2
- package/lib/monaco-language-client.d.ts.map +1 -1
- package/lib/monaco-language-client.js +34 -28
- package/lib/monaco-language-client.js.map +1 -1
- package/lib/monaco-services.d.ts +3 -3
- package/lib/monaco-services.d.ts.map +1 -1
- package/lib/monaco-services.js +3 -3
- package/lib/monaco-services.js.map +1 -1
- package/lib/monaco-workspace.d.ts.map +1 -1
- package/package.json +21 -23
- package/src/console-window.ts +11 -10
- package/src/disposable.ts +7 -9
- package/src/index.ts +1 -1
- package/src/monaco-converter.ts +175 -177
- package/src/monaco-language-client.ts +52 -46
- package/src/monaco-services.ts +9 -8
- package/src/monaco-workspace.ts +2 -2
- package/dist/amd/console-window.d.ts +0 -8
- package/dist/amd/console-window.d.ts.map +0 -1
- package/dist/amd/console-window.js +0 -59
- package/dist/amd/console-window.js.map +0 -1
- package/dist/amd/disposable.d.ts +0 -8
- package/dist/amd/disposable.d.ts.map +0 -1
- package/dist/amd/disposable.js +0 -34
- package/dist/amd/disposable.js.map +0 -1
- package/dist/amd/index.d.ts +0 -9
- package/dist/amd/index.d.ts.map +0 -1
- package/dist/amd/index.js +0 -21
- package/dist/amd/index.js.map +0 -1
- package/dist/amd/monaco-converter.js +0 -1201
- package/dist/amd/monaco-converter.js.map +0 -1
- package/dist/amd/monaco-language-client.d.ts +0 -27
- package/dist/amd/monaco-language-client.d.ts.map +0 -1
- package/dist/amd/monaco-language-client.js +0 -86
- package/dist/amd/monaco-language-client.js.map +0 -1
- package/dist/amd/monaco-services.d.ts +0 -19
- package/dist/amd/monaco-services.d.ts.map +0 -1
- package/dist/amd/monaco-services.js +0 -25
- package/dist/amd/monaco-services.js.map +0 -1
- package/dist/amd/monaco-workspace.d.ts +0 -8
- package/dist/amd/monaco-workspace.d.ts.map +0 -1
- package/dist/amd/monaco-workspace.js +0 -13
- package/dist/amd/monaco-workspace.js.map +0 -1
|
@@ -2,83 +2,89 @@
|
|
|
2
2
|
* Copyright (c) 2018-2022 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
* ------------------------------------------------------------------------------------------ */
|
|
5
|
+
|
|
5
6
|
import {
|
|
6
7
|
BaseLanguageClient, MessageTransports, LanguageClientOptions, CloseAction, ErrorAction
|
|
7
|
-
} from
|
|
8
|
+
} from 'vscode-languageclient/lib/common/client';
|
|
9
|
+
import type * as vscode from 'vscode';
|
|
10
|
+
import { ConfigurationFeature, SyncConfigurationFeature } from 'vscode-languageclient/lib/common/configuration';
|
|
11
|
+
import { DidChangeTextDocumentFeature, DidCloseTextDocumentFeature, DidOpenTextDocumentFeature, DidSaveTextDocumentFeature, WillSaveFeature, WillSaveWaitUntilFeature } from 'vscode-languageclient/lib/common/textSynchronization';
|
|
12
|
+
import { CompletionItemFeature } from 'vscode-languageclient/lib/common/completion';
|
|
13
|
+
import { HoverFeature } from 'vscode-languageclient/lib/common/hover';
|
|
14
|
+
import { SignatureHelpFeature } from 'vscode-languageclient/lib/common/signatureHelp';
|
|
15
|
+
import { DefinitionFeature } from 'vscode-languageclient/lib/common/definition';
|
|
16
|
+
import { ReferencesFeature } from 'vscode-languageclient/lib/common/reference';
|
|
17
|
+
import { DocumentHighlightFeature } from 'vscode-languageclient/lib/common/documentHighlight';
|
|
18
|
+
import { DocumentSymbolFeature } from 'vscode-languageclient/lib/common/documentSymbol';
|
|
19
|
+
import { CodeActionFeature } from 'vscode-languageclient/lib/common/codeAction';
|
|
20
|
+
import { CodeLensFeature } from 'vscode-languageclient/lib/common/codeLens';
|
|
21
|
+
import { DocumentFormattingFeature, DocumentOnTypeFormattingFeature, DocumentRangeFormattingFeature } from 'vscode-languageclient/lib/common/formatting';
|
|
22
|
+
import { RenameFeature } from 'vscode-languageclient/lib/common/rename';
|
|
23
|
+
import { DocumentLinkFeature } from 'vscode-languageclient/lib/common/documentLink';
|
|
24
|
+
import { ExecuteCommandFeature } from 'vscode-languageclient/lib/common/executeCommand';
|
|
25
|
+
import { TypeDefinitionFeature } from 'vscode-languageclient/lib/common/typeDefinition';
|
|
26
|
+
import { ImplementationFeature } from 'vscode-languageclient/lib/common/implementation';
|
|
27
|
+
import { ColorProviderFeature } from 'vscode-languageclient/lib/common/colorProvider';
|
|
28
|
+
import { WorkspaceFoldersFeature } from 'vscode-languageclient/lib/common/workspaceFolder';
|
|
29
|
+
import { FoldingRangeFeature } from 'vscode-languageclient/lib/common/foldingRange';
|
|
30
|
+
import { DeclarationFeature } from 'vscode-languageclient/lib/common/declaration';
|
|
31
|
+
import { SelectionRangeFeature } from 'vscode-languageclient/lib/common/selectionRange';
|
|
32
|
+
import { SemanticTokensFeature } from 'vscode-languageclient/lib/common/semanticTokens';
|
|
33
|
+
import { LinkedEditingFeature } from 'vscode-languageclient/lib/common/linkedEditingRange';
|
|
34
|
+
import { InlayHintsFeature } from 'vscode-languageclient/lib/common/inlayHint';
|
|
35
|
+
import { DiagnosticFeature } from 'vscode-languageclient/lib/common/diagnostic';
|
|
36
|
+
import { ProgressFeature } from 'vscode-languageclient/lib/common/progress';
|
|
37
|
+
import { RegistrationParams, UnregistrationParams } from 'vscode-languageclient';
|
|
8
38
|
|
|
9
39
|
export * from 'vscode-languageclient/lib/common/client';
|
|
10
|
-
import type * as vscode from 'vscode'
|
|
11
|
-
import { ConfigurationFeature, SyncConfigurationFeature } from "vscode-languageclient/lib/common/configuration";
|
|
12
|
-
import { DidChangeTextDocumentFeature, DidCloseTextDocumentFeature, DidOpenTextDocumentFeature, DidSaveTextDocumentFeature, WillSaveFeature, WillSaveWaitUntilFeature } from "vscode-languageclient/lib/common/textSynchronization";
|
|
13
|
-
import { CompletionItemFeature } from "vscode-languageclient/lib/common/completion";
|
|
14
|
-
import { HoverFeature } from "vscode-languageclient/lib/common/hover";
|
|
15
|
-
import { SignatureHelpFeature } from "vscode-languageclient/lib/common/signatureHelp";
|
|
16
|
-
import { DefinitionFeature } from "vscode-languageclient/lib/common/definition";
|
|
17
|
-
import { ReferencesFeature } from "vscode-languageclient/lib/common/reference";
|
|
18
|
-
import { DocumentHighlightFeature } from "vscode-languageclient/lib/common/documentHighlight";
|
|
19
|
-
import { DocumentSymbolFeature } from "vscode-languageclient/lib/common/documentSymbol";
|
|
20
|
-
import { CodeActionFeature } from "vscode-languageclient/lib/common/codeAction";
|
|
21
|
-
import { CodeLensFeature } from "vscode-languageclient/lib/common/codeLens";
|
|
22
|
-
import { DocumentFormattingFeature, DocumentOnTypeFormattingFeature, DocumentRangeFormattingFeature } from "vscode-languageclient/lib/common/formatting";
|
|
23
|
-
import { RenameFeature } from "vscode-languageclient/lib/common/rename";
|
|
24
|
-
import { DocumentLinkFeature } from "vscode-languageclient/lib/common/documentLink";
|
|
25
|
-
import { ExecuteCommandFeature } from "vscode-languageclient/lib/common/executeCommand";
|
|
26
|
-
import { TypeDefinitionFeature } from "vscode-languageclient/lib/common/typeDefinition";
|
|
27
|
-
import { ImplementationFeature } from "vscode-languageclient/lib/common/implementation";
|
|
28
|
-
import { ColorProviderFeature } from "vscode-languageclient/lib/common/colorProvider";
|
|
29
|
-
import { WorkspaceFoldersFeature } from "vscode-languageclient/lib/common/workspaceFolder";
|
|
30
|
-
import { FoldingRangeFeature } from "vscode-languageclient/lib/common/foldingRange";
|
|
31
|
-
import { DeclarationFeature } from "vscode-languageclient/lib/common/declaration";
|
|
32
|
-
import { SelectionRangeFeature } from "vscode-languageclient/lib/common/selectionRange";
|
|
33
|
-
import { SemanticTokensFeature } from "vscode-languageclient/lib/common/semanticTokens";
|
|
34
|
-
import { LinkedEditingFeature } from "vscode-languageclient/lib/common/linkedEditingRange";
|
|
35
|
-
import { InlayHintsFeature } from "vscode-languageclient/lib/common/inlayHint";
|
|
36
|
-
import { DiagnosticFeature } from "vscode-languageclient/lib/common/diagnostic";
|
|
37
|
-
import { ProgressFeature } from "vscode-languageclient/lib/common/progress";
|
|
38
|
-
import { RegistrationParams, UnregistrationParams } from "vscode-languageclient";
|
|
39
40
|
|
|
40
41
|
export interface IConnectionProvider {
|
|
41
42
|
get(encoding: string): Promise<MessageTransports>;
|
|
42
43
|
}
|
|
43
44
|
export class MonacoLanguageClient extends BaseLanguageClient {
|
|
44
|
-
|
|
45
45
|
static bypassConversion = (result: any, token?: vscode.CancellationToken) => token != null ? Promise.resolve(result || undefined) : (result || undefined);
|
|
46
46
|
|
|
47
47
|
protected readonly connectionProvider: IConnectionProvider;
|
|
48
48
|
|
|
49
|
-
constructor({ id, name, clientOptions, connectionProvider }: MonacoLanguageClient.Options) {
|
|
49
|
+
constructor ({ id, name, clientOptions, connectionProvider }: MonacoLanguageClient.Options) {
|
|
50
50
|
super(id || name.toLowerCase(), name, clientOptions);
|
|
51
51
|
this.connectionProvider = connectionProvider;
|
|
52
52
|
|
|
53
53
|
// Hack because vscode-language client rejects the whole registration block if one capability registration has no associated client feature registered
|
|
54
54
|
// Some language servers still send the registration even though the client says it doesn't support it
|
|
55
|
-
|
|
55
|
+
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
56
|
+
const originalHandleRegistrationRequest: (params: RegistrationParams) => Promise<void> = this['handleRegistrationRequest'].bind(this);
|
|
57
|
+
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
56
58
|
this['handleRegistrationRequest'] = (params: RegistrationParams) => {
|
|
57
59
|
originalHandleRegistrationRequest({
|
|
58
60
|
...params,
|
|
59
61
|
registrations: params.registrations.filter(registration => this.getFeature(<any>registration.method) != null)
|
|
60
|
-
})
|
|
61
|
-
}
|
|
62
|
-
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
65
|
+
const originalHandleUnregistrationRequest: (params: UnregistrationParams) => Promise<void> = this['handleUnregistrationRequest'].bind(this);
|
|
66
|
+
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
63
67
|
this['handleUnregistrationRequest'] = (params: UnregistrationParams) => {
|
|
64
68
|
originalHandleUnregistrationRequest({
|
|
65
69
|
...params,
|
|
66
70
|
unregisterations: params.unregisterations.filter(unregistration => this.getFeature(<any>unregistration.method) != null)
|
|
67
|
-
})
|
|
68
|
-
}
|
|
71
|
+
});
|
|
72
|
+
};
|
|
69
73
|
}
|
|
70
74
|
|
|
71
|
-
protected createMessageTransports(encoding: string): Promise<MessageTransports> {
|
|
75
|
+
protected createMessageTransports (encoding: string): Promise<MessageTransports> {
|
|
72
76
|
return this.connectionProvider.get(encoding);
|
|
73
77
|
}
|
|
74
78
|
|
|
75
|
-
protected getLocale(): string {
|
|
76
|
-
return navigator.language || 'en-US'
|
|
79
|
+
protected getLocale (): string {
|
|
80
|
+
return navigator.language || 'en-US';
|
|
77
81
|
}
|
|
78
82
|
|
|
79
|
-
protected override registerBuiltinFeatures() {
|
|
83
|
+
protected override registerBuiltinFeatures () {
|
|
84
|
+
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
80
85
|
this.registerFeature(new DidOpenTextDocumentFeature(this, this['_syncedDocuments']));
|
|
81
86
|
this.registerFeature(new DidChangeTextDocumentFeature(this));
|
|
87
|
+
// eslint-disable-next-line @typescript-eslint/dot-notation
|
|
82
88
|
this.registerFeature(new DidCloseTextDocumentFeature(this, this['_syncedDocuments']));
|
|
83
89
|
this.registerFeature(new CompletionItemFeature(this));
|
|
84
90
|
this.registerFeature(new HoverFeature(this));
|
|
@@ -112,18 +118,18 @@ export class MonacoLanguageClient extends BaseLanguageClient {
|
|
|
112
118
|
this.registerFeature(new DiagnosticFeature(this));
|
|
113
119
|
}
|
|
114
120
|
|
|
115
|
-
public registerTextDocumentSaveFeatures() {
|
|
121
|
+
public registerTextDocumentSaveFeatures () {
|
|
116
122
|
this.registerFeature(new WillSaveFeature(this));
|
|
117
123
|
this.registerFeature(new WillSaveWaitUntilFeature(this));
|
|
118
124
|
this.registerFeature(new DidSaveTextDocumentFeature(this));
|
|
119
125
|
}
|
|
120
126
|
|
|
121
|
-
public registerConfigurationFeatures() {
|
|
127
|
+
public registerConfigurationFeatures () {
|
|
122
128
|
this.registerFeature(new ConfigurationFeature(this));
|
|
123
129
|
this.registerFeature(new SyncConfigurationFeature(this));
|
|
124
130
|
}
|
|
125
131
|
|
|
126
|
-
public registerProgressFeatures() {
|
|
132
|
+
public registerProgressFeatures () {
|
|
127
133
|
this.registerFeature(new ProgressFeature(this));
|
|
128
134
|
}
|
|
129
135
|
}
|
|
@@ -136,4 +142,4 @@ export namespace MonacoLanguageClient {
|
|
|
136
142
|
}
|
|
137
143
|
}
|
|
138
144
|
|
|
139
|
-
export { CloseAction, ErrorAction }
|
|
145
|
+
export { CloseAction, ErrorAction };
|
package/src/monaco-services.ts
CHANGED
|
@@ -2,32 +2,33 @@
|
|
|
2
2
|
* Copyright (c) 2018-2022 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
* ------------------------------------------------------------------------------------------ */
|
|
5
|
-
import { MonacoWorkspace } from
|
|
6
|
-
import { ConsoleWindow } from
|
|
7
|
-
import { Services } from
|
|
8
|
-
import * as vscode from 'vscode'
|
|
5
|
+
import { MonacoWorkspace } from './monaco-workspace';
|
|
6
|
+
import { ConsoleWindow } from './console-window';
|
|
7
|
+
import { Services } from 'vscode/services';
|
|
8
|
+
import * as vscode from 'vscode';
|
|
9
9
|
|
|
10
10
|
export interface MonacoServices extends Services {
|
|
11
11
|
workspace: MonacoWorkspace
|
|
12
12
|
window: ConsoleWindow
|
|
13
13
|
}
|
|
14
|
+
|
|
14
15
|
export namespace MonacoServices {
|
|
15
16
|
export interface Options {
|
|
16
17
|
workspaceFolders?: vscode.WorkspaceFolder[]
|
|
17
18
|
rootPath?: string
|
|
18
19
|
}
|
|
19
20
|
export type Provider = () => MonacoServices;
|
|
20
|
-
export function create(options: Options = {}): MonacoServices {
|
|
21
|
+
export function create (options: Options = {}): MonacoServices {
|
|
21
22
|
return {
|
|
22
23
|
workspace: new MonacoWorkspace(options.workspaceFolders, options.rootPath),
|
|
23
24
|
window: new ConsoleWindow()
|
|
24
|
-
}
|
|
25
|
+
};
|
|
25
26
|
}
|
|
26
|
-
export function install(options: Options = {}): vscode.Disposable {
|
|
27
|
+
export function install (options: Options = {}): vscode.Disposable {
|
|
27
28
|
const services = create(options);
|
|
28
29
|
return Services.install(services);
|
|
29
30
|
}
|
|
30
|
-
export function get(): MonacoServices {
|
|
31
|
+
export function get (): MonacoServices {
|
|
31
32
|
return Services.get() as MonacoServices;
|
|
32
33
|
}
|
|
33
34
|
}
|
package/src/monaco-workspace.ts
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
* ------------------------------------------------------------------------------------------ */
|
|
5
5
|
import * as vscode from 'vscode';
|
|
6
|
-
import { Workspace } from 'vscode/services'
|
|
6
|
+
import { Workspace } from 'vscode/services';
|
|
7
7
|
|
|
8
8
|
export class MonacoWorkspace implements Workspace {
|
|
9
|
-
constructor(
|
|
9
|
+
constructor (
|
|
10
10
|
public readonly workspaceFolders?: vscode.WorkspaceFolder[],
|
|
11
11
|
public readonly rootPath?: string | undefined
|
|
12
12
|
) {
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Window, Severity } from 'vscode/services';
|
|
2
|
-
import * as vscode from 'vscode';
|
|
3
|
-
export declare class ConsoleWindow implements Window {
|
|
4
|
-
protected readonly channels: Map<string, vscode.OutputChannel>;
|
|
5
|
-
showMessage<T extends vscode.MessageOptions | string | vscode.MessageItem>(severity: Severity, message: string, ...actions: T[]): Thenable<T | undefined>;
|
|
6
|
-
createOutputChannel(name: string): vscode.OutputChannel;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=console-window.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"console-window.d.ts","sourceRoot":"","sources":["../../src/console-window.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAA;AAEhC,qBAAa,aAAc,YAAW,MAAM;IACxC,SAAS,CAAC,QAAQ,CAAC,QAAQ,oCAA2C;IACtE,WAAW,CAAC,CAAC,SAAS,MAAM,CAAC,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,CAAC,EAAE,GAAG,QAAQ,CAAC,CAAC,GAAG,SAAS,CAAC;IAezJ,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,aAAa;CAgC1D"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "vscode/services"], function (require, exports, services_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.ConsoleWindow = void 0;
|
|
5
|
-
class ConsoleWindow {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.channels = new Map();
|
|
8
|
-
}
|
|
9
|
-
showMessage(severity, message, ...actions) {
|
|
10
|
-
if (severity === services_1.Severity.Error) {
|
|
11
|
-
console.error(message);
|
|
12
|
-
}
|
|
13
|
-
if (severity === services_1.Severity.Warning) {
|
|
14
|
-
console.warn(message);
|
|
15
|
-
}
|
|
16
|
-
if (severity === services_1.Severity.Info) {
|
|
17
|
-
console.info(message);
|
|
18
|
-
}
|
|
19
|
-
if (severity === services_1.Severity.Ignore) {
|
|
20
|
-
console.debug(message);
|
|
21
|
-
}
|
|
22
|
-
return Promise.resolve(undefined);
|
|
23
|
-
}
|
|
24
|
-
createOutputChannel(name) {
|
|
25
|
-
const existing = this.channels.get(name);
|
|
26
|
-
if (existing) {
|
|
27
|
-
return existing;
|
|
28
|
-
}
|
|
29
|
-
const channel = {
|
|
30
|
-
name: 'default',
|
|
31
|
-
append(value) {
|
|
32
|
-
console.log(name + ': ' + value);
|
|
33
|
-
},
|
|
34
|
-
appendLine(line) {
|
|
35
|
-
console.log(name + ': ' + line);
|
|
36
|
-
},
|
|
37
|
-
show() {
|
|
38
|
-
// no-op
|
|
39
|
-
},
|
|
40
|
-
dispose() {
|
|
41
|
-
// no-op
|
|
42
|
-
},
|
|
43
|
-
replace: function (value) {
|
|
44
|
-
// no-op
|
|
45
|
-
},
|
|
46
|
-
clear: function () {
|
|
47
|
-
// no-op
|
|
48
|
-
},
|
|
49
|
-
hide: function () {
|
|
50
|
-
// no-op
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
this.channels.set(name, channel);
|
|
54
|
-
return channel;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
exports.ConsoleWindow = ConsoleWindow;
|
|
58
|
-
});
|
|
59
|
-
//# sourceMappingURL=console-window.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"console-window.js","sourceRoot":"","sources":["../../src/console-window.ts"],"names":[],"mappings":";;;;IAOA,MAAa,aAAa;QAA1B;YACuB,aAAQ,GAAG,IAAI,GAAG,EAAgC,CAAC;QAgD1E,CAAC;QA/CG,WAAW,CAAgE,QAAkB,EAAE,OAAe,EAAE,GAAG,OAAY;YAC3H,IAAI,QAAQ,KAAK,mBAAQ,CAAC,KAAK,EAAE;gBAC7B,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;aAC1B;YACD,IAAI,QAAQ,KAAK,mBAAQ,CAAC,OAAO,EAAE;gBAC/B,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aACzB;YACD,IAAI,QAAQ,KAAK,mBAAQ,CAAC,IAAI,EAAE;gBAC5B,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aACzB;YACD,IAAI,QAAQ,KAAK,mBAAQ,CAAC,MAAM,EAAE;gBAC9B,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;aAC1B;YACD,OAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACtC,CAAC;QACD,mBAAmB,CAAC,IAAY;YAC5B,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACzC,IAAI,QAAQ,EAAE;gBACV,OAAO,QAAQ,CAAC;aACnB;YACD,MAAM,OAAO,GAAyB;gBAClC,IAAI,EAAE,SAAS;gBACf,MAAM,CAAC,KAAa;oBAChB,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC,CAAC;gBACrC,CAAC;gBACD,UAAU,CAAC,IAAY;oBACnB,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC;gBACpC,CAAC;gBACD,IAAI;oBACA,QAAQ;gBACZ,CAAC;gBACD,OAAO;oBACH,QAAQ;gBACZ,CAAC;gBACD,OAAO,EAAE,UAAU,KAAa;oBAC5B,QAAQ;gBACZ,CAAC;gBACD,KAAK,EAAE;oBACH,QAAQ;gBACZ,CAAC;gBACD,IAAI,EAAE;oBACF,QAAQ;gBACZ,CAAC;aACJ,CAAA;YACD,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;YAChC,OAAO,OAAO,CAAC;QACnB,CAAC;KACJ;IAjDD,sCAiDC"}
|
package/dist/amd/disposable.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Disposable } from "vscode-jsonrpc";
|
|
2
|
-
export { Disposable };
|
|
3
|
-
export declare class DisposableCollection implements Disposable {
|
|
4
|
-
protected readonly disposables: Disposable[];
|
|
5
|
-
dispose(): void;
|
|
6
|
-
push(disposable: Disposable): Disposable;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=disposable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"disposable.d.ts","sourceRoot":"","sources":["../../src/disposable.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C,OAAO,EACH,UAAU,EACb,CAAA;AAED,qBAAa,oBAAqB,YAAW,UAAU;IACnD,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,UAAU,EAAE,CAAM;IAElD,OAAO,IAAI,IAAI;IAMf,IAAI,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU;CAY3C"}
|
package/dist/amd/disposable.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/* --------------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright (c) 2018-2022 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
3
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
|
-
* ------------------------------------------------------------------------------------------ */
|
|
5
|
-
define(["require", "exports", "vscode-jsonrpc"], function (require, exports, vscode_jsonrpc_1) {
|
|
6
|
-
"use strict";
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.DisposableCollection = exports.Disposable = void 0;
|
|
9
|
-
Object.defineProperty(exports, "Disposable", { enumerable: true, get: function () { return vscode_jsonrpc_1.Disposable; } });
|
|
10
|
-
class DisposableCollection {
|
|
11
|
-
constructor() {
|
|
12
|
-
this.disposables = [];
|
|
13
|
-
}
|
|
14
|
-
dispose() {
|
|
15
|
-
while (this.disposables.length !== 0) {
|
|
16
|
-
this.disposables.pop().dispose();
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
push(disposable) {
|
|
20
|
-
const disposables = this.disposables;
|
|
21
|
-
disposables.push(disposable);
|
|
22
|
-
return {
|
|
23
|
-
dispose() {
|
|
24
|
-
const index = disposables.indexOf(disposable);
|
|
25
|
-
if (index !== -1) {
|
|
26
|
-
disposables.splice(index, 1);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.DisposableCollection = DisposableCollection;
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=disposable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"disposable.js","sourceRoot":"","sources":["../../src/disposable.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;;;;;IAK5F,2FAHK,2BAAU,OAGL;IAGd,MAAa,oBAAoB;QAAjC;YACuB,gBAAW,GAAiB,EAAE,CAAC;QAoBtD,CAAC;QAlBG,OAAO;YACH,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;gBAClC,IAAI,CAAC,WAAW,CAAC,GAAG,EAAG,CAAC,OAAO,EAAE,CAAC;aACrC;QACL,CAAC;QAED,IAAI,CAAC,UAAsB;YACvB,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;YACrC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAC7B,OAAO;gBACH,OAAO;oBACH,MAAM,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;oBAC9C,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;wBACd,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;qBAChC;gBACL,CAAC;aACJ,CAAA;QACL,CAAC;KACJ;IArBD,oDAqBC"}
|
package/dist/amd/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './disposable';
|
|
2
|
-
export * from './monaco-language-client';
|
|
3
|
-
export * from './console-window';
|
|
4
|
-
export * from './monaco-workspace';
|
|
5
|
-
export * from './monaco-services';
|
|
6
|
-
export * from './monaco-converter';
|
|
7
|
-
export { Disposable, CancellationToken, Event, Emitter } from 'vscode-jsonrpc/lib/common/api';
|
|
8
|
-
export * from 'vscode-languageserver-protocol/lib/common/api';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/amd/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AAEnC,OAAO,EACH,UAAU,EAAE,iBAAiB,EAAE,KAAK,EAAE,OAAO,EAChD,MAAM,+BAA+B,CAAC;AACvC,cAAc,+CAA+C,CAAC"}
|
package/dist/amd/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "./disposable", "./monaco-language-client", "./console-window", "./monaco-workspace", "./monaco-services", "./monaco-converter", "vscode-jsonrpc/lib/common/api", "vscode-languageserver-protocol/lib/common/api"], function (require, exports, tslib_1, disposable_1, monaco_language_client_1, console_window_1, monaco_workspace_1, monaco_services_1, monaco_converter_1, api_1, api_2) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Emitter = exports.Event = exports.CancellationToken = exports.Disposable = void 0;
|
|
5
|
-
/* --------------------------------------------------------------------------------------------
|
|
6
|
-
* Copyright (c) 2018-2022 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
7
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
8
|
-
* ------------------------------------------------------------------------------------------ */
|
|
9
|
-
tslib_1.__exportStar(disposable_1, exports);
|
|
10
|
-
tslib_1.__exportStar(monaco_language_client_1, exports);
|
|
11
|
-
tslib_1.__exportStar(console_window_1, exports);
|
|
12
|
-
tslib_1.__exportStar(monaco_workspace_1, exports);
|
|
13
|
-
tslib_1.__exportStar(monaco_services_1, exports);
|
|
14
|
-
tslib_1.__exportStar(monaco_converter_1, exports);
|
|
15
|
-
Object.defineProperty(exports, "Disposable", { enumerable: true, get: function () { return api_1.Disposable; } });
|
|
16
|
-
Object.defineProperty(exports, "CancellationToken", { enumerable: true, get: function () { return api_1.CancellationToken; } });
|
|
17
|
-
Object.defineProperty(exports, "Event", { enumerable: true, get: function () { return api_1.Event; } });
|
|
18
|
-
Object.defineProperty(exports, "Emitter", { enumerable: true, get: function () { return api_1.Emitter; } });
|
|
19
|
-
tslib_1.__exportStar(api_2, exports);
|
|
20
|
-
});
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
package/dist/amd/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;IAAA;;;oGAGgG;IAChG,4CAA6B;IAC7B,wDAAyC;IACzC,gDAAiC;IACjC,kDAAmC;IACnC,iDAAkC;IAClC,kDAAmC;IAG/B,iGAAA,UAAU,OAAA;IAAE,wGAAA,iBAAiB,OAAA;IAAE,4FAAA,KAAK,OAAA;IAAE,8FAAA,OAAO,OAAA;IAEjD,qCAA8D"}
|