monaco-languageclient 1.1.0 → 2.0.0-dev.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/dist/amd/console-window.d.ts +5 -4
- package/dist/amd/console-window.d.ts.map +1 -1
- package/dist/amd/console-window.js +17 -7
- package/dist/amd/console-window.js.map +1 -1
- package/dist/amd/disposable.d.ts +1 -1
- package/dist/amd/disposable.d.ts.map +1 -1
- package/dist/amd/disposable.js +6 -2
- package/dist/amd/disposable.js.map +1 -1
- package/dist/amd/index.d.ts +2 -5
- package/dist/amd/index.d.ts.map +1 -1
- package/dist/amd/index.js +7 -6
- package/dist/amd/index.js.map +1 -1
- package/dist/amd/monaco-language-client.d.ts +3 -1
- package/dist/amd/monaco-language-client.d.ts.map +1 -1
- package/dist/amd/monaco-language-client.js +1 -5
- package/dist/amd/monaco-language-client.js.map +1 -1
- package/dist/amd/monaco-services.d.ts +6 -10
- package/dist/amd/monaco-services.d.ts.map +1 -1
- package/dist/amd/monaco-services.js +6 -13
- package/dist/amd/monaco-services.js.map +1 -1
- package/dist/amd/monaco-workspace.d.ts +6 -28
- package/dist/amd/monaco-workspace.d.ts.map +1 -1
- package/dist/amd/monaco-workspace.js +4 -121
- package/dist/amd/monaco-workspace.js.map +1 -1
- package/lib/console-window.d.ts +5 -4
- package/lib/console-window.d.ts.map +1 -1
- package/lib/console-window.js +17 -7
- package/lib/console-window.js.map +1 -1
- package/lib/disposable.d.ts +1 -1
- package/lib/disposable.d.ts.map +1 -1
- package/lib/disposable.js +4 -4
- package/lib/disposable.js.map +1 -1
- package/lib/index.d.ts +2 -5
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +7 -5
- package/lib/index.js.map +1 -1
- package/lib/monaco-language-client.d.ts +3 -1
- package/lib/monaco-language-client.d.ts.map +1 -1
- package/lib/monaco-language-client.js +0 -5
- package/lib/monaco-language-client.js.map +1 -1
- package/lib/monaco-services.d.ts +6 -10
- package/lib/monaco-services.d.ts.map +1 -1
- package/lib/monaco-services.js +10 -17
- package/lib/monaco-services.js.map +1 -1
- package/lib/monaco-workspace.d.ts +6 -28
- package/lib/monaco-workspace.d.ts.map +1 -1
- package/lib/monaco-workspace.js +3 -123
- package/lib/monaco-workspace.js.map +1 -1
- package/package.json +4 -11
- package/src/console-window.ts +21 -10
- package/src/disposable.ts +2 -1
- package/src/index.ts +5 -5
- package/src/monaco-language-client.ts +3 -12
- package/src/monaco-services.ts +9 -23
- package/src/monaco-workspace.ts +6 -154
- package/dist/amd/connection.d.ts +0 -53
- package/dist/amd/connection.d.ts.map +0 -1
- package/dist/amd/connection.js +0 -41
- package/dist/amd/connection.js.map +0 -1
- package/dist/amd/converters.d.ts +0 -144
- package/dist/amd/converters.d.ts.map +0 -1
- package/dist/amd/converters.js +0 -154
- package/dist/amd/converters.js.map +0 -1
- package/dist/amd/monaco-commands.d.ts +0 -8
- package/dist/amd/monaco-commands.d.ts.map +0 -1
- package/dist/amd/monaco-commands.js +0 -15
- package/dist/amd/monaco-commands.js.map +0 -1
- package/dist/amd/monaco-converter.d.ts +0 -228
- package/dist/amd/monaco-converter.d.ts.map +0 -1
- package/dist/amd/monaco-converter.js +0 -1199
- package/dist/amd/monaco-converter.js.map +0 -1
- package/dist/amd/monaco-diagnostic-collection.d.ts +0 -32
- package/dist/amd/monaco-diagnostic-collection.d.ts.map +0 -1
- package/dist/amd/monaco-diagnostic-collection.js +0 -76
- package/dist/amd/monaco-diagnostic-collection.js.map +0 -1
- package/dist/amd/monaco-languages.d.ts +0 -70
- package/dist/amd/monaco-languages.d.ts.map +0 -1
- package/dist/amd/monaco-languages.js +0 -503
- package/dist/amd/monaco-languages.js.map +0 -1
- package/dist/amd/register-vscode.d.ts +0 -2
- package/dist/amd/register-vscode.d.ts.map +0 -1
- package/dist/amd/register-vscode.js +0 -16
- package/dist/amd/register-vscode.js.map +0 -1
- package/dist/amd/services.d.ts +0 -235
- package/dist/amd/services.d.ts.map +0 -1
- package/dist/amd/services.js +0 -69
- package/dist/amd/services.js.map +0 -1
- package/dist/amd/vscode-api.d.ts +0 -4
- package/dist/amd/vscode-api.d.ts.map +0 -1
- package/dist/amd/vscode-api.js +0 -1022
- package/dist/amd/vscode-api.js.map +0 -1
- package/dist/amd/vscode-compatibility.d.ts +0 -4
- package/dist/amd/vscode-compatibility.d.ts.map +0 -1
- package/dist/amd/vscode-compatibility.js +0 -5
- package/dist/amd/vscode-compatibility.js.map +0 -1
- package/lib/connection.d.ts +0 -53
- package/lib/connection.d.ts.map +0 -1
- package/lib/connection.js +0 -41
- package/lib/connection.js.map +0 -1
- package/lib/converters.d.ts +0 -144
- package/lib/converters.d.ts.map +0 -1
- package/lib/converters.js +0 -152
- package/lib/converters.js.map +0 -1
- package/lib/monaco-commands.d.ts +0 -8
- package/lib/monaco-commands.d.ts.map +0 -1
- package/lib/monaco-commands.js +0 -13
- package/lib/monaco-commands.js.map +0 -1
- package/lib/monaco-converter.d.ts +0 -228
- package/lib/monaco-converter.d.ts.map +0 -1
- package/lib/monaco-converter.js +0 -1199
- package/lib/monaco-converter.js.map +0 -1
- package/lib/monaco-diagnostic-collection.d.ts +0 -32
- package/lib/monaco-diagnostic-collection.d.ts.map +0 -1
- package/lib/monaco-diagnostic-collection.js +0 -75
- package/lib/monaco-diagnostic-collection.js.map +0 -1
- package/lib/monaco-languages.d.ts +0 -70
- package/lib/monaco-languages.d.ts.map +0 -1
- package/lib/monaco-languages.js +0 -504
- package/lib/monaco-languages.js.map +0 -1
- package/lib/register-vscode.d.ts +0 -2
- package/lib/register-vscode.d.ts.map +0 -1
- package/lib/register-vscode.js +0 -15
- package/lib/register-vscode.js.map +0 -1
- package/lib/services.d.ts +0 -235
- package/lib/services.d.ts.map +0 -1
- package/lib/services.js +0 -70
- package/lib/services.js.map +0 -1
- package/lib/vscode-api.d.ts +0 -4
- package/lib/vscode-api.d.ts.map +0 -1
- package/lib/vscode-api.js +0 -1025
- package/lib/vscode-api.js.map +0 -1
- package/lib/vscode-compatibility.d.ts +0 -4
- package/lib/vscode-compatibility.d.ts.map +0 -1
- package/lib/vscode-compatibility.js +0 -9
- package/lib/vscode-compatibility.js.map +0 -1
- package/src/connection.ts +0 -134
- package/src/converters.ts +0 -155
- package/src/monaco-commands.ts +0 -15
- package/src/monaco-converter.ts +0 -1342
- package/src/monaco-diagnostic-collection.ts +0 -94
- package/src/monaco-languages.ts +0 -571
- package/src/register-vscode.ts +0 -13
- package/src/services.ts +0 -327
- package/src/typings/monaco/index.d.ts +0 -21
- package/src/vscode-api.ts +0 -1051
- package/src/vscode-compatibility.ts +0 -8
package/src/monaco-services.ts
CHANGED
|
@@ -2,44 +2,30 @@
|
|
|
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 type * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
|
|
6
|
-
import { MonacoToProtocolConverter, ProtocolToMonacoConverter } from "./monaco-converter";
|
|
7
|
-
import { MonacoCommands } from './monaco-commands';
|
|
8
|
-
import { MonacoLanguages } from "./monaco-languages";
|
|
9
5
|
import { MonacoWorkspace } from "./monaco-workspace";
|
|
10
6
|
import { ConsoleWindow } from "./console-window";
|
|
11
|
-
import { Services } from "
|
|
12
|
-
import
|
|
7
|
+
import { Services } from "vscode/services";
|
|
8
|
+
import * as vscode from 'vscode'
|
|
13
9
|
|
|
14
10
|
export interface MonacoServices extends Services {
|
|
15
|
-
commands: MonacoCommands
|
|
16
|
-
languages: MonacoLanguages
|
|
17
11
|
workspace: MonacoWorkspace
|
|
18
12
|
window: ConsoleWindow
|
|
19
13
|
}
|
|
20
14
|
export namespace MonacoServices {
|
|
21
15
|
export interface Options {
|
|
22
|
-
|
|
16
|
+
workspaceFolders?: vscode.WorkspaceFolder[]
|
|
17
|
+
rootPath?: string
|
|
23
18
|
}
|
|
24
19
|
export type Provider = () => MonacoServices;
|
|
25
|
-
export function create(
|
|
26
|
-
const m2p = new MonacoToProtocolConverter(_monaco);
|
|
27
|
-
const p2m = new ProtocolToMonacoConverter(_monaco);
|
|
20
|
+
export function create(options: Options = {}): MonacoServices {
|
|
28
21
|
return {
|
|
29
|
-
|
|
30
|
-
languages: new MonacoLanguages(_monaco, p2m, m2p),
|
|
31
|
-
workspace: new MonacoWorkspace(_monaco, p2m, m2p, options.rootUri),
|
|
22
|
+
workspace: new MonacoWorkspace(options.workspaceFolders, options.rootPath),
|
|
32
23
|
window: new ConsoleWindow()
|
|
33
24
|
}
|
|
34
25
|
}
|
|
35
|
-
export function install(
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
const services = create(_monaco, options);
|
|
39
|
-
disposableCollection.push(services.workspace)
|
|
40
|
-
disposableCollection.push(Services.install(services));
|
|
41
|
-
|
|
42
|
-
return disposableCollection;
|
|
26
|
+
export function install(options: Options = {}): vscode.Disposable {
|
|
27
|
+
const services = create(options);
|
|
28
|
+
return Services.install(services);
|
|
43
29
|
}
|
|
44
30
|
export function get(): MonacoServices {
|
|
45
31
|
return Services.get() as MonacoServices;
|
package/src/monaco-workspace.ts
CHANGED
|
@@ -2,161 +2,13 @@
|
|
|
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
|
|
6
|
-
import {
|
|
7
|
-
import { Workspace, WorkspaceEdit, TextDocumentDidChangeEvent, Event, Emitter, Disposable } from './services';
|
|
8
|
-
import { TextDocument } from 'vscode-languageserver-textdocument'
|
|
9
|
-
import { DisposableCollection } from './disposable';
|
|
10
|
-
|
|
11
|
-
export class MonacoWorkspace implements Workspace, Disposable {
|
|
12
|
-
|
|
13
|
-
protected readonly disposableCollection = new DisposableCollection()
|
|
14
|
-
protected readonly documents = new Map<string, TextDocument>();
|
|
15
|
-
protected readonly documentDisposables = new Map<string, Disposable>();
|
|
16
|
-
protected readonly onDidOpenTextDocumentEmitter = new Emitter<TextDocument>();
|
|
17
|
-
protected readonly onDidCloseTextDocumentEmitter = new Emitter<TextDocument>();
|
|
18
|
-
protected readonly onDidChangeTextDocumentEmitter = new Emitter<TextDocumentDidChangeEvent>();
|
|
5
|
+
import * as vscode from 'vscode';
|
|
6
|
+
import { Workspace } from 'vscode/services'
|
|
19
7
|
|
|
8
|
+
export class MonacoWorkspace implements Workspace {
|
|
20
9
|
constructor(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
protected _rootUri: string | null = null) {
|
|
25
|
-
for (const model of this._monaco.editor.getModels()) {
|
|
26
|
-
this.addModel(model);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
this.disposableCollection.push(this._monaco.editor.onDidCreateModel(model => this.addModel(model)));
|
|
30
|
-
this.disposableCollection.push(this._monaco.editor.onWillDisposeModel(model => this.removeModel(model)));
|
|
31
|
-
this.disposableCollection.push(this._monaco.editor.onDidChangeModelLanguage((event) => {
|
|
32
|
-
this.removeModel(event.model);
|
|
33
|
-
this.addModel(event.model);
|
|
34
|
-
}));
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
dispose(): void {
|
|
38
|
-
this.disposableCollection.dispose()
|
|
39
|
-
|
|
40
|
-
for (const model of this._monaco.editor.getModels()) {
|
|
41
|
-
this.removeModel(model);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
get rootUri() {
|
|
46
|
-
return this._rootUri;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
protected removeModel(model: monaco.editor.IModel): void {
|
|
50
|
-
const uri = model.uri.toString();
|
|
51
|
-
const document = this.documents.get(uri);
|
|
52
|
-
if (document) {
|
|
53
|
-
this.documents.delete(uri);
|
|
54
|
-
this.onDidCloseTextDocumentEmitter.fire(document);
|
|
55
|
-
}
|
|
56
|
-
const disposable = this.documentDisposables.get(uri)
|
|
57
|
-
if (disposable) {
|
|
58
|
-
disposable.dispose()
|
|
59
|
-
this.documentDisposables.delete(uri)
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
protected addModel(model: monaco.editor.IModel): void {
|
|
64
|
-
const uri = model.uri.toString();
|
|
65
|
-
const document = this.setModel(uri, model);
|
|
66
|
-
this.onDidOpenTextDocumentEmitter.fire(document)
|
|
67
|
-
this.documentDisposables.set(uri, model.onDidChangeContent(event =>
|
|
68
|
-
this.onDidChangeContent(uri, model, event)
|
|
69
|
-
));
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
protected onDidChangeContent(uri: string, model: monaco.editor.IModel, event: monaco.editor.IModelContentChangedEvent) {
|
|
73
|
-
const textDocument = this.setModel(uri, model);
|
|
74
|
-
const contentChanges = [];
|
|
75
|
-
for (const change of event.changes) {
|
|
76
|
-
const range = this.m2p.asRange(change.range);
|
|
77
|
-
const rangeLength = change.rangeLength;
|
|
78
|
-
const text = change.text;
|
|
79
|
-
contentChanges.push({ range, rangeLength, text });
|
|
80
|
-
}
|
|
81
|
-
this.onDidChangeTextDocumentEmitter.fire({
|
|
82
|
-
textDocument,
|
|
83
|
-
contentChanges,
|
|
84
|
-
isRedoing: event.isRedoing,
|
|
85
|
-
isUndoing: event.isUndoing
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
protected setModel(uri: string, model: monaco.editor.IModel): TextDocument {
|
|
90
|
-
const document = TextDocument.create(uri, model.getLanguageId(), model.getVersionId(), model.getValue());
|
|
91
|
-
this.documents.set(uri, document);
|
|
92
|
-
return document;
|
|
10
|
+
public readonly workspaceFolders?: vscode.WorkspaceFolder[],
|
|
11
|
+
public readonly rootPath?: string | undefined
|
|
12
|
+
) {
|
|
93
13
|
}
|
|
94
|
-
|
|
95
|
-
get textDocuments(): TextDocument[] {
|
|
96
|
-
return Array.from(this.documents.values());
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
get onDidOpenTextDocument(): Event<TextDocument> {
|
|
100
|
-
return this.onDidOpenTextDocumentEmitter.event;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
get onDidCloseTextDocument(): Event<TextDocument> {
|
|
104
|
-
return this.onDidCloseTextDocumentEmitter.event;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
get onDidChangeTextDocument(): Event<TextDocumentDidChangeEvent> {
|
|
108
|
-
return this.onDidChangeTextDocumentEmitter.event;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
public applyEdit(workspaceEdit: WorkspaceEdit): Promise<boolean> {
|
|
112
|
-
const edit: monaco.languages.WorkspaceEdit = this.p2m.asWorkspaceEdit(workspaceEdit);
|
|
113
|
-
|
|
114
|
-
// Collect all referenced models
|
|
115
|
-
const models: { [uri: string]: monaco.editor.IModel } = edit.edits ? edit.edits.reduce(
|
|
116
|
-
(acc: { [uri: string]: monaco.editor.IModel }, currentEdit) => {
|
|
117
|
-
const textEdit = currentEdit as monaco.languages.WorkspaceTextEdit;
|
|
118
|
-
acc[textEdit.resource.toString()] = this._monaco.editor.getModel(textEdit.resource) as monaco.editor.ITextModel;
|
|
119
|
-
return acc;
|
|
120
|
-
}, {}
|
|
121
|
-
) : {};
|
|
122
|
-
|
|
123
|
-
// If any of the models do not exist, refuse to apply the edit.
|
|
124
|
-
if (!Object.keys(models).map(uri => models[uri]).every(model => !!model)) {
|
|
125
|
-
return Promise.resolve(false);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// Group edits by resource so we can batch them when applying
|
|
129
|
-
const editsByResource: { [uri: string]: monaco.editor.IIdentifiedSingleEditOperation[] } = edit.edits ? edit.edits.reduce(
|
|
130
|
-
(acc: { [uri: string]: monaco.editor.IIdentifiedSingleEditOperation[] }, currentEdit) => {
|
|
131
|
-
const textEdit = currentEdit as monaco.languages.WorkspaceTextEdit;
|
|
132
|
-
const uri = textEdit.resource.toString();
|
|
133
|
-
if (!(uri in acc)) {
|
|
134
|
-
acc[uri] = [];
|
|
135
|
-
}
|
|
136
|
-
acc[uri].push({
|
|
137
|
-
range: this._monaco.Range.lift(textEdit.edit.range as monaco.IRange),
|
|
138
|
-
text: textEdit.edit.text as string,
|
|
139
|
-
});
|
|
140
|
-
return acc;
|
|
141
|
-
}, {}
|
|
142
|
-
) : {};
|
|
143
|
-
|
|
144
|
-
// Apply edits for each resource
|
|
145
|
-
Object.keys(editsByResource).forEach(uri => {
|
|
146
|
-
models[uri].pushEditOperations(
|
|
147
|
-
[], // Do not try and preserve editor selections.
|
|
148
|
-
editsByResource[uri].map(resourceEdit => {
|
|
149
|
-
return {
|
|
150
|
-
identifier: { major: 1, minor: 0 },
|
|
151
|
-
range: resourceEdit.range,
|
|
152
|
-
text: resourceEdit.text,
|
|
153
|
-
forceMoveMarkers: true,
|
|
154
|
-
};
|
|
155
|
-
}),
|
|
156
|
-
() => [], // Do not try and preserve editor selections.
|
|
157
|
-
);
|
|
158
|
-
});
|
|
159
|
-
return Promise.resolve(true);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
14
|
}
|
package/dist/amd/connection.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { Message, RequestType, RequestType0, RequestHandler, RequestHandler0, GenericRequestHandler, NotificationType, NotificationType0, NotificationHandler, NotificationHandler0, GenericNotificationHandler, Trace, Tracer, CancellationToken, MessageConnection, MessageSignature, Disposable, ProgressType } from 'vscode-jsonrpc/lib/common/api';
|
|
2
|
-
import type { MessageTransports } from 'vscode-languageclient/lib/common/api';
|
|
3
|
-
import { InitializeParams, InitializeResult, LogMessageParams, ShowMessageParams, DidChangeConfigurationParams, DidOpenTextDocumentParams, DidChangeTextDocumentParams, DidCloseTextDocumentParams, DidSaveTextDocumentParams, DidChangeWatchedFilesParams, PublishDiagnosticsParams } from 'vscode-languageserver-protocol';
|
|
4
|
-
export interface IConnection {
|
|
5
|
-
listen(): void;
|
|
6
|
-
sendRequest<R, E>(type: RequestType0<R, E>, token?: CancellationToken): Thenable<R>;
|
|
7
|
-
sendRequest<P, R, E>(type: RequestType<P, R, E>, params: P, token?: CancellationToken): Thenable<R>;
|
|
8
|
-
sendRequest<R>(method: string, token?: CancellationToken): Thenable<R>;
|
|
9
|
-
sendRequest<R>(method: string, param: any, token?: CancellationToken): Thenable<R>;
|
|
10
|
-
sendRequest<R>(type: string | MessageSignature, ...params: any[]): Thenable<R>;
|
|
11
|
-
onRequest<R, E>(type: RequestType0<R, E>, handler: RequestHandler0<R, E>): Disposable;
|
|
12
|
-
onRequest<P, R, E>(type: RequestType<P, R, E>, handler: RequestHandler<P, R, E>): Disposable;
|
|
13
|
-
onRequest<R, E>(method: string, handler: GenericRequestHandler<R, E>): Disposable;
|
|
14
|
-
onRequest<R, E>(method: string | MessageSignature, handler: GenericRequestHandler<R, E>): Disposable;
|
|
15
|
-
sendNotification(type: NotificationType0): Thenable<void>;
|
|
16
|
-
sendNotification<P>(type: NotificationType<P>, params?: P): Thenable<void>;
|
|
17
|
-
sendNotification(method: string): Thenable<void>;
|
|
18
|
-
sendNotification(method: string, params: any): Thenable<void>;
|
|
19
|
-
sendNotification(method: string | MessageSignature, params?: any): Thenable<void>;
|
|
20
|
-
onNotification(type: NotificationType0, handler: NotificationHandler0): Disposable;
|
|
21
|
-
onNotification<P>(type: NotificationType<P>, handler: NotificationHandler<P>): Disposable;
|
|
22
|
-
onNotification(method: string, handler: GenericNotificationHandler): Disposable;
|
|
23
|
-
onNotification(method: string | MessageSignature, handler: GenericNotificationHandler): Disposable;
|
|
24
|
-
onProgress<P>(type: ProgressType<P>, token: string | number, handler: NotificationHandler<P>): Disposable;
|
|
25
|
-
sendProgress<P>(type: ProgressType<P>, token: string | number, value: P): Thenable<void>;
|
|
26
|
-
trace(value: Trace, tracer: Tracer, sendNotification?: boolean): void;
|
|
27
|
-
initialize(params: InitializeParams): Thenable<InitializeResult>;
|
|
28
|
-
shutdown(): Thenable<void>;
|
|
29
|
-
exit(): Thenable<void>;
|
|
30
|
-
onLogMessage(handle: NotificationHandler<LogMessageParams>): void;
|
|
31
|
-
onShowMessage(handler: NotificationHandler<ShowMessageParams>): void;
|
|
32
|
-
onTelemetry(handler: NotificationHandler<any>): void;
|
|
33
|
-
didChangeConfiguration(params: DidChangeConfigurationParams): Thenable<void>;
|
|
34
|
-
didChangeWatchedFiles(params: DidChangeWatchedFilesParams): Thenable<void>;
|
|
35
|
-
didOpenTextDocument(params: DidOpenTextDocumentParams): Thenable<void>;
|
|
36
|
-
didChangeTextDocument(params: DidChangeTextDocumentParams): Thenable<void>;
|
|
37
|
-
didCloseTextDocument(params: DidCloseTextDocumentParams): Thenable<void>;
|
|
38
|
-
didSaveTextDocument(params: DidSaveTextDocumentParams): Thenable<void>;
|
|
39
|
-
onDiagnostics(handler: NotificationHandler<PublishDiagnosticsParams>): void;
|
|
40
|
-
end(): void;
|
|
41
|
-
dispose(): void;
|
|
42
|
-
}
|
|
43
|
-
export interface ConnectionErrorHandler {
|
|
44
|
-
(error: Error, message: Message | undefined, count: number | undefined): void;
|
|
45
|
-
}
|
|
46
|
-
export interface ConnectionCloseHandler {
|
|
47
|
-
(): void;
|
|
48
|
-
}
|
|
49
|
-
export interface IConnectionProvider {
|
|
50
|
-
get(encoding: string): Promise<MessageTransports>;
|
|
51
|
-
}
|
|
52
|
-
export declare function createConnection(connection: MessageConnection, errorHandler: ConnectionErrorHandler, closeHandler: ConnectionCloseHandler): IConnection;
|
|
53
|
-
//# sourceMappingURL=connection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/connection.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACR,OAAO,EACP,WAAW,EAAE,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,qBAAqB,EACjF,gBAAgB,EAAE,iBAAiB,EACnC,mBAAmB,EAAE,oBAAoB,EAAE,0BAA0B,EACrE,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAA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Q,CAAC,IAAI,CAAC,CAAC;IAE3E,mBAAmB,CAAC,MAAM,EAAE,yBAAyB,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvE,qBAAqB,CAAC,MAAM,EAAE,2BAA2B,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3E,oBAAoB,CAAC,MAAM,EAAE,0BAA0B,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACzE,mBAAmB,CAAC,MAAM,EAAE,yBAAyB,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvE,aAAa,CAAC,OAAO,EAAE,mBAAmB,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC;IAE5E,GAAG,IAAI,IAAI,CAAC;IACZ,OAAO,IAAI,IAAI,CAAC;CACnB;AAED,MAAM,WAAW,sBAAsB;IACnC,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;CACjF;AACD,MAAM,WAAW,sBAAsB;IACnC,IAAI,IAAI,CAAC;CACZ;AACD,MAAM,WAAW,mBAAmB;IAChC,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACrD;AACD,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,iBAAiB,EAAE,YAAY,EAAE,sBAAsB,EAAE,YAAY,EAAE,sBAAsB,GAAG,WAAW,CAuCvJ"}
|
package/dist/amd/connection.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "tslib", "vscode-languageserver-protocol", "vscode-languageserver-protocol/lib/common/utils/is"], function (require, exports, tslib_1, vscode_languageserver_protocol_1, Is) {
|
|
2
|
-
/* --------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) 2018-2022 TypeFox GmbH (http://www.typefox.io). All rights reserved.
|
|
4
|
-
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
|
-
* ------------------------------------------------------------------------------------------ */
|
|
6
|
-
'use strict';
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.createConnection = void 0;
|
|
9
|
-
Is = tslib_1.__importStar(Is);
|
|
10
|
-
function createConnection(connection, errorHandler, closeHandler) {
|
|
11
|
-
connection.onError((data) => { errorHandler(data[0], data[1], data[2]); });
|
|
12
|
-
connection.onClose(closeHandler);
|
|
13
|
-
return {
|
|
14
|
-
listen: () => connection.listen(),
|
|
15
|
-
sendRequest: (type, ...params) => connection.sendRequest(Is.string(type) ? type : type.method, ...params),
|
|
16
|
-
onRequest: (type, handler) => connection.onRequest(Is.string(type) ? type : type.method, handler),
|
|
17
|
-
sendNotification: async (type, params) => connection.sendNotification(Is.string(type) ? type : type.method, params),
|
|
18
|
-
onNotification: (type, handler) => connection.onNotification(Is.string(type) ? type : type.method, handler),
|
|
19
|
-
onProgress: (type, token, handler) => connection.onProgress(type, token, handler),
|
|
20
|
-
sendProgress: async (type, token, value) => connection.sendProgress(type, token, value),
|
|
21
|
-
trace: (value, tracer, sendNotification = false) => connection.trace(value, tracer, sendNotification),
|
|
22
|
-
initialize: (params) => connection.sendRequest(vscode_languageserver_protocol_1.InitializeRequest.type, params),
|
|
23
|
-
shutdown: () => connection.sendRequest(vscode_languageserver_protocol_1.ShutdownRequest.type, undefined),
|
|
24
|
-
exit: async () => connection.sendNotification(vscode_languageserver_protocol_1.ExitNotification.type),
|
|
25
|
-
onLogMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1.LogMessageNotification.type, handler),
|
|
26
|
-
onShowMessage: (handler) => connection.onNotification(vscode_languageserver_protocol_1.ShowMessageNotification.type, handler),
|
|
27
|
-
onTelemetry: (handler) => connection.onNotification(vscode_languageserver_protocol_1.TelemetryEventNotification.type, handler),
|
|
28
|
-
didChangeConfiguration: async (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidChangeConfigurationNotification.type, params),
|
|
29
|
-
didChangeWatchedFiles: async (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidChangeWatchedFilesNotification.type, params),
|
|
30
|
-
didOpenTextDocument: async (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidOpenTextDocumentNotification.type, params),
|
|
31
|
-
didChangeTextDocument: async (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidChangeTextDocumentNotification.type, params),
|
|
32
|
-
didCloseTextDocument: async (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidCloseTextDocumentNotification.type, params),
|
|
33
|
-
didSaveTextDocument: async (params) => connection.sendNotification(vscode_languageserver_protocol_1.DidSaveTextDocumentNotification.type, params),
|
|
34
|
-
onDiagnostics: (handler) => connection.onNotification(vscode_languageserver_protocol_1.PublishDiagnosticsNotification.type, handler),
|
|
35
|
-
dispose: () => connection.dispose(),
|
|
36
|
-
end: () => connection.end()
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
exports.createConnection = createConnection;
|
|
40
|
-
});
|
|
41
|
-
//# sourceMappingURL=connection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../src/connection.ts"],"names":[],"mappings":";IAAA;;;oGAGgG;IAChG,YAAY,CAAC;;;;IAyFb,SAAgB,gBAAgB,CAAC,UAA6B,EAAE,YAAoC,EAAE,YAAoC;QACtI,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC;QAC1E,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QACjC,OAAO;YAEH,MAAM,EAAE,GAAS,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE;YAEvC,WAAW,EAAE,CAAI,IAA+B,EAAE,GAAG,MAAa,EAAe,EAAE,CAAC,UAAU,CAAC,W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,EAAE,MAAiC,EAAE,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,gEAA+B,CAAC,IAAI,EAAE,MAAM,CAAC;YAE3I,aAAa,EAAE,CAAC,OAAsD,EAAE,EAAE,CAAC,UAAU,CAAC,cAAc,CAAC,+DAA8B,CAAC,IAAI,EAAE,OAAO,CAAC;YAElJ,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE;YACnC,GAAG,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,GAAG,EAAE;SAC9B,CAAC;IACN,CAAC;IAvCD,4CAuCC"}
|
package/dist/amd/converters.d.ts
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import * as p2c from 'vscode-languageclient/lib/common/protocolConverter';
|
|
2
|
-
import * as c2p from 'vscode-languageclient/lib/common/codeConverter';
|
|
3
|
-
import type { WillSaveTextDocumentParams } from 'vscode-languageserver-protocol';
|
|
4
|
-
import * as code from 'vscode';
|
|
5
|
-
import * as proto from 'vscode-languageserver-protocol';
|
|
6
|
-
declare type NotAPromise<T> = T extends object & {
|
|
7
|
-
then(onfulfilled: infer F): any;
|
|
8
|
-
} ? F extends ((value: infer V, ...args: any) => any) ? NotAPromise<V> : never : T;
|
|
9
|
-
declare function bypassConversion<R>(param: any): NotAPromise<R>;
|
|
10
|
-
declare function toPromise<R>(param: any): Promise<R>;
|
|
11
|
-
export declare class MonacoP2CConverter implements p2c.Converter {
|
|
12
|
-
private delegate;
|
|
13
|
-
constructor(delegate: p2c.Converter);
|
|
14
|
-
asUri: (value: string) => code.Uri;
|
|
15
|
-
asDocumentSelector: typeof bypassConversion;
|
|
16
|
-
asPosition: typeof bypassConversion;
|
|
17
|
-
asRange: typeof bypassConversion;
|
|
18
|
-
asRanges: typeof toPromise;
|
|
19
|
-
asDiagnostic: typeof bypassConversion;
|
|
20
|
-
asDiagnostics: typeof toPromise;
|
|
21
|
-
asDiagnosticSeverity: typeof bypassConversion;
|
|
22
|
-
asDiagnosticTag: typeof bypassConversion;
|
|
23
|
-
asHover: typeof bypassConversion;
|
|
24
|
-
asCompletionResult: typeof bypassConversion;
|
|
25
|
-
asCompletionItem: typeof bypassConversion;
|
|
26
|
-
asTextEdit: typeof bypassConversion;
|
|
27
|
-
asTextEdits: typeof bypassConversion;
|
|
28
|
-
asSignatureHelp: typeof bypassConversion;
|
|
29
|
-
asSignatureInformation: typeof toPromise;
|
|
30
|
-
asSignatureInformations: typeof toPromise;
|
|
31
|
-
asParameterInformation: typeof bypassConversion;
|
|
32
|
-
asParameterInformations: typeof toPromise;
|
|
33
|
-
asLocation: typeof bypassConversion;
|
|
34
|
-
asDeclarationResult: typeof bypassConversion;
|
|
35
|
-
asDefinitionResult: typeof bypassConversion;
|
|
36
|
-
asReferences: typeof bypassConversion;
|
|
37
|
-
asDocumentHighlightKind: typeof bypassConversion;
|
|
38
|
-
asDocumentHighlight: typeof bypassConversion;
|
|
39
|
-
asDocumentHighlights: typeof bypassConversion;
|
|
40
|
-
asSymbolKind: typeof bypassConversion;
|
|
41
|
-
asSymbolTag: typeof bypassConversion;
|
|
42
|
-
asSymbolTags: typeof bypassConversion;
|
|
43
|
-
asSymbolInformation: typeof bypassConversion;
|
|
44
|
-
asSymbolInformations: typeof bypassConversion;
|
|
45
|
-
asDocumentSymbol: typeof bypassConversion;
|
|
46
|
-
asDocumentSymbols: typeof bypassConversion;
|
|
47
|
-
asCommand: typeof bypassConversion;
|
|
48
|
-
asCommands: typeof bypassConversion;
|
|
49
|
-
asCodeAction: typeof bypassConversion;
|
|
50
|
-
asCodeActionKind: typeof bypassConversion;
|
|
51
|
-
asCodeActionKinds: typeof bypassConversion;
|
|
52
|
-
asCodeActionResult: typeof toPromise;
|
|
53
|
-
asCodeLens: typeof bypassConversion;
|
|
54
|
-
asCodeLenses: typeof bypassConversion;
|
|
55
|
-
asWorkspaceEdit: typeof bypassConversion;
|
|
56
|
-
asDocumentLink: typeof bypassConversion;
|
|
57
|
-
asDocumentLinks: typeof bypassConversion;
|
|
58
|
-
asColor: typeof bypassConversion;
|
|
59
|
-
asColorInformation: typeof bypassConversion;
|
|
60
|
-
asColorInformations: typeof bypassConversion;
|
|
61
|
-
asColorPresentation: typeof bypassConversion;
|
|
62
|
-
asColorPresentations: typeof bypassConversion;
|
|
63
|
-
asFoldingRangeKind: typeof bypassConversion;
|
|
64
|
-
asFoldingRange: typeof bypassConversion;
|
|
65
|
-
asFoldingRanges: typeof bypassConversion;
|
|
66
|
-
asSelectionRange: typeof bypassConversion;
|
|
67
|
-
asSelectionRanges: typeof bypassConversion;
|
|
68
|
-
asInlineValue: typeof bypassConversion;
|
|
69
|
-
asInlineValues: typeof bypassConversion;
|
|
70
|
-
asInlayHint: typeof toPromise;
|
|
71
|
-
asInlayHints: typeof bypassConversion;
|
|
72
|
-
asSemanticTokensLegend: typeof bypassConversion;
|
|
73
|
-
asSemanticTokens: typeof bypassConversion;
|
|
74
|
-
asSemanticTokensEdit: typeof bypassConversion;
|
|
75
|
-
asSemanticTokensEdits: typeof bypassConversion;
|
|
76
|
-
asCallHierarchyItem: typeof bypassConversion;
|
|
77
|
-
asCallHierarchyItems: typeof bypassConversion;
|
|
78
|
-
asCallHierarchyIncomingCall: typeof toPromise;
|
|
79
|
-
asCallHierarchyIncomingCalls: typeof bypassConversion;
|
|
80
|
-
asCallHierarchyOutgoingCall: typeof toPromise;
|
|
81
|
-
asCallHierarchyOutgoingCalls: typeof bypassConversion;
|
|
82
|
-
asLinkedEditingRanges: typeof bypassConversion;
|
|
83
|
-
asTypeHierarchyItem: typeof bypassConversion;
|
|
84
|
-
asTypeHierarchyItems: typeof bypassConversion;
|
|
85
|
-
asGlobPattern: typeof bypassConversion;
|
|
86
|
-
}
|
|
87
|
-
export declare class MonacoC2PConverter implements c2p.Converter {
|
|
88
|
-
private delegate;
|
|
89
|
-
constructor(delegate: c2p.Converter);
|
|
90
|
-
asUri: (uri: code.Uri) => string;
|
|
91
|
-
asTextDocumentItem: typeof bypassConversion;
|
|
92
|
-
asTextDocumentIdentifier: typeof bypassConversion;
|
|
93
|
-
asVersionedTextDocumentIdentifier: typeof bypassConversion;
|
|
94
|
-
asOpenTextDocumentParams: (textDocument: code.TextDocument) => proto.DidOpenTextDocumentParams;
|
|
95
|
-
asChangeTextDocumentParams: {
|
|
96
|
-
(textDocument: code.TextDocument): proto.DidChangeTextDocumentParams;
|
|
97
|
-
(event: code.TextDocumentChangeEvent): proto.DidChangeTextDocumentParams;
|
|
98
|
-
};
|
|
99
|
-
asCloseTextDocumentParams: (textDocument: code.TextDocument) => proto.DidCloseTextDocumentParams;
|
|
100
|
-
asSaveTextDocumentParams: (textDocument: code.TextDocument, includeContent?: boolean | undefined) => proto.DidSaveTextDocumentParams;
|
|
101
|
-
asWillSaveTextDocumentParams: (event: code.TextDocumentWillSaveEvent) => WillSaveTextDocumentParams;
|
|
102
|
-
asDidCreateFilesParams: (event: code.FileCreateEvent) => proto.CreateFilesParams;
|
|
103
|
-
asDidRenameFilesParams: (event: code.FileRenameEvent) => proto.RenameFilesParams;
|
|
104
|
-
asDidDeleteFilesParams: (event: code.FileDeleteEvent) => proto.DeleteFilesParams;
|
|
105
|
-
asWillCreateFilesParams: (event: code.FileCreateEvent) => proto.CreateFilesParams;
|
|
106
|
-
asWillRenameFilesParams: (event: code.FileRenameEvent) => proto.RenameFilesParams;
|
|
107
|
-
asWillDeleteFilesParams: (event: code.FileDeleteEvent) => proto.DeleteFilesParams;
|
|
108
|
-
asTextDocumentPositionParams: (textDocument: code.TextDocument, position: code.Position) => proto.TextDocumentPositionParams;
|
|
109
|
-
asCompletionParams: (textDocument: code.TextDocument, position: code.Position, context: code.CompletionContext) => proto.CompletionParams;
|
|
110
|
-
asSignatureHelpParams: (textDocument: code.TextDocument, position: code.Position, context: code.SignatureHelpContext) => proto.SignatureHelpParams;
|
|
111
|
-
asWorkerPosition: typeof bypassConversion;
|
|
112
|
-
asPosition: typeof bypassConversion;
|
|
113
|
-
asPositions: typeof toPromise;
|
|
114
|
-
asRange: typeof bypassConversion;
|
|
115
|
-
asLocation: typeof bypassConversion;
|
|
116
|
-
asDiagnosticSeverity: typeof bypassConversion;
|
|
117
|
-
asDiagnosticTag: typeof bypassConversion;
|
|
118
|
-
asDiagnostic: typeof bypassConversion;
|
|
119
|
-
asDiagnostics: typeof toPromise;
|
|
120
|
-
asCompletionItem: typeof bypassConversion;
|
|
121
|
-
asSymbolKind: typeof bypassConversion;
|
|
122
|
-
asSymbolTag: typeof bypassConversion;
|
|
123
|
-
asSymbolTags: typeof bypassConversion;
|
|
124
|
-
asTextEdit: typeof bypassConversion;
|
|
125
|
-
asReferenceParams: (textDocument: code.TextDocument, position: code.Position, options: {
|
|
126
|
-
includeDeclaration: boolean;
|
|
127
|
-
}) => proto.ReferenceParams;
|
|
128
|
-
asCodeAction: typeof toPromise;
|
|
129
|
-
asCodeActionContext: typeof toPromise;
|
|
130
|
-
asInlineValueContext: typeof bypassConversion;
|
|
131
|
-
asCommand: typeof bypassConversion;
|
|
132
|
-
asCodeLens: typeof bypassConversion;
|
|
133
|
-
asFormattingOptions: typeof bypassConversion;
|
|
134
|
-
asDocumentSymbolParams: (textDocument: code.TextDocument) => proto.DocumentSymbolParams;
|
|
135
|
-
asCodeLensParams: (textDocument: code.TextDocument) => proto.CodeLensParams;
|
|
136
|
-
asDocumentLink: typeof bypassConversion;
|
|
137
|
-
asDocumentLinkParams: (textDocument: code.TextDocument) => proto.DocumentLinkParams;
|
|
138
|
-
asCallHierarchyItem: typeof bypassConversion;
|
|
139
|
-
asTypeHierarchyItem: typeof bypassConversion;
|
|
140
|
-
asWorkspaceSymbol: typeof bypassConversion;
|
|
141
|
-
asInlayHint: typeof bypassConversion;
|
|
142
|
-
}
|
|
143
|
-
export {};
|
|
144
|
-
//# sourceMappingURL=converters.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converters.d.ts","sourceRoot":"","sources":["../../src/converters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,G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ELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
define(["require", "exports"], function (require, exports) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.MonacoC2PConverter = exports.MonacoP2CConverter = void 0;
|
|
5
|
-
function bypassConversion(param) {
|
|
6
|
-
return param;
|
|
7
|
-
}
|
|
8
|
-
function toPromise(param) {
|
|
9
|
-
return Promise.resolve(param);
|
|
10
|
-
}
|
|
11
|
-
class MonacoP2CConverter {
|
|
12
|
-
constructor(delegate) {
|
|
13
|
-
this.delegate = delegate;
|
|
14
|
-
this.asUri = this.delegate.asUri.bind(this.delegate);
|
|
15
|
-
this.asDocumentSelector = bypassConversion;
|
|
16
|
-
this.asPosition = bypassConversion;
|
|
17
|
-
this.asRange = bypassConversion;
|
|
18
|
-
this.asRanges = toPromise;
|
|
19
|
-
this.asDiagnostic = bypassConversion;
|
|
20
|
-
this.asDiagnostics = toPromise;
|
|
21
|
-
this.asDiagnosticSeverity = bypassConversion;
|
|
22
|
-
this.asDiagnosticTag = bypassConversion;
|
|
23
|
-
this.asHover = bypassConversion;
|
|
24
|
-
this.asCompletionResult = bypassConversion;
|
|
25
|
-
this.asCompletionItem = bypassConversion;
|
|
26
|
-
this.asTextEdit = bypassConversion;
|
|
27
|
-
this.asTextEdits = bypassConversion;
|
|
28
|
-
this.asSignatureHelp = bypassConversion;
|
|
29
|
-
this.asSignatureInformation = toPromise;
|
|
30
|
-
this.asSignatureInformations = toPromise;
|
|
31
|
-
this.asParameterInformation = bypassConversion;
|
|
32
|
-
this.asParameterInformations = toPromise;
|
|
33
|
-
this.asLocation = bypassConversion;
|
|
34
|
-
this.asDeclarationResult = bypassConversion;
|
|
35
|
-
this.asDefinitionResult = bypassConversion;
|
|
36
|
-
this.asReferences = bypassConversion;
|
|
37
|
-
this.asDocumentHighlightKind = bypassConversion;
|
|
38
|
-
this.asDocumentHighlight = bypassConversion;
|
|
39
|
-
this.asDocumentHighlights = bypassConversion;
|
|
40
|
-
this.asSymbolKind = bypassConversion;
|
|
41
|
-
this.asSymbolTag = bypassConversion;
|
|
42
|
-
this.asSymbolTags = bypassConversion;
|
|
43
|
-
this.asSymbolInformation = bypassConversion;
|
|
44
|
-
this.asSymbolInformations = bypassConversion;
|
|
45
|
-
this.asDocumentSymbol = bypassConversion;
|
|
46
|
-
this.asDocumentSymbols = bypassConversion;
|
|
47
|
-
this.asCommand = bypassConversion;
|
|
48
|
-
this.asCommands = bypassConversion;
|
|
49
|
-
this.asCodeAction = bypassConversion;
|
|
50
|
-
this.asCodeActionKind = bypassConversion;
|
|
51
|
-
this.asCodeActionKinds = bypassConversion;
|
|
52
|
-
this.asCodeActionResult = toPromise;
|
|
53
|
-
this.asCodeLens = bypassConversion;
|
|
54
|
-
this.asCodeLenses = bypassConversion;
|
|
55
|
-
this.asWorkspaceEdit = bypassConversion;
|
|
56
|
-
this.asDocumentLink = bypassConversion;
|
|
57
|
-
this.asDocumentLinks = bypassConversion;
|
|
58
|
-
this.asColor = bypassConversion;
|
|
59
|
-
this.asColorInformation = bypassConversion;
|
|
60
|
-
this.asColorInformations = bypassConversion;
|
|
61
|
-
this.asColorPresentation = bypassConversion;
|
|
62
|
-
this.asColorPresentations = bypassConversion;
|
|
63
|
-
this.asFoldingRangeKind = bypassConversion;
|
|
64
|
-
this.asFoldingRange = bypassConversion;
|
|
65
|
-
this.asFoldingRanges = bypassConversion;
|
|
66
|
-
this.asSelectionRange = bypassConversion;
|
|
67
|
-
this.asSelectionRanges = bypassConversion;
|
|
68
|
-
this.asInlineValue = bypassConversion;
|
|
69
|
-
this.asInlineValues = bypassConversion;
|
|
70
|
-
this.asInlayHint = toPromise;
|
|
71
|
-
this.asInlayHints = bypassConversion;
|
|
72
|
-
this.asSemanticTokensLegend = bypassConversion;
|
|
73
|
-
this.asSemanticTokens = bypassConversion;
|
|
74
|
-
this.asSemanticTokensEdit = bypassConversion;
|
|
75
|
-
this.asSemanticTokensEdits = bypassConversion;
|
|
76
|
-
this.asCallHierarchyItem = bypassConversion;
|
|
77
|
-
this.asCallHierarchyItems = bypassConversion;
|
|
78
|
-
this.asCallHierarchyIncomingCall = toPromise;
|
|
79
|
-
this.asCallHierarchyIncomingCalls = bypassConversion;
|
|
80
|
-
this.asCallHierarchyOutgoingCall = toPromise;
|
|
81
|
-
this.asCallHierarchyOutgoingCalls = bypassConversion;
|
|
82
|
-
this.asLinkedEditingRanges = bypassConversion;
|
|
83
|
-
this.asTypeHierarchyItem = bypassConversion;
|
|
84
|
-
this.asTypeHierarchyItems = bypassConversion;
|
|
85
|
-
this.asGlobPattern = bypassConversion;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
exports.MonacoP2CConverter = MonacoP2CConverter;
|
|
89
|
-
class MonacoC2PConverter {
|
|
90
|
-
constructor(delegate) {
|
|
91
|
-
this.delegate = delegate;
|
|
92
|
-
this.asUri = this.delegate.asUri.bind(this.delegate);
|
|
93
|
-
this.asTextDocumentItem = bypassConversion;
|
|
94
|
-
this.asTextDocumentIdentifier = bypassConversion;
|
|
95
|
-
this.asVersionedTextDocumentIdentifier = bypassConversion;
|
|
96
|
-
this.asOpenTextDocumentParams = this.delegate.asOpenTextDocumentParams.bind(this.delegate);
|
|
97
|
-
this.asChangeTextDocumentParams = this.delegate.asChangeTextDocumentParams.bind(this.delegate);
|
|
98
|
-
this.asCloseTextDocumentParams = this.delegate.asCloseTextDocumentParams.bind(this.delegate);
|
|
99
|
-
this.asSaveTextDocumentParams = this.delegate.asSaveTextDocumentParams.bind(this.delegate);
|
|
100
|
-
this.asWillSaveTextDocumentParams = (event) => {
|
|
101
|
-
return {
|
|
102
|
-
textDocument: this.delegate.asTextDocumentIdentifier(event.document),
|
|
103
|
-
reason: event.reason
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
this.asDidCreateFilesParams = this.delegate.asDidCreateFilesParams.bind(this.delegate);
|
|
107
|
-
this.asDidRenameFilesParams = this.delegate.asDidRenameFilesParams.bind(this.delegate);
|
|
108
|
-
this.asDidDeleteFilesParams = this.delegate.asDidDeleteFilesParams.bind(this.delegate);
|
|
109
|
-
this.asWillCreateFilesParams = this.delegate.asWillCreateFilesParams.bind(this.delegate);
|
|
110
|
-
this.asWillRenameFilesParams = this.delegate.asWillRenameFilesParams.bind(this.delegate);
|
|
111
|
-
this.asWillDeleteFilesParams = this.delegate.asWillDeleteFilesParams.bind(this.delegate);
|
|
112
|
-
this.asTextDocumentPositionParams = this.delegate.asTextDocumentPositionParams.bind(this.delegate);
|
|
113
|
-
this.asCompletionParams = (textDocument, position, context) => {
|
|
114
|
-
return {
|
|
115
|
-
textDocument: this.delegate.asTextDocumentIdentifier(textDocument),
|
|
116
|
-
position,
|
|
117
|
-
context
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
this.asSignatureHelpParams = this.delegate.asSignatureHelpParams.bind(this.delegate);
|
|
121
|
-
this.asWorkerPosition = bypassConversion;
|
|
122
|
-
this.asPosition = bypassConversion;
|
|
123
|
-
this.asPositions = toPromise;
|
|
124
|
-
this.asRange = bypassConversion;
|
|
125
|
-
this.asLocation = bypassConversion;
|
|
126
|
-
this.asDiagnosticSeverity = bypassConversion;
|
|
127
|
-
this.asDiagnosticTag = bypassConversion;
|
|
128
|
-
this.asDiagnostic = bypassConversion;
|
|
129
|
-
this.asDiagnostics = toPromise;
|
|
130
|
-
this.asCompletionItem = bypassConversion;
|
|
131
|
-
this.asSymbolKind = bypassConversion;
|
|
132
|
-
this.asSymbolTag = bypassConversion;
|
|
133
|
-
this.asSymbolTags = bypassConversion;
|
|
134
|
-
this.asTextEdit = bypassConversion;
|
|
135
|
-
this.asReferenceParams = this.delegate.asReferenceParams.bind(this.delegate);
|
|
136
|
-
this.asCodeAction = toPromise;
|
|
137
|
-
this.asCodeActionContext = toPromise;
|
|
138
|
-
this.asInlineValueContext = bypassConversion;
|
|
139
|
-
this.asCommand = bypassConversion;
|
|
140
|
-
this.asCodeLens = bypassConversion;
|
|
141
|
-
this.asFormattingOptions = bypassConversion;
|
|
142
|
-
this.asDocumentSymbolParams = this.delegate.asDocumentSymbolParams.bind(this.delegate);
|
|
143
|
-
this.asCodeLensParams = this.delegate.asCodeLensParams.bind(this.delegate);
|
|
144
|
-
this.asDocumentLink = bypassConversion;
|
|
145
|
-
this.asDocumentLinkParams = this.delegate.asDocumentLinkParams.bind(this.delegate);
|
|
146
|
-
this.asCallHierarchyItem = bypassConversion;
|
|
147
|
-
this.asTypeHierarchyItem = bypassConversion;
|
|
148
|
-
this.asWorkspaceSymbol = bypassConversion;
|
|
149
|
-
this.asInlayHint = bypassConversion;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
exports.MonacoC2PConverter = MonacoC2PConverter;
|
|
153
|
-
});
|
|
154
|
-
//# sourceMappingURL=converters.js.map
|