@codingame/monaco-languageclient-wrapper 2.0.2 → 2.1.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/index.d.ts +839 -6761
- package/dist/index.js +9706 -10128
- package/package.json +18 -15
- package/stats.html +1 -1
- package/dist/createLanguageClient.d.ts +0 -4
- package/dist/customRequests.d.ts +0 -5
- package/dist/extensionConfiguration.d.ts +0 -7
- package/dist/extensions.d.ts +0 -14
- package/dist/hacks.d.ts +0 -1
- package/dist/languageClient.d.ts +0 -58
- package/dist/languageClientOptions.d.ts +0 -9
- package/dist/main.js +0 -21393
- package/dist/monaco-languageclient-wrapper.d.ts +0 -1478
- package/dist/services/CodinGameMonacoWorkspace.d.ts +0 -13
- package/dist/services/Configuration.d.ts +0 -14
- package/dist/services/WatchableConsoleWindow.d.ts +0 -24
- package/dist/services.d.ts +0 -4
- package/dist/staticOptions.d.ts +0 -5
- package/dist/tsdoc-metadata.json +0 -11
|
@@ -1,1478 +0,0 @@
|
|
|
1
|
-
import { CallHierarchyIncomingCall } from 'vscode';
|
|
2
|
-
import { CallHierarchyItem } from 'vscode';
|
|
3
|
-
import { CallHierarchyOutgoingCall } from 'vscode';
|
|
4
|
-
import { CallHierarchyPrepareRequest } from 'vscode-languageserver-protocol';
|
|
5
|
-
import { CallHierarchyProvider } from 'vscode';
|
|
6
|
-
import { CancellationStrategy } from 'vscode-languageserver-protocol';
|
|
7
|
-
import { CancellationToken } from 'vscode';
|
|
8
|
-
import { CancellationToken as CancellationToken_2 } from 'vscode-languageserver-protocol';
|
|
9
|
-
import { CancellationToken as CancellationToken_3 } from 'vscode-jsonrpc';
|
|
10
|
-
import { ClientCapabilities } from 'vscode-languageserver-protocol';
|
|
11
|
-
import * as code from 'vscode';
|
|
12
|
-
import { CodeAction } from 'vscode';
|
|
13
|
-
import { CodeActionContext } from 'vscode';
|
|
14
|
-
import { CodeActionProvider } from 'vscode';
|
|
15
|
-
import { CodeActionRequest } from 'vscode-languageserver-protocol';
|
|
16
|
-
import { CodeLens } from 'vscode';
|
|
17
|
-
import { Color } from 'vscode';
|
|
18
|
-
import { ColorInformation } from 'vscode';
|
|
19
|
-
import { ColorPresentation } from 'vscode';
|
|
20
|
-
import { Command } from 'vscode';
|
|
21
|
-
import { CompletionContext } from 'vscode';
|
|
22
|
-
import { CompletionItem } from 'vscode';
|
|
23
|
-
import { CompletionItemProvider } from 'vscode';
|
|
24
|
-
import { CompletionList } from 'vscode';
|
|
25
|
-
import { CompletionRequest } from 'vscode-languageserver-protocol';
|
|
26
|
-
import { ConfigurationRequest } from 'vscode-languageserver-protocol';
|
|
27
|
-
import { CreateFilesParams } from 'vscode-languageserver-protocol/lib/common/protocol.fileOperations';
|
|
28
|
-
import { Declaration } from 'vscode';
|
|
29
|
-
import { DeclarationProvider } from 'vscode';
|
|
30
|
-
import { DeclarationRequest } from 'vscode-languageserver-protocol';
|
|
31
|
-
import { Definition } from 'vscode';
|
|
32
|
-
import { DefinitionLink } from 'vscode';
|
|
33
|
-
import { DefinitionProvider } from 'vscode';
|
|
34
|
-
import { DefinitionRequest } from 'vscode-languageserver-protocol';
|
|
35
|
-
import { DeleteFilesParams } from 'vscode-languageserver-protocol/lib/common/protocol.fileOperations';
|
|
36
|
-
import { Diagnostic } from 'vscode';
|
|
37
|
-
import { DiagnosticCollection } from 'vscode';
|
|
38
|
-
import { DidChangeConfigurationParams } from 'vscode-languageserver-protocol';
|
|
39
|
-
import { DidChangeTextDocumentNotification } from 'vscode-languageserver-protocol';
|
|
40
|
-
import { DidChangeTextDocumentParams } from 'vscode-languageserver-protocol';
|
|
41
|
-
import { DidChangeWatchedFilesParams } from 'vscode-languageserver-protocol';
|
|
42
|
-
import { DidCloseTextDocumentNotification } from 'vscode-languageserver-protocol';
|
|
43
|
-
import { DidCloseTextDocumentParams } from 'vscode-languageserver-protocol';
|
|
44
|
-
import { DidCreateFilesNotification } from 'vscode-languageserver-protocol';
|
|
45
|
-
import { DidDeleteFilesNotification } from 'vscode-languageserver-protocol';
|
|
46
|
-
import { DidOpenTextDocumentNotification } from 'vscode-languageserver-protocol';
|
|
47
|
-
import { DidOpenTextDocumentParams } from 'vscode-languageserver-protocol';
|
|
48
|
-
import { DidRenameFilesNotification } from 'vscode-languageserver-protocol';
|
|
49
|
-
import { DidSaveTextDocumentNotification } from 'vscode-languageserver-protocol';
|
|
50
|
-
import { DidSaveTextDocumentParams } from 'vscode-languageserver-protocol';
|
|
51
|
-
import { Disposable } from 'vscode';
|
|
52
|
-
import { Disposable as Disposable_2 } from 'vscode-jsonrpc';
|
|
53
|
-
import { DocumentColorProvider } from 'vscode';
|
|
54
|
-
import { DocumentColorRequest } from 'vscode-languageserver-protocol';
|
|
55
|
-
import { DocumentFormattingEditProvider } from 'vscode';
|
|
56
|
-
import { DocumentFormattingRequest } from 'vscode-languageserver-protocol';
|
|
57
|
-
import { DocumentHighlight } from 'vscode';
|
|
58
|
-
import { DocumentHighlightProvider } from 'vscode';
|
|
59
|
-
import { DocumentHighlightRequest } from 'vscode-languageserver-protocol';
|
|
60
|
-
import { DocumentLink } from 'vscode';
|
|
61
|
-
import { DocumentLinkProvider } from 'vscode';
|
|
62
|
-
import { DocumentLinkRequest } from 'vscode-languageserver-protocol';
|
|
63
|
-
import { DocumentOnTypeFormattingRequest } from 'vscode-languageserver-protocol';
|
|
64
|
-
import { DocumentRangeFormattingEditProvider } from 'vscode';
|
|
65
|
-
import { DocumentRangeFormattingRequest } from 'vscode-languageserver-protocol';
|
|
66
|
-
import { DocumentSelector } from 'vscode-languageserver-protocol';
|
|
67
|
-
import { DocumentSymbol } from 'vscode';
|
|
68
|
-
import { DocumentSymbolProvider } from 'vscode';
|
|
69
|
-
import { DocumentSymbolRequest } from 'vscode-languageserver-protocol';
|
|
70
|
-
import { Emitter } from 'vscode-jsonrpc';
|
|
71
|
-
import { Event as Event_2 } from 'vscode-languageserver-protocol';
|
|
72
|
-
import { Event as Event_3 } from 'vscode-jsonrpc';
|
|
73
|
-
import { FileCreateEvent } from 'vscode';
|
|
74
|
-
import { FileDeleteEvent } from 'vscode';
|
|
75
|
-
import { FileEvent } from 'vscode-languageserver-protocol';
|
|
76
|
-
import { FileOperationRegistrationOptions } from 'vscode-languageserver-protocol';
|
|
77
|
-
import { FileRenameEvent } from 'vscode';
|
|
78
|
-
import { FileSystemWatcher } from 'vscode';
|
|
79
|
-
import { FileWillCreateEvent } from 'vscode';
|
|
80
|
-
import { FileWillDeleteEvent } from 'vscode';
|
|
81
|
-
import { FileWillRenameEvent } from 'vscode';
|
|
82
|
-
import { FoldingContext } from 'vscode';
|
|
83
|
-
import { FoldingRange } from 'vscode';
|
|
84
|
-
import { FoldingRangeProvider } from 'vscode';
|
|
85
|
-
import { FoldingRangeRequest } from 'vscode-languageserver-protocol';
|
|
86
|
-
import { FormattingOptions } from 'vscode';
|
|
87
|
-
import { GenericNotificationHandler } from 'vscode-languageserver-protocol';
|
|
88
|
-
import { GenericNotificationHandler as GenericNotificationHandler_2 } from 'vscode-jsonrpc';
|
|
89
|
-
import { GenericRequestHandler } from 'vscode-languageserver-protocol';
|
|
90
|
-
import { GenericRequestHandler as GenericRequestHandler_2 } from 'vscode-jsonrpc';
|
|
91
|
-
import { Hover } from 'vscode';
|
|
92
|
-
import { HoverProvider } from 'vscode';
|
|
93
|
-
import { HoverRequest } from 'vscode-languageserver-protocol';
|
|
94
|
-
import { ImplementationProvider } from 'vscode';
|
|
95
|
-
import { ImplementationRequest } from 'vscode-languageserver-protocol';
|
|
96
|
-
import { InitializeError } from 'vscode-languageserver-protocol';
|
|
97
|
-
import { InitializeParams } from 'vscode-languageserver-protocol';
|
|
98
|
-
import { InitializeResult } from 'vscode-languageserver-protocol';
|
|
99
|
-
import { LinkedEditingRangeProvider } from 'vscode';
|
|
100
|
-
import { LinkedEditingRangeRequest } from 'vscode-languageserver-protocol';
|
|
101
|
-
import { Location as Location_2 } from 'vscode';
|
|
102
|
-
import { LogMessageParams } from 'vscode-languageserver-protocol';
|
|
103
|
-
import { Message } from 'vscode-languageserver-protocol';
|
|
104
|
-
import { Message as Message_2 } from 'vscode-jsonrpc';
|
|
105
|
-
import { MessageReader } from 'vscode-languageserver-protocol';
|
|
106
|
-
import { MessageSignature } from 'vscode-languageserver-protocol';
|
|
107
|
-
import { MessageSignature as MessageSignature_2 } from 'vscode-jsonrpc';
|
|
108
|
-
import { MessageWriter } from 'vscode-languageserver-protocol';
|
|
109
|
-
import { NotificationHandler } from 'vscode-languageserver-protocol';
|
|
110
|
-
import { NotificationHandler0 } from 'vscode-languageserver-protocol';
|
|
111
|
-
import { NotificationHandler0 as NotificationHandler0_2 } from 'vscode-jsonrpc';
|
|
112
|
-
import { NotificationHandler as NotificationHandler_2 } from 'vscode-jsonrpc';
|
|
113
|
-
import { NotificationType } from 'vscode-languageserver-protocol';
|
|
114
|
-
import { NotificationType0 } from 'vscode-languageserver-protocol';
|
|
115
|
-
import { NotificationType0 as NotificationType0_2 } from 'vscode-jsonrpc';
|
|
116
|
-
import { NotificationType as NotificationType_2 } from 'vscode-jsonrpc';
|
|
117
|
-
import { OnTypeFormattingEditProvider } from 'vscode';
|
|
118
|
-
import { OutputChannel } from 'vscode';
|
|
119
|
-
import { Position } from 'vscode';
|
|
120
|
-
import { ProgressToken } from 'vscode-languageserver-protocol';
|
|
121
|
-
import { ProgressType } from 'vscode-languageserver-protocol';
|
|
122
|
-
import { ProgressType as ProgressType_2 } from 'vscode-jsonrpc';
|
|
123
|
-
import * as proto from 'vscode-languageserver-protocol';
|
|
124
|
-
import { ProtocolNotificationType } from 'vscode-languageserver-protocol';
|
|
125
|
-
import { ProtocolNotificationType0 } from 'vscode-languageserver-protocol';
|
|
126
|
-
import { ProtocolRequestType } from 'vscode-languageserver-protocol';
|
|
127
|
-
import { ProtocolRequestType0 } from 'vscode-languageserver-protocol';
|
|
128
|
-
import { ProviderResult } from 'vscode';
|
|
129
|
-
import { PublishDiagnosticsParams } from 'vscode-languageserver-protocol';
|
|
130
|
-
import { Range as Range_2 } from 'vscode';
|
|
131
|
-
import { ReferenceProvider } from 'vscode';
|
|
132
|
-
import { ReferencesRequest } from 'vscode-languageserver-protocol';
|
|
133
|
-
import { RegistrationType } from 'vscode-languageserver-protocol';
|
|
134
|
-
import { RenameFilesParams } from 'vscode-languageserver-protocol/lib/common/protocol.fileOperations';
|
|
135
|
-
import { RenameProvider } from 'vscode';
|
|
136
|
-
import { RenameRequest } from 'vscode-languageserver-protocol';
|
|
137
|
-
import { RequestHandler } from 'vscode-languageserver-protocol';
|
|
138
|
-
import { RequestHandler0 } from 'vscode-languageserver-protocol';
|
|
139
|
-
import { RequestHandler0 as RequestHandler0_2 } from 'vscode-jsonrpc';
|
|
140
|
-
import { RequestHandler as RequestHandler_2 } from 'vscode-jsonrpc';
|
|
141
|
-
import { RequestType } from 'vscode-languageserver-protocol';
|
|
142
|
-
import { RequestType0 } from 'vscode-languageserver-protocol';
|
|
143
|
-
import { RequestType0 as RequestType0_2 } from 'vscode-jsonrpc';
|
|
144
|
-
import { RequestType as RequestType_2 } from 'vscode-jsonrpc';
|
|
145
|
-
import { ResponseError } from 'vscode-languageserver-protocol';
|
|
146
|
-
import { SelectionRange } from 'vscode';
|
|
147
|
-
import { SelectionRangeProvider } from 'vscode';
|
|
148
|
-
import { SelectionRangeRequest } from 'vscode-languageserver-protocol';
|
|
149
|
-
import { SemanticTokensRegistrationType } from 'vscode-languageserver-protocol';
|
|
150
|
-
import { ServerCapabilities } from 'vscode-languageserver-protocol';
|
|
151
|
-
import { ShowDocumentParams } from 'vscode-languageserver-protocol';
|
|
152
|
-
import { ShowDocumentRequest } from 'vscode-languageserver-protocol';
|
|
153
|
-
import { ShowDocumentResult } from 'vscode-languageserver-protocol';
|
|
154
|
-
import { ShowMessageParams } from 'vscode-languageserver-protocol';
|
|
155
|
-
import { SignatureHelp } from 'vscode';
|
|
156
|
-
import { SignatureHelpContext } from 'vscode';
|
|
157
|
-
import { SignatureHelpProvider } from 'vscode';
|
|
158
|
-
import { SignatureHelpRequest } from 'vscode-languageserver-protocol';
|
|
159
|
-
import { SymbolInformation } from 'vscode';
|
|
160
|
-
import { TextDocument } from 'vscode';
|
|
161
|
-
import { TextDocumentChangeEvent } from 'vscode';
|
|
162
|
-
import { TextDocumentRegistrationOptions } from 'vscode-languageserver-protocol';
|
|
163
|
-
import { TextDocumentWillSaveEvent } from 'vscode';
|
|
164
|
-
import { TextEdit } from 'vscode';
|
|
165
|
-
import { Trace } from 'vscode-languageserver-protocol';
|
|
166
|
-
import { Trace as Trace_2 } from 'vscode-jsonrpc';
|
|
167
|
-
import { Tracer } from 'vscode-jsonrpc';
|
|
168
|
-
import { TypeDefinitionProvider } from 'vscode';
|
|
169
|
-
import { TypeDefinitionRequest } from 'vscode-languageserver-protocol';
|
|
170
|
-
import { Uri } from 'vscode';
|
|
171
|
-
import { WillCreateFilesRequest } from 'vscode-languageserver-protocol';
|
|
172
|
-
import { WillDeleteFilesRequest } from 'vscode-languageserver-protocol';
|
|
173
|
-
import { WillRenameFilesRequest } from 'vscode-languageserver-protocol';
|
|
174
|
-
import { WillSaveTextDocumentNotification } from 'vscode-languageserver-protocol';
|
|
175
|
-
import { WillSaveTextDocumentWaitUntilRequest } from 'vscode-languageserver-protocol';
|
|
176
|
-
import { WorkDoneProgressBegin } from 'vscode-languageserver-protocol';
|
|
177
|
-
import { WorkDoneProgressEnd } from 'vscode-languageserver-protocol';
|
|
178
|
-
import { WorkDoneProgressReport } from 'vscode-languageserver-protocol';
|
|
179
|
-
import { WorkspaceEdit } from 'vscode';
|
|
180
|
-
import { WorkspaceFolder } from 'vscode';
|
|
181
|
-
import { WorkspaceFoldersChangeEvent } from 'vscode';
|
|
182
|
-
import { WorkspaceFoldersRequest } from 'vscode-languageserver-protocol';
|
|
183
|
-
import { WorkspaceSymbolProvider } from 'vscode';
|
|
184
|
-
import { WorkspaceSymbolRequest } from 'vscode-languageserver-protocol';
|
|
185
|
-
|
|
186
|
-
declare abstract class BaseLanguageClient {
|
|
187
|
-
private _id;
|
|
188
|
-
private _name;
|
|
189
|
-
private _clientOptions;
|
|
190
|
-
private _state;
|
|
191
|
-
private _onReady;
|
|
192
|
-
private _onReadyCallbacks;
|
|
193
|
-
private _onStop;
|
|
194
|
-
private _connectionPromise;
|
|
195
|
-
private _resolvedConnection;
|
|
196
|
-
private _initializeResult;
|
|
197
|
-
private _outputChannel;
|
|
198
|
-
private _disposeOutputChannel;
|
|
199
|
-
private _traceOutputChannel;
|
|
200
|
-
private _capabilities;
|
|
201
|
-
private _listeners;
|
|
202
|
-
private _providers;
|
|
203
|
-
private _diagnostics;
|
|
204
|
-
private _syncedDocuments;
|
|
205
|
-
private _fileEvents;
|
|
206
|
-
private _fileEventDelayer;
|
|
207
|
-
private _telemetryEmitter;
|
|
208
|
-
private _stateChangeEmitter;
|
|
209
|
-
private _trace;
|
|
210
|
-
private _traceFormat;
|
|
211
|
-
private _tracer;
|
|
212
|
-
private _c2p;
|
|
213
|
-
private _p2c;
|
|
214
|
-
constructor(id: string, name: string, clientOptions: LanguageClientOptions);
|
|
215
|
-
private get state();
|
|
216
|
-
private set state(value);
|
|
217
|
-
private getPublicState;
|
|
218
|
-
get initializeResult(): InitializeResult | undefined;
|
|
219
|
-
sendRequest<R, PR, E, RO>(type: ProtocolRequestType0<R, PR, E, RO>, token?: CancellationToken): Promise<R>;
|
|
220
|
-
sendRequest<P, R, PR, E, RO>(type: ProtocolRequestType<P, R, PR, E, RO>, params: P, token?: CancellationToken): Promise<R>;
|
|
221
|
-
sendRequest<R, E>(type: RequestType0<R, E>, token?: CancellationToken): Promise<R>;
|
|
222
|
-
sendRequest<P, R, E>(type: RequestType<P, R, E>, params: P, token?: CancellationToken): Promise<R>;
|
|
223
|
-
sendRequest<R>(method: string, token?: CancellationToken): Promise<R>;
|
|
224
|
-
sendRequest<R>(method: string, param: any, token?: CancellationToken): Promise<R>;
|
|
225
|
-
onRequest<R, PR, E, RO>(type: ProtocolRequestType0<R, PR, E, RO>, handler: RequestHandler0<R, E>): Disposable;
|
|
226
|
-
onRequest<P, R, PR, E, RO>(type: ProtocolRequestType<P, R, PR, E, RO>, handler: RequestHandler<P, R, E>): Disposable;
|
|
227
|
-
onRequest<R, E>(type: RequestType0<R, E>, handler: RequestHandler0<R, E>): Disposable;
|
|
228
|
-
onRequest<P, R, E>(type: RequestType<P, R, E>, handler: RequestHandler<P, R, E>): Disposable;
|
|
229
|
-
onRequest<R, E>(method: string, handler: GenericRequestHandler<R, E>): Disposable;
|
|
230
|
-
sendNotification<RO>(type: ProtocolNotificationType0<RO>): void;
|
|
231
|
-
sendNotification<P, RO>(type: ProtocolNotificationType<P, RO>, params?: P): void;
|
|
232
|
-
sendNotification(type: NotificationType0): void;
|
|
233
|
-
sendNotification<P>(type: NotificationType<P>, params?: P): void;
|
|
234
|
-
sendNotification(method: string): void;
|
|
235
|
-
sendNotification(method: string, params: any): void;
|
|
236
|
-
onNotification<RO>(type: ProtocolNotificationType0<RO>, handler: NotificationHandler0): Disposable;
|
|
237
|
-
onNotification<P, RO>(type: ProtocolNotificationType<P, RO>, handler: NotificationHandler<P>): Disposable;
|
|
238
|
-
onNotification(type: NotificationType0, handler: NotificationHandler0): Disposable;
|
|
239
|
-
onNotification<P>(type: NotificationType<P>, handler: NotificationHandler<P>): Disposable;
|
|
240
|
-
onNotification(method: string, handler: GenericNotificationHandler): Disposable;
|
|
241
|
-
onProgress<P>(type: ProgressType<P>, token: string | number, handler: NotificationHandler<P>): Disposable;
|
|
242
|
-
sendProgress<P>(type: ProgressType<P>, token: string | number, value: P): void;
|
|
243
|
-
get clientOptions(): LanguageClientOptions;
|
|
244
|
-
get protocol2CodeConverter(): p2c.Converter;
|
|
245
|
-
get code2ProtocolConverter(): c2p.Converter;
|
|
246
|
-
get onTelemetry(): Event_2<any>;
|
|
247
|
-
get onDidChangeState(): Event_2<StateChangeEvent>;
|
|
248
|
-
get outputChannel(): OutputChannel;
|
|
249
|
-
get traceOutputChannel(): OutputChannel;
|
|
250
|
-
get diagnostics(): DiagnosticCollection | undefined;
|
|
251
|
-
createDefaultErrorHandler(maxRestartCount?: number): ErrorHandler;
|
|
252
|
-
set trace(value: Trace);
|
|
253
|
-
private data2String;
|
|
254
|
-
info(message: string, data?: any, showNotification?: boolean): void;
|
|
255
|
-
warn(message: string, data?: any, showNotification?: boolean): void;
|
|
256
|
-
error(message: string, data?: any, showNotification?: boolean): void;
|
|
257
|
-
private showNotificationMessage;
|
|
258
|
-
private logTrace;
|
|
259
|
-
private logObjectTrace;
|
|
260
|
-
needsStart(): boolean;
|
|
261
|
-
needsStop(): boolean;
|
|
262
|
-
onReady(): Promise<void>;
|
|
263
|
-
private isConnectionActive;
|
|
264
|
-
start(): Disposable;
|
|
265
|
-
private resolveConnection;
|
|
266
|
-
private initialize;
|
|
267
|
-
private doInitialize;
|
|
268
|
-
private _clientGetRootPath;
|
|
269
|
-
stop(): Promise<void>;
|
|
270
|
-
private cleanUp;
|
|
271
|
-
private cleanUpChannel;
|
|
272
|
-
private notifyFileEvent;
|
|
273
|
-
private _didChangeTextDocumentFeature;
|
|
274
|
-
private forceDocumentSync;
|
|
275
|
-
private handleDiagnostics;
|
|
276
|
-
private setDiagnostics;
|
|
277
|
-
protected abstract getLocale(): string;
|
|
278
|
-
protected abstract createMessageTransports(encoding: string): Promise<MessageTransports>;
|
|
279
|
-
private createConnection;
|
|
280
|
-
protected handleConnectionClosed(): void;
|
|
281
|
-
private handleConnectionError;
|
|
282
|
-
private hookConfigurationChanged;
|
|
283
|
-
private refreshTrace;
|
|
284
|
-
private hookFileEvents;
|
|
285
|
-
private readonly _features;
|
|
286
|
-
private readonly _dynamicFeatures;
|
|
287
|
-
registerFeatures(features: (StaticFeature | DynamicFeature<any>)[]): void;
|
|
288
|
-
registerFeature(feature: StaticFeature | DynamicFeature<any>): void;
|
|
289
|
-
getFeature(request: typeof DidOpenTextDocumentNotification.method): DynamicFeature<TextDocumentRegistrationOptions> & NotificationFeature<(textDocument: TextDocument) => void>;
|
|
290
|
-
getFeature(request: typeof DidChangeTextDocumentNotification.method): DynamicFeature<TextDocumentRegistrationOptions> & NotificationFeature<(textDocument: TextDocument) => void>;
|
|
291
|
-
getFeature(request: typeof WillSaveTextDocumentNotification.method): DynamicFeature<TextDocumentRegistrationOptions> & NotificationFeature<(textDocument: TextDocument) => void>;
|
|
292
|
-
getFeature(request: typeof WillSaveTextDocumentWaitUntilRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & NotificationFeature<(textDocument: TextDocument) => ProviderResult<TextEdit[]>>;
|
|
293
|
-
getFeature(request: typeof DidSaveTextDocumentNotification.method): DynamicFeature<TextDocumentRegistrationOptions> & NotificationFeature<(textDocument: TextDocument) => void>;
|
|
294
|
-
getFeature(request: typeof DidCloseTextDocumentNotification.method): DynamicFeature<TextDocumentRegistrationOptions> & NotificationFeature<(textDocument: TextDocument) => void>;
|
|
295
|
-
getFeature(request: typeof DidCreateFilesNotification.method): DynamicFeature<FileOperationRegistrationOptions> & {
|
|
296
|
-
send: (event: FileCreateEvent) => Promise<void>;
|
|
297
|
-
};
|
|
298
|
-
getFeature(request: typeof DidRenameFilesNotification.method): DynamicFeature<FileOperationRegistrationOptions> & {
|
|
299
|
-
send: (event: FileRenameEvent) => Promise<void>;
|
|
300
|
-
};
|
|
301
|
-
getFeature(request: typeof DidDeleteFilesNotification.method): DynamicFeature<FileOperationRegistrationOptions> & {
|
|
302
|
-
send: (event: FileDeleteEvent) => Promise<void>;
|
|
303
|
-
};
|
|
304
|
-
getFeature(request: typeof WillCreateFilesRequest.method): DynamicFeature<FileOperationRegistrationOptions> & {
|
|
305
|
-
send: (event: FileWillCreateEvent) => Promise<void>;
|
|
306
|
-
};
|
|
307
|
-
getFeature(request: typeof WillRenameFilesRequest.method): DynamicFeature<FileOperationRegistrationOptions> & {
|
|
308
|
-
send: (event: FileWillRenameEvent) => Promise<void>;
|
|
309
|
-
};
|
|
310
|
-
getFeature(request: typeof WillDeleteFilesRequest.method): DynamicFeature<FileOperationRegistrationOptions> & {
|
|
311
|
-
send: (event: FileWillDeleteEvent) => Promise<void>;
|
|
312
|
-
};
|
|
313
|
-
getFeature(request: typeof CompletionRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<CompletionItemProvider>;
|
|
314
|
-
getFeature(request: typeof HoverRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<HoverProvider>;
|
|
315
|
-
getFeature(request: typeof SignatureHelpRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<SignatureHelpProvider>;
|
|
316
|
-
getFeature(request: typeof DefinitionRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<DefinitionProvider>;
|
|
317
|
-
getFeature(request: typeof ReferencesRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<ReferenceProvider>;
|
|
318
|
-
getFeature(request: typeof DocumentHighlightRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<DocumentHighlightProvider>;
|
|
319
|
-
getFeature(request: typeof CodeActionRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<CodeActionProvider>;
|
|
320
|
-
getFeature(request: typeof DocumentFormattingRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<DocumentFormattingEditProvider>;
|
|
321
|
-
getFeature(request: typeof DocumentRangeFormattingRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<DocumentRangeFormattingEditProvider>;
|
|
322
|
-
getFeature(request: typeof DocumentOnTypeFormattingRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<OnTypeFormattingEditProvider>;
|
|
323
|
-
getFeature(request: typeof RenameRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<RenameProvider>;
|
|
324
|
-
getFeature(request: typeof DocumentSymbolRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<DocumentSymbolProvider>;
|
|
325
|
-
getFeature(request: typeof DocumentLinkRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<DocumentLinkProvider>;
|
|
326
|
-
getFeature(request: typeof DocumentColorRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<DocumentColorProvider>;
|
|
327
|
-
getFeature(request: typeof DeclarationRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<DeclarationProvider>;
|
|
328
|
-
getFeature(request: typeof FoldingRangeRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<FoldingRangeProvider>;
|
|
329
|
-
getFeature(request: typeof ImplementationRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<ImplementationProvider>;
|
|
330
|
-
getFeature(request: typeof SelectionRangeRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<SelectionRangeProvider>;
|
|
331
|
-
getFeature(request: typeof TypeDefinitionRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<TypeDefinitionProvider>;
|
|
332
|
-
getFeature(request: typeof CallHierarchyPrepareRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<CallHierarchyProvider>;
|
|
333
|
-
getFeature(request: typeof SemanticTokensRegistrationType.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<SemanticTokensProviders>;
|
|
334
|
-
getFeature(request: typeof LinkedEditingRangeRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & TextDocumentProviderFeature<LinkedEditingRangeProvider>;
|
|
335
|
-
getFeature(request: typeof WorkspaceSymbolRequest.method): DynamicFeature<TextDocumentRegistrationOptions> & WorkspaceProviderFeature<WorkspaceSymbolProvider>;
|
|
336
|
-
protected registerBuiltinFeatures(): void;
|
|
337
|
-
protected fillInitializeParams(params: InitializeParams): void;
|
|
338
|
-
private computeClientCapabilities;
|
|
339
|
-
private initializeFeatures;
|
|
340
|
-
private handleRegistrationRequest;
|
|
341
|
-
private handleUnregistrationRequest;
|
|
342
|
-
private handleApplyWorkspaceEdit;
|
|
343
|
-
handleFailedRequest<T>(type: MessageSignature, error: any, defaultValue: T): T;
|
|
344
|
-
private static Canceled;
|
|
345
|
-
private makeCancelError;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
declare namespace c2p {
|
|
349
|
-
export {
|
|
350
|
-
createConverter,
|
|
351
|
-
FileFormattingOptions,
|
|
352
|
-
Converter,
|
|
353
|
-
URIConverter
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
declare interface CallHierarchyIncomingCallsSignature {
|
|
358
|
-
(this: void, item: CallHierarchyItem, token: CancellationToken): ProviderResult<CallHierarchyIncomingCall[]>;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* Call hierarchy middleware
|
|
363
|
-
*
|
|
364
|
-
* @since 3.16.0
|
|
365
|
-
*/
|
|
366
|
-
declare interface CallHierarchyMiddleware {
|
|
367
|
-
prepareCallHierarchy?: (this: void, document: TextDocument, positions: Position, token: CancellationToken, next: PrepareCallHierarchySignature) => ProviderResult<CallHierarchyItem | CallHierarchyItem[]>;
|
|
368
|
-
provideCallHierarchyIncomingCalls?: (this: void, item: CallHierarchyItem, token: CancellationToken, next: CallHierarchyIncomingCallsSignature) => ProviderResult<CallHierarchyIncomingCall[]>;
|
|
369
|
-
provideCallHierarchyOutgoingCalls?: (this: void, item: CallHierarchyItem, token: CancellationToken, next: CallHierarchyOutgoingCallsSignature) => ProviderResult<CallHierarchyOutgoingCall[]>;
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
declare interface CallHierarchyOutgoingCallsSignature {
|
|
373
|
-
(this: void, item: CallHierarchyItem, token: CancellationToken): ProviderResult<CallHierarchyOutgoingCall[]>;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
/**
|
|
377
|
-
* An action to be performed when the connection to a server got closed.
|
|
378
|
-
*/
|
|
379
|
-
declare enum CloseAction {
|
|
380
|
-
/**
|
|
381
|
-
* Don't restart the server. The connection stays closed.
|
|
382
|
-
*/
|
|
383
|
-
DoNotRestart = 1,
|
|
384
|
-
/**
|
|
385
|
-
* Restart the server.
|
|
386
|
-
*/
|
|
387
|
-
Restart = 2
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
declare interface ColorProviderMiddleware {
|
|
391
|
-
provideDocumentColors?: (this: void, document: TextDocument, token: CancellationToken_2, next: ProvideDocumentColorsSignature) => ProviderResult<ColorInformation[]>;
|
|
392
|
-
provideColorPresentations?: (this: void, color: Color, context: {
|
|
393
|
-
document: TextDocument;
|
|
394
|
-
range: Range_2;
|
|
395
|
-
}, token: CancellationToken_2, next: ProvideColorPresentationSignature) => ProviderResult<ColorPresentation[]>;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
declare interface ConfigurationWorkspaceMiddleware {
|
|
399
|
-
configuration?: ConfigurationRequest.MiddlewareSignature;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
declare interface ConnectionCloseHandler {
|
|
403
|
-
(): void;
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
declare interface ConnectionErrorHandler {
|
|
407
|
-
(error: Error, message: Message_2 | undefined, count: number | undefined): void;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
declare interface ConnectionOptions {
|
|
411
|
-
cancellationStrategy: CancellationStrategy;
|
|
412
|
-
maxRestartCount?: number;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
declare interface Converter {
|
|
416
|
-
asUri(uri: code.Uri): string;
|
|
417
|
-
asTextDocumentIdentifier(textDocument: code.TextDocument): proto.TextDocumentIdentifier;
|
|
418
|
-
asVersionedTextDocumentIdentifier(textDocument: code.TextDocument): proto.VersionedTextDocumentIdentifier;
|
|
419
|
-
asOpenTextDocumentParams(textDocument: code.TextDocument): proto.DidOpenTextDocumentParams;
|
|
420
|
-
asChangeTextDocumentParams(textDocument: code.TextDocument): proto.DidChangeTextDocumentParams;
|
|
421
|
-
asChangeTextDocumentParams(event: code.TextDocumentChangeEvent): proto.DidChangeTextDocumentParams;
|
|
422
|
-
asCloseTextDocumentParams(textDocument: code.TextDocument): proto.DidCloseTextDocumentParams;
|
|
423
|
-
asSaveTextDocumentParams(textDocument: code.TextDocument, includeContent?: boolean): proto.DidSaveTextDocumentParams;
|
|
424
|
-
asWillSaveTextDocumentParams(event: code.TextDocumentWillSaveEvent): proto.WillSaveTextDocumentParams;
|
|
425
|
-
asDidCreateFilesParams(event: code.FileCreateEvent): CreateFilesParams;
|
|
426
|
-
asDidRenameFilesParams(event: code.FileRenameEvent): RenameFilesParams;
|
|
427
|
-
asDidDeleteFilesParams(event: code.FileDeleteEvent): DeleteFilesParams;
|
|
428
|
-
asWillCreateFilesParams(event: code.FileCreateEvent): CreateFilesParams;
|
|
429
|
-
asWillRenameFilesParams(event: code.FileRenameEvent): RenameFilesParams;
|
|
430
|
-
asWillDeleteFilesParams(event: code.FileDeleteEvent): DeleteFilesParams;
|
|
431
|
-
asTextDocumentPositionParams(textDocument: code.TextDocument, position: code.Position): proto.TextDocumentPositionParams;
|
|
432
|
-
asCompletionParams(textDocument: code.TextDocument, position: code.Position, context: code.CompletionContext): proto.CompletionParams;
|
|
433
|
-
asSignatureHelpParams(textDocument: code.TextDocument, position: code.Position, context: code.SignatureHelpContext): proto.SignatureHelpParams;
|
|
434
|
-
asWorkerPosition(position: code.Position): proto.Position;
|
|
435
|
-
asPosition(value: code.Position): proto.Position;
|
|
436
|
-
asPosition(value: undefined): undefined;
|
|
437
|
-
asPosition(value: null): null;
|
|
438
|
-
asPosition(value: code.Position | undefined | null): proto.Position | undefined | null;
|
|
439
|
-
asPositions(value: code.Position[]): proto.Position[];
|
|
440
|
-
asRange(value: code.Range): proto.Range;
|
|
441
|
-
asRange(value: undefined): undefined;
|
|
442
|
-
asRange(value: null): null;
|
|
443
|
-
asRange(value: code.Range | undefined | null): proto.Range | undefined | null;
|
|
444
|
-
asLocation(value: code.Location): proto.Location;
|
|
445
|
-
asLocation(value: undefined): undefined;
|
|
446
|
-
asLocation(value: null): null;
|
|
447
|
-
asLocation(value: code.Location | undefined | null): proto.Location | undefined | null;
|
|
448
|
-
asDiagnosticSeverity(value: code.DiagnosticSeverity): number;
|
|
449
|
-
asDiagnosticTag(value: code.DiagnosticTag): number | undefined;
|
|
450
|
-
asDiagnostic(item: code.Diagnostic): proto.Diagnostic;
|
|
451
|
-
asDiagnostics(items: code.Diagnostic[]): proto.Diagnostic[];
|
|
452
|
-
asCompletionItem(item: code.CompletionItem): proto.CompletionItem;
|
|
453
|
-
asSymbolKind(item: code.SymbolKind): proto.SymbolKind;
|
|
454
|
-
asSymbolTag(item: code.SymbolTag): proto.SymbolTag;
|
|
455
|
-
asSymbolTags(items: ReadonlyArray<code.SymbolTag>): proto.SymbolTag[];
|
|
456
|
-
asTextEdit(edit: code.TextEdit): proto.TextEdit;
|
|
457
|
-
asReferenceParams(textDocument: code.TextDocument, position: code.Position, options: {
|
|
458
|
-
includeDeclaration: boolean;
|
|
459
|
-
}): proto.ReferenceParams;
|
|
460
|
-
asCodeAction(item: code.CodeAction): proto.CodeAction;
|
|
461
|
-
asCodeActionContext(context: code.CodeActionContext): proto.CodeActionContext;
|
|
462
|
-
asCommand(item: code.Command): proto.Command;
|
|
463
|
-
asCodeLens(item: code.CodeLens): proto.CodeLens;
|
|
464
|
-
asFormattingOptions(options: code.FormattingOptions, fileOptions: FileFormattingOptions): proto.FormattingOptions;
|
|
465
|
-
asDocumentSymbolParams(textDocument: code.TextDocument): proto.DocumentSymbolParams;
|
|
466
|
-
asCodeLensParams(textDocument: code.TextDocument): proto.CodeLensParams;
|
|
467
|
-
asDocumentLink(item: code.DocumentLink): proto.DocumentLink;
|
|
468
|
-
asDocumentLinkParams(textDocument: code.TextDocument): proto.DocumentLinkParams;
|
|
469
|
-
asCallHierarchyItem(value: code.CallHierarchyItem): proto.CallHierarchyItem;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
declare interface Converter_2 {
|
|
473
|
-
asUri(value: string): code.Uri;
|
|
474
|
-
asDiagnostic(diagnostic: proto.Diagnostic): code.Diagnostic;
|
|
475
|
-
asDiagnostics(diagnostics: proto.Diagnostic[]): code.Diagnostic[];
|
|
476
|
-
asPosition(value: undefined | null): undefined;
|
|
477
|
-
asPosition(value: proto.Position): code.Position;
|
|
478
|
-
asPosition(value: proto.Position | undefined | null): code.Position | undefined;
|
|
479
|
-
asRange(value: undefined | null): undefined;
|
|
480
|
-
asRange(value: proto.Range): code.Range;
|
|
481
|
-
asRange(value: proto.Range | undefined | null): code.Range | undefined;
|
|
482
|
-
asRanges(values: proto.Range[]): code.Range[];
|
|
483
|
-
asDiagnosticSeverity(value: number | undefined | null): code.DiagnosticSeverity;
|
|
484
|
-
asDiagnosticTag(tag: proto.DiagnosticTag): code.DiagnosticTag | undefined;
|
|
485
|
-
asHover(hover: proto.Hover): code.Hover;
|
|
486
|
-
asHover(hover: undefined | null): undefined;
|
|
487
|
-
asHover(hover: proto.Hover | undefined | null): code.Hover | undefined;
|
|
488
|
-
asCompletionResult(result: proto.CompletionList): code.CompletionList;
|
|
489
|
-
asCompletionResult(result: proto.CompletionItem[]): code.CompletionItem[];
|
|
490
|
-
asCompletionResult(result: undefined | null): undefined;
|
|
491
|
-
asCompletionResult(result: proto.CompletionItem[] | proto.CompletionList | undefined | null): code.CompletionItem[] | code.CompletionList | undefined;
|
|
492
|
-
asCompletionItem(item: proto.CompletionItem): ProtocolCompletionItem;
|
|
493
|
-
asTextEdit(edit: undefined | null): undefined;
|
|
494
|
-
asTextEdit(edit: proto.TextEdit): code.TextEdit;
|
|
495
|
-
asTextEdit(edit: proto.TextEdit | undefined | null): code.TextEdit | undefined;
|
|
496
|
-
asTextEdits(items: proto.TextEdit[]): code.TextEdit[];
|
|
497
|
-
asTextEdits(items: undefined | null): undefined;
|
|
498
|
-
asTextEdits(items: proto.TextEdit[] | undefined | null): code.TextEdit[] | undefined;
|
|
499
|
-
asSignatureHelp(item: undefined | null): undefined;
|
|
500
|
-
asSignatureHelp(item: proto.SignatureHelp): code.SignatureHelp;
|
|
501
|
-
asSignatureHelp(item: proto.SignatureHelp | undefined | null): code.SignatureHelp | undefined;
|
|
502
|
-
asSignatureInformation(item: proto.SignatureInformation): code.SignatureInformation;
|
|
503
|
-
asSignatureInformations(items: proto.SignatureInformation[]): code.SignatureInformation[];
|
|
504
|
-
asParameterInformation(item: proto.ParameterInformation): code.ParameterInformation;
|
|
505
|
-
asParameterInformations(item: proto.ParameterInformation[]): code.ParameterInformation[];
|
|
506
|
-
asLocation(item: proto.Location): code.Location;
|
|
507
|
-
asLocation(item: undefined | null): undefined;
|
|
508
|
-
asLocation(item: proto.Location | undefined | null): code.Location | undefined;
|
|
509
|
-
asDeclarationResult(item: proto.Declaration): code.Location | code.Location[];
|
|
510
|
-
asDeclarationResult(item: proto.DeclarationLink[]): code.LocationLink[];
|
|
511
|
-
asDeclarationResult(item: undefined | null): undefined;
|
|
512
|
-
asDeclarationResult(item: proto.Declaration | proto.DeclarationLink[] | undefined | null): code.Declaration | undefined;
|
|
513
|
-
asDefinitionResult(item: proto.Definition): code.Definition;
|
|
514
|
-
asDefinitionResult(item: proto.DefinitionLink[]): code.DefinitionLink[];
|
|
515
|
-
asDefinitionResult(item: undefined | null): undefined;
|
|
516
|
-
asDefinitionResult(item: proto.Definition | proto.DefinitionLink[] | undefined | null): code.Definition | code.DefinitionLink[] | undefined;
|
|
517
|
-
asReferences(values: proto.Location[]): code.Location[];
|
|
518
|
-
asReferences(values: undefined | null): code.Location[] | undefined;
|
|
519
|
-
asReferences(values: proto.Location[] | undefined | null): code.Location[] | undefined;
|
|
520
|
-
asDocumentHighlightKind(item: number): code.DocumentHighlightKind;
|
|
521
|
-
asDocumentHighlight(item: proto.DocumentHighlight): code.DocumentHighlight;
|
|
522
|
-
asDocumentHighlights(values: proto.DocumentHighlight[]): code.DocumentHighlight[];
|
|
523
|
-
asDocumentHighlights(values: undefined | null): undefined;
|
|
524
|
-
asDocumentHighlights(values: proto.DocumentHighlight[] | undefined | null): code.DocumentHighlight[] | undefined;
|
|
525
|
-
asSymbolKind(item: proto.SymbolKind): code.SymbolKind;
|
|
526
|
-
asSymbolTag(item: proto.SymbolTag): code.SymbolTag | undefined;
|
|
527
|
-
asSymbolTags(items: undefined | null): undefined;
|
|
528
|
-
asSymbolTags(items: ReadonlyArray<proto.SymbolTag>): code.SymbolTag[];
|
|
529
|
-
asSymbolTags(items: ReadonlyArray<proto.SymbolTag> | undefined | null): code.SymbolTag[] | undefined;
|
|
530
|
-
asSymbolInformation(item: proto.SymbolInformation, uri?: code.Uri): code.SymbolInformation;
|
|
531
|
-
asSymbolInformations(values: proto.SymbolInformation[], uri?: code.Uri): code.SymbolInformation[];
|
|
532
|
-
asSymbolInformations(values: undefined | null, uri?: code.Uri): undefined;
|
|
533
|
-
asSymbolInformations(values: proto.SymbolInformation[] | undefined | null, uri?: code.Uri): code.SymbolInformation[] | undefined;
|
|
534
|
-
asDocumentSymbol(value: proto.DocumentSymbol): code.DocumentSymbol;
|
|
535
|
-
asDocumentSymbols(value: undefined | null): undefined;
|
|
536
|
-
asDocumentSymbols(value: proto.DocumentSymbol[]): code.DocumentSymbol[];
|
|
537
|
-
asDocumentSymbols(value: proto.DocumentSymbol[] | undefined | null): code.DocumentSymbol[] | undefined;
|
|
538
|
-
asCommand(item: proto.Command): code.Command;
|
|
539
|
-
asCommands(items: proto.Command[]): code.Command[];
|
|
540
|
-
asCommands(items: undefined | null): undefined;
|
|
541
|
-
asCommands(items: proto.Command[] | undefined | null): code.Command[] | undefined;
|
|
542
|
-
asCodeAction(item: proto.CodeAction): code.CodeAction;
|
|
543
|
-
asCodeAction(item: undefined | null): undefined;
|
|
544
|
-
asCodeAction(item: proto.CodeAction | undefined | null): code.CodeAction | undefined;
|
|
545
|
-
asCodeActionKind(item: null | undefined): undefined;
|
|
546
|
-
asCodeActionKind(item: proto.CodeActionKind): code.CodeActionKind;
|
|
547
|
-
asCodeActionKind(item: proto.CodeActionKind | null | undefined): code.CodeActionKind | undefined;
|
|
548
|
-
asCodeActionKinds(item: null | undefined): undefined;
|
|
549
|
-
asCodeActionKinds(items: proto.CodeActionKind[]): code.CodeActionKind[];
|
|
550
|
-
asCodeActionKinds(item: proto.CodeActionKind[] | null | undefined): code.CodeActionKind[] | undefined;
|
|
551
|
-
asCodeLens(item: proto.CodeLens): code.CodeLens;
|
|
552
|
-
asCodeLens(item: undefined | null): undefined;
|
|
553
|
-
asCodeLens(item: proto.CodeLens | undefined | null): code.CodeLens | undefined;
|
|
554
|
-
asCodeLenses(items: proto.CodeLens[]): code.CodeLens[];
|
|
555
|
-
asCodeLenses(items: undefined | null): undefined;
|
|
556
|
-
asCodeLenses(items: proto.CodeLens[] | undefined | null): code.CodeLens[] | undefined;
|
|
557
|
-
asWorkspaceEdit(item: proto.WorkspaceEdit): code.WorkspaceEdit;
|
|
558
|
-
asWorkspaceEdit(item: undefined | null): undefined;
|
|
559
|
-
asWorkspaceEdit(item: proto.WorkspaceEdit | undefined | null): code.WorkspaceEdit | undefined;
|
|
560
|
-
asDocumentLink(item: proto.DocumentLink): code.DocumentLink;
|
|
561
|
-
asDocumentLinks(items: proto.DocumentLink[]): code.DocumentLink[];
|
|
562
|
-
asDocumentLinks(items: undefined | null): undefined;
|
|
563
|
-
asDocumentLinks(items: proto.DocumentLink[] | undefined | null): code.DocumentLink[] | undefined;
|
|
564
|
-
asColor(color: proto.Color): code.Color;
|
|
565
|
-
asColorInformation(ci: proto.ColorInformation): code.ColorInformation;
|
|
566
|
-
asColorInformations(colorPresentations: proto.ColorInformation[]): code.ColorInformation[];
|
|
567
|
-
asColorInformations(colorPresentations: undefined | null): undefined;
|
|
568
|
-
asColorInformations(colorInformation: proto.ColorInformation[] | undefined | null): code.ColorInformation[];
|
|
569
|
-
asColorPresentation(cp: proto.ColorPresentation): code.ColorPresentation;
|
|
570
|
-
asColorPresentations(colorPresentations: proto.ColorPresentation[]): code.ColorPresentation[];
|
|
571
|
-
asColorPresentations(colorPresentations: undefined | null): undefined;
|
|
572
|
-
asColorPresentations(colorPresentations: proto.ColorPresentation[] | undefined | null): undefined;
|
|
573
|
-
asFoldingRangeKind(kind: string | undefined): code.FoldingRangeKind | undefined;
|
|
574
|
-
asFoldingRange(r: proto.FoldingRange): code.FoldingRange;
|
|
575
|
-
asFoldingRanges(foldingRanges: proto.FoldingRange[]): code.FoldingRange[];
|
|
576
|
-
asFoldingRanges(foldingRanges: undefined | null): undefined;
|
|
577
|
-
asFoldingRanges(foldingRanges: proto.FoldingRange[] | undefined | null): code.FoldingRange[] | undefined;
|
|
578
|
-
asFoldingRanges(foldingRanges: proto.FoldingRange[] | undefined | null): code.FoldingRange[] | undefined;
|
|
579
|
-
asSelectionRange(selectionRange: proto.SelectionRange): code.SelectionRange;
|
|
580
|
-
asSelectionRanges(selectionRanges: proto.SelectionRange[]): code.SelectionRange[];
|
|
581
|
-
asSelectionRanges(selectionRanges: undefined | null): undefined;
|
|
582
|
-
asSelectionRanges(selectionRanges: proto.SelectionRange[] | undefined | null): code.SelectionRange[] | undefined;
|
|
583
|
-
asSelectionRanges(selectionRanges: proto.SelectionRange[] | undefined | null): code.SelectionRange[] | undefined;
|
|
584
|
-
asSemanticTokensLegend(value: proto.SemanticTokensLegend): code.SemanticTokensLegend;
|
|
585
|
-
asSemanticTokens(value: proto.SemanticTokens): code.SemanticTokens;
|
|
586
|
-
asSemanticTokens(value: undefined | null): undefined;
|
|
587
|
-
asSemanticTokens(value: proto.SemanticTokens | undefined | null): code.SemanticTokens | undefined;
|
|
588
|
-
asSemanticTokens(value: proto.SemanticTokens | undefined | null): code.SemanticTokens | undefined;
|
|
589
|
-
asSemanticTokensEdit(value: proto.SemanticTokensEdit): code.SemanticTokensEdit;
|
|
590
|
-
asSemanticTokensEdits(value: proto.SemanticTokensDelta): code.SemanticTokensEdits;
|
|
591
|
-
asSemanticTokensEdits(value: undefined | null): undefined;
|
|
592
|
-
asSemanticTokensEdits(value: proto.SemanticTokensDelta | undefined | null): code.SemanticTokensEdits | undefined;
|
|
593
|
-
asSemanticTokensEdits(value: proto.SemanticTokensDelta | undefined | null): code.SemanticTokensEdits | undefined;
|
|
594
|
-
asCallHierarchyItem(item: null): undefined;
|
|
595
|
-
asCallHierarchyItem(item: proto.CallHierarchyItem): code.CallHierarchyItem;
|
|
596
|
-
asCallHierarchyItem(item: proto.CallHierarchyItem | null): code.CallHierarchyItem | undefined;
|
|
597
|
-
asCallHierarchyItem(item: proto.CallHierarchyItem | null): code.CallHierarchyItem | undefined;
|
|
598
|
-
asCallHierarchyItems(items: null): undefined;
|
|
599
|
-
asCallHierarchyItems(items: proto.CallHierarchyItem[]): code.CallHierarchyItem[];
|
|
600
|
-
asCallHierarchyItems(items: proto.CallHierarchyItem[] | null): code.CallHierarchyItem[] | undefined;
|
|
601
|
-
asCallHierarchyItems(items: proto.CallHierarchyItem[] | null): code.CallHierarchyItem[] | undefined;
|
|
602
|
-
asCallHierarchyIncomingCall(item: proto.CallHierarchyIncomingCall): code.CallHierarchyIncomingCall;
|
|
603
|
-
asCallHierarchyIncomingCalls(items: null): undefined;
|
|
604
|
-
asCallHierarchyIncomingCalls(items: ReadonlyArray<proto.CallHierarchyIncomingCall>): code.CallHierarchyIncomingCall[];
|
|
605
|
-
asCallHierarchyIncomingCalls(items: ReadonlyArray<proto.CallHierarchyIncomingCall> | null): code.CallHierarchyIncomingCall[] | undefined;
|
|
606
|
-
asCallHierarchyIncomingCalls(items: ReadonlyArray<proto.CallHierarchyIncomingCall> | null): code.CallHierarchyIncomingCall[] | undefined;
|
|
607
|
-
asCallHierarchyOutgoingCall(item: proto.CallHierarchyOutgoingCall): code.CallHierarchyOutgoingCall;
|
|
608
|
-
asCallHierarchyOutgoingCalls(items: null): undefined;
|
|
609
|
-
asCallHierarchyOutgoingCalls(items: ReadonlyArray<proto.CallHierarchyOutgoingCall>): code.CallHierarchyOutgoingCall[];
|
|
610
|
-
asCallHierarchyOutgoingCalls(items: ReadonlyArray<proto.CallHierarchyOutgoingCall> | null): code.CallHierarchyOutgoingCall[] | undefined;
|
|
611
|
-
asCallHierarchyOutgoingCalls(items: ReadonlyArray<proto.CallHierarchyOutgoingCall> | null): code.CallHierarchyOutgoingCall[] | undefined;
|
|
612
|
-
asLinkedEditingRanges(value: null | undefined): undefined;
|
|
613
|
-
asLinkedEditingRanges(value: proto.LinkedEditingRanges): code.LinkedEditingRanges;
|
|
614
|
-
asLinkedEditingRanges(value: proto.LinkedEditingRanges | null | undefined): code.LinkedEditingRanges | undefined;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
declare function createConverter(uriConverter?: URIConverter): Converter;
|
|
618
|
-
|
|
619
|
-
declare function createConverter_2(uriConverter: URIConverter_2 | undefined, trustMarkdown: boolean | undefined): Converter_2;
|
|
620
|
-
|
|
621
|
-
export declare function createLanguageClientManager(id: LanguageClientId, sessionId: string | undefined, languageServerAddress: string, getSecurityToken: () => Promise<string>, libraryUrls: string[]): LanguageClientManager;
|
|
622
|
-
|
|
623
|
-
declare interface DeclarationMiddleware {
|
|
624
|
-
provideDeclaration?: (this: void, document: TextDocument, position: Position, token: CancellationToken_2, next: ProvideDeclarationSignature) => ProviderResult<Declaration>;
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
declare interface DidChangeConfigurationSignature {
|
|
628
|
-
(this: void, sections: string[] | undefined): void;
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
declare interface DidChangeWatchedFileSignature {
|
|
632
|
-
(this: void, event: FileEvent): void;
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
declare interface DocumentRangeSemanticTokensSignature {
|
|
636
|
-
(this: void, document: code.TextDocument, range: code.Range, token: code.CancellationToken): code.ProviderResult<code.SemanticTokens>;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
declare interface DocumentSemanticsTokensEditsSignature {
|
|
640
|
-
(this: void, document: code.TextDocument, previousResultId: string, token: code.CancellationToken): code.ProviderResult<code.SemanticTokensEdits | code.SemanticTokens>;
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
declare interface DocumentSemanticsTokensSignature {
|
|
644
|
-
(this: void, document: code.TextDocument, token: code.CancellationToken): code.ProviderResult<code.SemanticTokens>;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
/**
|
|
648
|
-
* A tagging type for string properties that are actually URIs.
|
|
649
|
-
*/
|
|
650
|
-
declare type DocumentUri = string;
|
|
651
|
-
|
|
652
|
-
declare interface DynamicFeature<RO> {
|
|
653
|
-
/**
|
|
654
|
-
* Called to fill the initialize params.
|
|
655
|
-
*
|
|
656
|
-
* @params the initialize params.
|
|
657
|
-
*/
|
|
658
|
-
fillInitializeParams?: (params: InitializeParams) => void;
|
|
659
|
-
/**
|
|
660
|
-
* Called to fill in the client capabilities this feature implements.
|
|
661
|
-
*
|
|
662
|
-
* @param capabilities The client capabilities to fill.
|
|
663
|
-
*/
|
|
664
|
-
fillClientCapabilities(capabilities: ClientCapabilities): void;
|
|
665
|
-
/**
|
|
666
|
-
* Initialize the feature. This method is called on a feature instance
|
|
667
|
-
* when the client has successfully received the initialize request from
|
|
668
|
-
* the server and before the client sends the initialized notification
|
|
669
|
-
* to the server.
|
|
670
|
-
*
|
|
671
|
-
* @param capabilities the server capabilities.
|
|
672
|
-
* @param documentSelector the document selector pass to the client's constructor.
|
|
673
|
-
* May be `undefined` if the client was created without a selector.
|
|
674
|
-
*/
|
|
675
|
-
initialize(capabilities: ServerCapabilities, documentSelector: DocumentSelector | undefined): void;
|
|
676
|
-
/**
|
|
677
|
-
* The signature (e.g. method) for which this features support dynamic activation / registration.
|
|
678
|
-
*/
|
|
679
|
-
registrationType: RegistrationType<RO>;
|
|
680
|
-
/**
|
|
681
|
-
* Is called when the server send a register request for the given message.
|
|
682
|
-
*
|
|
683
|
-
* @param data additional registration data as defined in the protocol.
|
|
684
|
-
*/
|
|
685
|
-
register(data: RegistrationData<RO>): void;
|
|
686
|
-
/**
|
|
687
|
-
* Is called when the server wants to unregister a feature.
|
|
688
|
-
*
|
|
689
|
-
* @param id the id used when registering the feature.
|
|
690
|
-
*/
|
|
691
|
-
unregister(id: string): void;
|
|
692
|
-
/**
|
|
693
|
-
* Called when the client is stopped to dispose this feature. Usually a feature
|
|
694
|
-
* un-registers listeners registered hooked up with the VS Code extension host.
|
|
695
|
-
*/
|
|
696
|
-
dispose(): void;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
/**
|
|
700
|
-
* An action to be performed when the connection is producing errors.
|
|
701
|
-
*/
|
|
702
|
-
declare enum ErrorAction {
|
|
703
|
-
/**
|
|
704
|
-
* Continue running the server.
|
|
705
|
-
*/
|
|
706
|
-
Continue = 1,
|
|
707
|
-
/**
|
|
708
|
-
* Shutdown the server.
|
|
709
|
-
*/
|
|
710
|
-
Shutdown = 2
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
/**
|
|
714
|
-
* A plugable error handler that is invoked when the connection is either
|
|
715
|
-
* producing errors or got closed.
|
|
716
|
-
*/
|
|
717
|
-
declare interface ErrorHandler {
|
|
718
|
-
/**
|
|
719
|
-
* An error has occurred while writing or reading from the connection.
|
|
720
|
-
*
|
|
721
|
-
* @param error - the error received
|
|
722
|
-
* @param message - the message to be delivered to the server if know.
|
|
723
|
-
* @param count - a count indicating how often an error is received. Will
|
|
724
|
-
* be reset if a message got successfully send or received.
|
|
725
|
-
*/
|
|
726
|
-
error(error: Error, message: Message | undefined, count: number | undefined): ErrorAction;
|
|
727
|
-
/**
|
|
728
|
-
* The connection to the server got closed.
|
|
729
|
-
*/
|
|
730
|
-
closed(): CloseAction;
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
declare interface ExecuteCommandSignature {
|
|
734
|
-
(this: void, command: string, args: any[]): ProviderResult<any>;
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
declare interface FileFormattingOptions {
|
|
738
|
-
trimTrailingWhitespace?: boolean;
|
|
739
|
-
trimFinalNewlines?: boolean;
|
|
740
|
-
insertFinalNewline?: boolean;
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
/**
|
|
744
|
-
* File operation middleware
|
|
745
|
-
*
|
|
746
|
-
* @since 3.16.0
|
|
747
|
-
*/
|
|
748
|
-
declare interface FileOperationsMiddleware {
|
|
749
|
-
didCreateFiles?: NextSignature<code.FileCreateEvent, void>;
|
|
750
|
-
willCreateFiles?: NextSignature<code.FileCreateEvent, Thenable<code.WorkspaceEdit | null | undefined>>;
|
|
751
|
-
didRenameFiles?: NextSignature<code.FileRenameEvent, void>;
|
|
752
|
-
willRenameFiles?: NextSignature<code.FileRenameEvent, Thenable<code.WorkspaceEdit | null | undefined>>;
|
|
753
|
-
didDeleteFiles?: NextSignature<code.FileDeleteEvent, void>;
|
|
754
|
-
willDeleteFiles?: NextSignature<code.FileDeleteEvent, Thenable<code.WorkspaceEdit | null | undefined>>;
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
declare interface FoldingRangeProviderMiddleware {
|
|
758
|
-
provideFoldingRanges?: (this: void, document: TextDocument, context: FoldingContext, token: CancellationToken_2, next: ProvideFoldingRangeSignature) => ProviderResult<FoldingRange[]>;
|
|
759
|
-
}
|
|
760
|
-
|
|
761
|
-
declare interface HandleDiagnosticsSignature {
|
|
762
|
-
(this: void, uri: Uri, diagnostics: Diagnostic[]): void;
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
declare interface HandleWorkDoneProgressSignature {
|
|
766
|
-
(this: void, token: ProgressToken, params: WorkDoneProgressBegin | WorkDoneProgressReport | WorkDoneProgressEnd): void;
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
declare interface IConnection {
|
|
770
|
-
listen(): void;
|
|
771
|
-
sendRequest<R, E>(type: RequestType0_2<R, E>, token?: CancellationToken_3): Thenable<R>;
|
|
772
|
-
sendRequest<P, R, E>(type: RequestType_2<P, R, E>, params: P, token?: CancellationToken_3): Thenable<R>;
|
|
773
|
-
sendRequest<R>(method: string, token?: CancellationToken_3): Thenable<R>;
|
|
774
|
-
sendRequest<R>(method: string, param: any, token?: CancellationToken_3): Thenable<R>;
|
|
775
|
-
sendRequest<R>(type: string | MessageSignature_2, ...params: any[]): Thenable<R>;
|
|
776
|
-
onRequest<R, E>(type: RequestType0_2<R, E>, handler: RequestHandler0_2<R, E>): Disposable_2;
|
|
777
|
-
onRequest<P, R, E>(type: RequestType_2<P, R, E>, handler: RequestHandler_2<P, R, E>): Disposable_2;
|
|
778
|
-
onRequest<R, E>(method: string, handler: GenericRequestHandler_2<R, E>): Disposable_2;
|
|
779
|
-
onRequest<R, E>(method: string | MessageSignature_2, handler: GenericRequestHandler_2<R, E>): Disposable_2;
|
|
780
|
-
sendNotification(type: NotificationType0_2): Thenable<void>;
|
|
781
|
-
sendNotification<P>(type: NotificationType_2<P>, params?: P): Thenable<void>;
|
|
782
|
-
sendNotification(method: string): Thenable<void>;
|
|
783
|
-
sendNotification(method: string, params: any): Thenable<void>;
|
|
784
|
-
sendNotification(method: string | MessageSignature_2, params?: any): Thenable<void>;
|
|
785
|
-
onNotification(type: NotificationType0_2, handler: NotificationHandler0_2): Disposable_2;
|
|
786
|
-
onNotification<P>(type: NotificationType_2<P>, handler: NotificationHandler_2<P>): Disposable_2;
|
|
787
|
-
onNotification(method: string, handler: GenericNotificationHandler_2): Disposable_2;
|
|
788
|
-
onNotification(method: string | MessageSignature_2, handler: GenericNotificationHandler_2): Disposable_2;
|
|
789
|
-
onProgress<P>(type: ProgressType_2<P>, token: string | number, handler: NotificationHandler_2<P>): Disposable_2;
|
|
790
|
-
sendProgress<P>(type: ProgressType_2<P>, token: string | number, value: P): Thenable<void>;
|
|
791
|
-
trace(value: Trace_2, tracer: Tracer, sendNotification?: boolean): void;
|
|
792
|
-
initialize(params: InitializeParams): Thenable<InitializeResult>;
|
|
793
|
-
shutdown(): Thenable<void>;
|
|
794
|
-
exit(): Thenable<void>;
|
|
795
|
-
onLogMessage(handle: NotificationHandler_2<LogMessageParams>): void;
|
|
796
|
-
onShowMessage(handler: NotificationHandler_2<ShowMessageParams>): void;
|
|
797
|
-
onTelemetry(handler: NotificationHandler_2<any>): void;
|
|
798
|
-
didChangeConfiguration(params: DidChangeConfigurationParams): Thenable<void>;
|
|
799
|
-
didChangeWatchedFiles(params: DidChangeWatchedFilesParams): Thenable<void>;
|
|
800
|
-
didOpenTextDocument(params: DidOpenTextDocumentParams): Thenable<void>;
|
|
801
|
-
didChangeTextDocument(params: DidChangeTextDocumentParams): Thenable<void>;
|
|
802
|
-
didCloseTextDocument(params: DidCloseTextDocumentParams): Thenable<void>;
|
|
803
|
-
didSaveTextDocument(params: DidSaveTextDocumentParams): Thenable<void>;
|
|
804
|
-
onDiagnostics(handler: NotificationHandler_2<PublishDiagnosticsParams>): void;
|
|
805
|
-
end(): void;
|
|
806
|
-
dispose(): void;
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
declare interface IConnectionProvider {
|
|
810
|
-
get(errorHandler: ConnectionErrorHandler, closeHandler: ConnectionCloseHandler, outputChannel: OutputChannel_2 | undefined): Thenable<IConnection>;
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
declare interface ImplementationMiddleware {
|
|
814
|
-
provideImplementation?: (this: void, document: TextDocument, position: Position, token: CancellationToken_2, next: ProvideImplementationSignature) => ProviderResult<Definition | DefinitionLink[]>;
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
/**
|
|
818
|
-
* A handler that is invoked when the initialization of the server failed.
|
|
819
|
-
*/
|
|
820
|
-
declare interface InitializationFailedHandler {
|
|
821
|
-
/**
|
|
822
|
-
* @param error The error returned from the server
|
|
823
|
-
* @returns if true is returned the client tries to reinitialize the server.
|
|
824
|
-
* Implementors of a handler are responsible to not initialize the server
|
|
825
|
-
* infinitely. Return false if initialization should stop and an error
|
|
826
|
-
* should be reported.
|
|
827
|
-
*/
|
|
828
|
-
(error: ResponseError<InitializeError> | Error | any): boolean;
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
declare interface LanguageClient {
|
|
832
|
-
sendNotification(method: string, params: unknown): void;
|
|
833
|
-
sendRequest<R>(method: string, params: unknown): Promise<R>;
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
export declare type LanguageClientId = keyof typeof staticOptions;
|
|
837
|
-
|
|
838
|
-
declare class LanguageClientManager implements LanguageClient {
|
|
839
|
-
private id;
|
|
840
|
-
private sessionId;
|
|
841
|
-
private languageServerAddress;
|
|
842
|
-
private getSecurityToken;
|
|
843
|
-
private languageServerOptions;
|
|
844
|
-
private libraryUrls;
|
|
845
|
-
languageClient?: MonacoLanguageClient;
|
|
846
|
-
protected readonly onDidChangeStatusEmitter: Emitter<StatusChangeEvent>;
|
|
847
|
-
protected readonly onErrorEmitter: Emitter<Error>;
|
|
848
|
-
protected readonly onWillCloseEmitter: Emitter<void>;
|
|
849
|
-
protected currentStatus?: Status;
|
|
850
|
-
constructor(id: LanguageClientId, sessionId: string | undefined, languageServerAddress: string, getSecurityToken: () => Promise<string>, languageServerOptions: StaticLanguageClientOptions, libraryUrls: string[]);
|
|
851
|
-
private updateStatus;
|
|
852
|
-
private notifyStatusChanged;
|
|
853
|
-
isReady(): boolean;
|
|
854
|
-
dispose(): Promise<void>;
|
|
855
|
-
get onDidChangeStatus(): Event_3<StatusChangeEvent>;
|
|
856
|
-
get onWillClose(): Event_3<void>;
|
|
857
|
-
get onError(): Event_3<Error>;
|
|
858
|
-
isModelManaged(document: TextDocument_2): boolean;
|
|
859
|
-
isDisposed(): boolean;
|
|
860
|
-
private handleClose;
|
|
861
|
-
private handleError;
|
|
862
|
-
start(): void;
|
|
863
|
-
sendNotification(method: string, params: unknown): void;
|
|
864
|
-
sendRequest<R>(method: string, params: unknown): Promise<R>;
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
declare interface LanguageClientOptions {
|
|
868
|
-
documentSelector?: DocumentSelector | string[];
|
|
869
|
-
synchronize?: SynchronizeOptions;
|
|
870
|
-
diagnosticCollectionName?: string;
|
|
871
|
-
outputChannel?: OutputChannel;
|
|
872
|
-
outputChannelName?: string;
|
|
873
|
-
traceOutputChannel?: OutputChannel;
|
|
874
|
-
revealOutputChannelOn?: RevealOutputChannelOn;
|
|
875
|
-
/**
|
|
876
|
-
* The encoding use to read stdout and stderr. Defaults
|
|
877
|
-
* to 'utf8' if omitted.
|
|
878
|
-
*/
|
|
879
|
-
stdioEncoding?: string;
|
|
880
|
-
initializationOptions?: any | (() => any);
|
|
881
|
-
initializationFailedHandler?: InitializationFailedHandler;
|
|
882
|
-
progressOnInitialization?: boolean;
|
|
883
|
-
errorHandler?: ErrorHandler;
|
|
884
|
-
middleware?: Middleware;
|
|
885
|
-
uriConverters?: {
|
|
886
|
-
code2Protocol: c2p.URIConverter;
|
|
887
|
-
protocol2Code: p2c.URIConverter;
|
|
888
|
-
};
|
|
889
|
-
workspaceFolder?: WorkspaceFolder;
|
|
890
|
-
connectionOptions?: ConnectionOptions;
|
|
891
|
-
markdown?: {
|
|
892
|
-
isTrusted?: boolean;
|
|
893
|
-
};
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
declare type LanguageClientOptionsById<T extends string> = Record<T, StaticLanguageClientOptions>;
|
|
897
|
-
|
|
898
|
-
/**
|
|
899
|
-
* Linked editing middleware
|
|
900
|
-
*
|
|
901
|
-
* @since 3.16.0
|
|
902
|
-
*/
|
|
903
|
-
declare interface LinkedEditingRangeMiddleware {
|
|
904
|
-
provideLinkedEditingRange?: (this: void, document: code.TextDocument, position: code.Position, token: code.CancellationToken, next: ProvideLinkedEditingRangeSignature) => code.ProviderResult<code.LinkedEditingRanges>;
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
declare interface MessageTransports {
|
|
908
|
-
reader: MessageReader;
|
|
909
|
-
writer: MessageWriter;
|
|
910
|
-
detached?: boolean;
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
declare namespace MessageTransports {
|
|
914
|
-
function is(value: any): value is MessageTransports;
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
declare type Middleware = _Middleware & TypeDefinitionMiddleware & ImplementationMiddleware & ColorProviderMiddleware & FoldingRangeProviderMiddleware & DeclarationMiddleware & SelectionRangeProviderMiddleware & CallHierarchyMiddleware & SemanticTokensMiddleware & LinkedEditingRangeMiddleware;
|
|
918
|
-
|
|
919
|
-
/**
|
|
920
|
-
* The Middleware lets extensions intercept the request and notifications send and received
|
|
921
|
-
* from the server
|
|
922
|
-
*/
|
|
923
|
-
declare interface _Middleware {
|
|
924
|
-
didOpen?: NextSignature<TextDocument, void>;
|
|
925
|
-
didChange?: NextSignature<TextDocumentChangeEvent, void>;
|
|
926
|
-
willSave?: NextSignature<TextDocumentWillSaveEvent, void>;
|
|
927
|
-
willSaveWaitUntil?: NextSignature<TextDocumentWillSaveEvent, Thenable<TextEdit[]>>;
|
|
928
|
-
didSave?: NextSignature<TextDocument, void>;
|
|
929
|
-
didClose?: NextSignature<TextDocument, void>;
|
|
930
|
-
handleDiagnostics?: (this: void, uri: Uri, diagnostics: Diagnostic[], next: HandleDiagnosticsSignature) => void;
|
|
931
|
-
handleWorkDoneProgress?: (this: void, token: ProgressToken, params: WorkDoneProgressBegin | WorkDoneProgressReport | WorkDoneProgressEnd, next: HandleWorkDoneProgressSignature) => void;
|
|
932
|
-
provideCompletionItem?: (this: void, document: TextDocument, position: Position, context: CompletionContext, token: CancellationToken, next: ProvideCompletionItemsSignature) => ProviderResult<CompletionItem[] | CompletionList>;
|
|
933
|
-
resolveCompletionItem?: (this: void, item: CompletionItem, token: CancellationToken, next: ResolveCompletionItemSignature) => ProviderResult<CompletionItem>;
|
|
934
|
-
provideHover?: (this: void, document: TextDocument, position: Position, token: CancellationToken, next: ProvideHoverSignature) => ProviderResult<Hover>;
|
|
935
|
-
provideSignatureHelp?: (this: void, document: TextDocument, position: Position, context: SignatureHelpContext, token: CancellationToken, next: ProvideSignatureHelpSignature) => ProviderResult<SignatureHelp>;
|
|
936
|
-
provideDefinition?: (this: void, document: TextDocument, position: Position, token: CancellationToken, next: ProvideDefinitionSignature) => ProviderResult<Definition | DefinitionLink[]>;
|
|
937
|
-
provideReferences?: (this: void, document: TextDocument, position: Position, options: {
|
|
938
|
-
includeDeclaration: boolean;
|
|
939
|
-
}, token: CancellationToken, next: ProvideReferencesSignature) => ProviderResult<Location_2[]>;
|
|
940
|
-
provideDocumentHighlights?: (this: void, document: TextDocument, position: Position, token: CancellationToken, next: ProvideDocumentHighlightsSignature) => ProviderResult<DocumentHighlight[]>;
|
|
941
|
-
provideDocumentSymbols?: (this: void, document: TextDocument, token: CancellationToken, next: ProvideDocumentSymbolsSignature) => ProviderResult<SymbolInformation[] | DocumentSymbol[]>;
|
|
942
|
-
provideWorkspaceSymbols?: (this: void, query: string, token: CancellationToken, next: ProvideWorkspaceSymbolsSignature) => ProviderResult<SymbolInformation[]>;
|
|
943
|
-
provideCodeActions?: (this: void, document: TextDocument, range: Range_2, context: CodeActionContext, token: CancellationToken, next: ProvideCodeActionsSignature) => ProviderResult<(Command | CodeAction)[]>;
|
|
944
|
-
resolveCodeAction?: (this: void, item: CodeAction, token: CancellationToken, next: ResolveCodeActionSignature) => ProviderResult<CodeAction>;
|
|
945
|
-
provideCodeLenses?: (this: void, document: TextDocument, token: CancellationToken, next: ProvideCodeLensesSignature) => ProviderResult<CodeLens[]>;
|
|
946
|
-
resolveCodeLens?: (this: void, codeLens: CodeLens, token: CancellationToken, next: ResolveCodeLensSignature) => ProviderResult<CodeLens>;
|
|
947
|
-
provideDocumentFormattingEdits?: (this: void, document: TextDocument, options: FormattingOptions, token: CancellationToken, next: ProvideDocumentFormattingEditsSignature) => ProviderResult<TextEdit[]>;
|
|
948
|
-
provideDocumentRangeFormattingEdits?: (this: void, document: TextDocument, range: Range_2, options: FormattingOptions, token: CancellationToken, next: ProvideDocumentRangeFormattingEditsSignature) => ProviderResult<TextEdit[]>;
|
|
949
|
-
provideOnTypeFormattingEdits?: (this: void, document: TextDocument, position: Position, ch: string, options: FormattingOptions, token: CancellationToken, next: ProvideOnTypeFormattingEditsSignature) => ProviderResult<TextEdit[]>;
|
|
950
|
-
provideRenameEdits?: (this: void, document: TextDocument, position: Position, newName: string, token: CancellationToken, next: ProvideRenameEditsSignature) => ProviderResult<WorkspaceEdit>;
|
|
951
|
-
prepareRename?: (this: void, document: TextDocument, position: Position, token: CancellationToken, next: PrepareRenameSignature) => ProviderResult<Range_2 | {
|
|
952
|
-
range: Range_2;
|
|
953
|
-
placeholder: string;
|
|
954
|
-
}>;
|
|
955
|
-
provideDocumentLinks?: (this: void, document: TextDocument, token: CancellationToken, next: ProvideDocumentLinksSignature) => ProviderResult<DocumentLink[]>;
|
|
956
|
-
resolveDocumentLink?: (this: void, link: DocumentLink, token: CancellationToken, next: ResolveDocumentLinkSignature) => ProviderResult<DocumentLink>;
|
|
957
|
-
executeCommand?: (this: void, command: string, args: any[], next: ExecuteCommandSignature) => ProviderResult<any>;
|
|
958
|
-
workspace?: WorkspaceMiddleware;
|
|
959
|
-
window?: WindowMiddleware;
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
declare class MonacoLanguageClient extends BaseLanguageClient {
|
|
963
|
-
static bypassConversion: (result: any) => any;
|
|
964
|
-
protected readonly connectionProvider: IConnectionProvider;
|
|
965
|
-
constructor({ id, name, clientOptions, connectionProvider }: MonacoLanguageClient.Options);
|
|
966
|
-
protected doCreateConnection(): Thenable<IConnection>;
|
|
967
|
-
protected createMessageTransports(encoding: string): Promise<MessageTransports>;
|
|
968
|
-
protected registerBuiltinFeatures(): void;
|
|
969
|
-
registerProposedFeatures(): void;
|
|
970
|
-
protected getLocale(): string;
|
|
971
|
-
}
|
|
972
|
-
|
|
973
|
-
declare namespace MonacoLanguageClient {
|
|
974
|
-
interface Options {
|
|
975
|
-
name: string;
|
|
976
|
-
id?: string;
|
|
977
|
-
clientOptions: LanguageClientOptions;
|
|
978
|
-
connectionProvider: IConnectionProvider;
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
declare interface NextSignature<P, R> {
|
|
983
|
-
(this: void, data: P, next: (data: P) => R): R;
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
declare interface NotificationFeature<T extends Function> {
|
|
987
|
-
/**
|
|
988
|
-
* Triggers the corresponding RPC method.
|
|
989
|
-
*/
|
|
990
|
-
getProvider(document: TextDocument): {
|
|
991
|
-
send: T;
|
|
992
|
-
} | undefined;
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
declare interface OutputChannel_2 extends Disposable_2 {
|
|
996
|
-
append(value: string): void;
|
|
997
|
-
appendLine(line: string): void;
|
|
998
|
-
show(preserveFocus?: boolean): void;
|
|
999
|
-
}
|
|
1000
|
-
|
|
1001
|
-
declare namespace p2c {
|
|
1002
|
-
export {
|
|
1003
|
-
createConverter_2 as createConverter,
|
|
1004
|
-
Converter_2 as Converter,
|
|
1005
|
-
URIConverter_2 as URIConverter
|
|
1006
|
-
}
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
/**
|
|
1010
|
-
* Position in a text document expressed as zero-based line and character offset.
|
|
1011
|
-
* The offsets are based on a UTF-16 string representation. So a string of the form
|
|
1012
|
-
* `a𐐀b` the character offset of the character `a` is 0, the character offset of `𐐀`
|
|
1013
|
-
* is 1 and the character offset of b is 3 since `𐐀` is represented using two code
|
|
1014
|
-
* units in UTF-16.
|
|
1015
|
-
*
|
|
1016
|
-
* Positions are line end character agnostic. So you can not specify a position that
|
|
1017
|
-
* denotes `\r|\n` or `\n|` where `|` represents the character offset.
|
|
1018
|
-
*/
|
|
1019
|
-
declare interface Position_2 {
|
|
1020
|
-
/**
|
|
1021
|
-
* Line position in a document (zero-based).
|
|
1022
|
-
* If a line number is greater than the number of lines in a document, it defaults back to the number of lines in the document.
|
|
1023
|
-
* If a line number is negative, it defaults to 0.
|
|
1024
|
-
*/
|
|
1025
|
-
line: number;
|
|
1026
|
-
/**
|
|
1027
|
-
* Character offset on a line in a document (zero-based). Assuming that the line is
|
|
1028
|
-
* represented as a string, the `character` value represents the gap between the
|
|
1029
|
-
* `character` and `character + 1`.
|
|
1030
|
-
*
|
|
1031
|
-
* If the character value is greater than the line length it defaults back to the
|
|
1032
|
-
* line length.
|
|
1033
|
-
* If a line number is negative, it defaults to 0.
|
|
1034
|
-
*/
|
|
1035
|
-
character: number;
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
declare interface PrepareCallHierarchySignature {
|
|
1039
|
-
(this: void, document: TextDocument, position: Position, token: CancellationToken): ProviderResult<CallHierarchyItem | CallHierarchyItem[]>;
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
declare interface PrepareRenameSignature {
|
|
1043
|
-
(this: void, document: TextDocument, position: Position, token: CancellationToken): ProviderResult<Range_2 | {
|
|
1044
|
-
range: Range_2;
|
|
1045
|
-
placeholder: string;
|
|
1046
|
-
}>;
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
declare class ProtocolCompletionItem extends code.CompletionItem {
|
|
1050
|
-
data: any;
|
|
1051
|
-
fromEdit: boolean | undefined;
|
|
1052
|
-
documentationFormat: string | undefined;
|
|
1053
|
-
originalItemKind: proto.CompletionItemKind | undefined;
|
|
1054
|
-
deprecated: boolean | undefined;
|
|
1055
|
-
insertTextMode: proto.InsertTextMode | undefined;
|
|
1056
|
-
constructor(label: string);
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
declare interface ProvideCodeActionsSignature {
|
|
1060
|
-
(this: void, document: TextDocument, range: Range_2, context: CodeActionContext, token: CancellationToken): ProviderResult<(Command | CodeAction)[]>;
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
declare interface ProvideCodeLensesSignature {
|
|
1064
|
-
(this: void, document: TextDocument, token: CancellationToken): ProviderResult<CodeLens[]>;
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
declare interface ProvideColorPresentationSignature {
|
|
1068
|
-
(color: Color, context: {
|
|
1069
|
-
document: TextDocument;
|
|
1070
|
-
range: Range_2;
|
|
1071
|
-
}, token: CancellationToken_2): ProviderResult<ColorPresentation[]>;
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
declare interface ProvideCompletionItemsSignature {
|
|
1075
|
-
(this: void, document: TextDocument, position: Position, context: CompletionContext, token: CancellationToken): ProviderResult<CompletionItem[] | CompletionList>;
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
declare interface ProvideDeclarationSignature {
|
|
1079
|
-
(this: void, document: TextDocument, position: Position, token: CancellationToken_2): ProviderResult<Declaration>;
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
declare interface ProvideDefinitionSignature {
|
|
1083
|
-
(this: void, document: TextDocument, position: Position, token: CancellationToken): ProviderResult<Definition | DefinitionLink[]>;
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
declare interface ProvideDocumentColorsSignature {
|
|
1087
|
-
(document: TextDocument, token: CancellationToken_2): ProviderResult<ColorInformation[]>;
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
declare interface ProvideDocumentFormattingEditsSignature {
|
|
1091
|
-
(this: void, document: TextDocument, options: FormattingOptions, token: CancellationToken): ProviderResult<TextEdit[]>;
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
declare interface ProvideDocumentHighlightsSignature {
|
|
1095
|
-
(this: void, document: TextDocument, position: Position, token: CancellationToken): ProviderResult<DocumentHighlight[]>;
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
declare interface ProvideDocumentLinksSignature {
|
|
1099
|
-
(this: void, document: TextDocument, token: CancellationToken): ProviderResult<DocumentLink[]>;
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
declare interface ProvideDocumentRangeFormattingEditsSignature {
|
|
1103
|
-
(this: void, document: TextDocument, range: Range_2, options: FormattingOptions, token: CancellationToken): ProviderResult<TextEdit[]>;
|
|
1104
|
-
}
|
|
1105
|
-
|
|
1106
|
-
declare interface ProvideDocumentSymbolsSignature {
|
|
1107
|
-
(this: void, document: TextDocument, token: CancellationToken): ProviderResult<SymbolInformation[] | DocumentSymbol[]>;
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
declare interface ProvideFoldingRangeSignature {
|
|
1111
|
-
(this: void, document: TextDocument, context: FoldingContext, token: CancellationToken_2): ProviderResult<FoldingRange[]>;
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
declare interface ProvideHoverSignature {
|
|
1115
|
-
(this: void, document: TextDocument, position: Position, token: CancellationToken): ProviderResult<Hover>;
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
declare interface ProvideImplementationSignature {
|
|
1119
|
-
(this: void, document: TextDocument, position: Position, token: CancellationToken_2): ProviderResult<Definition | DefinitionLink[]>;
|
|
1120
|
-
}
|
|
1121
|
-
|
|
1122
|
-
declare interface ProvideLinkedEditingRangeSignature {
|
|
1123
|
-
(this: void, document: code.TextDocument, position: code.Position, token: code.CancellationToken): code.ProviderResult<code.LinkedEditingRanges>;
|
|
1124
|
-
}
|
|
1125
|
-
|
|
1126
|
-
declare interface ProvideOnTypeFormattingEditsSignature {
|
|
1127
|
-
(this: void, document: TextDocument, position: Position, ch: string, options: FormattingOptions, token: CancellationToken): ProviderResult<TextEdit[]>;
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
declare interface ProvideReferencesSignature {
|
|
1131
|
-
(this: void, document: TextDocument, position: Position, options: {
|
|
1132
|
-
includeDeclaration: boolean;
|
|
1133
|
-
}, token: CancellationToken): ProviderResult<Location_2[]>;
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
declare interface ProvideRenameEditsSignature {
|
|
1137
|
-
(this: void, document: TextDocument, position: Position, newName: string, token: CancellationToken): ProviderResult<WorkspaceEdit>;
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
declare interface ProvideSelectionRangeSignature {
|
|
1141
|
-
(this: void, document: TextDocument, positions: Position[], token: CancellationToken_2): ProviderResult<SelectionRange[]>;
|
|
1142
|
-
}
|
|
1143
|
-
|
|
1144
|
-
declare interface ProvideSignatureHelpSignature {
|
|
1145
|
-
(this: void, document: TextDocument, position: Position, context: SignatureHelpContext, token: CancellationToken): ProviderResult<SignatureHelp>;
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
declare interface ProvideTypeDefinitionSignature {
|
|
1149
|
-
(this: void, document: TextDocument, position: Position, token: CancellationToken_2): ProviderResult<Definition | DefinitionLink[]>;
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
declare interface ProvideWorkspaceSymbolsSignature {
|
|
1153
|
-
(this: void, query: string, token: CancellationToken): ProviderResult<SymbolInformation[]>;
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
|
-
/**
|
|
1157
|
-
* A range in a text document expressed as (zero-based) start and end positions.
|
|
1158
|
-
*
|
|
1159
|
-
* If you want to specify a range that contains a line including the line ending
|
|
1160
|
-
* character(s) then use an end position denoting the start of the next line.
|
|
1161
|
-
* For example:
|
|
1162
|
-
* ```ts
|
|
1163
|
-
* {
|
|
1164
|
-
* start: { line: 5, character: 23 }
|
|
1165
|
-
* end : { line 6, character : 0 }
|
|
1166
|
-
* }
|
|
1167
|
-
* ```
|
|
1168
|
-
*/
|
|
1169
|
-
declare interface Range_3 {
|
|
1170
|
-
/**
|
|
1171
|
-
* The range's start position
|
|
1172
|
-
*/
|
|
1173
|
-
start: Position_2;
|
|
1174
|
-
/**
|
|
1175
|
-
* The range's end position.
|
|
1176
|
-
*/
|
|
1177
|
-
end: Position_2;
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
declare interface RegistrationData<T> {
|
|
1181
|
-
id: string;
|
|
1182
|
-
registerOptions: T;
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
declare interface ResolveCodeActionSignature {
|
|
1186
|
-
(this: void, item: CodeAction, token: CancellationToken): ProviderResult<CodeAction>;
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
declare interface ResolveCodeLensSignature {
|
|
1190
|
-
(this: void, codeLens: CodeLens, token: CancellationToken): ProviderResult<CodeLens>;
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
declare interface ResolveCompletionItemSignature {
|
|
1194
|
-
(this: void, item: CompletionItem, token: CancellationToken): ProviderResult<CompletionItem>;
|
|
1195
|
-
}
|
|
1196
|
-
|
|
1197
|
-
declare interface ResolveDocumentLinkSignature {
|
|
1198
|
-
(this: void, link: DocumentLink, token: CancellationToken): ProviderResult<DocumentLink>;
|
|
1199
|
-
}
|
|
1200
|
-
|
|
1201
|
-
declare enum RevealOutputChannelOn {
|
|
1202
|
-
Info = 1,
|
|
1203
|
-
Warn = 2,
|
|
1204
|
-
Error = 3,
|
|
1205
|
-
Never = 4
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
declare interface SelectionRangeProviderMiddleware {
|
|
1209
|
-
provideSelectionRanges?: (this: void, document: TextDocument, positions: Position[], token: CancellationToken_2, next: ProvideSelectionRangeSignature) => ProviderResult<SelectionRange[]>;
|
|
1210
|
-
}
|
|
1211
|
-
|
|
1212
|
-
/**
|
|
1213
|
-
* The semantic token middleware
|
|
1214
|
-
*
|
|
1215
|
-
* @since 3.16.0
|
|
1216
|
-
*/
|
|
1217
|
-
declare interface SemanticTokensMiddleware {
|
|
1218
|
-
provideDocumentSemanticTokens?: (this: void, document: code.TextDocument, token: code.CancellationToken, next: DocumentSemanticsTokensSignature) => code.ProviderResult<code.SemanticTokens>;
|
|
1219
|
-
provideDocumentSemanticTokensEdits?: (this: void, document: code.TextDocument, previousResultId: string, token: code.CancellationToken, next: DocumentSemanticsTokensEditsSignature) => code.ProviderResult<code.SemanticTokensEdits | code.SemanticTokens>;
|
|
1220
|
-
provideDocumentRangeSemanticTokens?: (this: void, document: code.TextDocument, range: code.Range, token: code.CancellationToken, next: DocumentRangeSemanticTokensSignature) => code.ProviderResult<code.SemanticTokens>;
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
|
-
declare interface SemanticTokensProviders {
|
|
1224
|
-
range?: code.DocumentRangeSemanticTokensProvider;
|
|
1225
|
-
full?: code.DocumentSemanticTokensProvider;
|
|
1226
|
-
onDidChangeSemanticTokensEmitter: code.EventEmitter<void>;
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
declare enum State {
|
|
1230
|
-
Stopped = 1,
|
|
1231
|
-
Starting = 3,
|
|
1232
|
-
Running = 2
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
|
-
declare interface StateChangeEvent {
|
|
1236
|
-
oldState: State;
|
|
1237
|
-
newState: State;
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
|
-
/**
|
|
1241
|
-
* A static feature. A static feature can't be dynamically activate via the
|
|
1242
|
-
* server. It is wired during the initialize sequence.
|
|
1243
|
-
*/
|
|
1244
|
-
declare interface StaticFeature {
|
|
1245
|
-
/**
|
|
1246
|
-
* Called to fill the initialize params.
|
|
1247
|
-
*
|
|
1248
|
-
* @params the initialize params.
|
|
1249
|
-
*/
|
|
1250
|
-
fillInitializeParams?: (params: InitializeParams) => void;
|
|
1251
|
-
/**
|
|
1252
|
-
* Called to fill in the client capabilities this feature implements.
|
|
1253
|
-
*
|
|
1254
|
-
* @param capabilities The client capabilities to fill.
|
|
1255
|
-
*/
|
|
1256
|
-
fillClientCapabilities(capabilities: ClientCapabilities): void;
|
|
1257
|
-
/**
|
|
1258
|
-
* Initialize the feature. This method is called on a feature instance
|
|
1259
|
-
* when the client has successfully received the initialize request from
|
|
1260
|
-
* the server and before the client sends the initialized notification
|
|
1261
|
-
* to the server.
|
|
1262
|
-
*
|
|
1263
|
-
* @param capabilities the server capabilities
|
|
1264
|
-
* @param documentSelector the document selector pass to the client's constructor.
|
|
1265
|
-
* May be `undefined` if the client was created without a selector.
|
|
1266
|
-
*/
|
|
1267
|
-
initialize(capabilities: ServerCapabilities, documentSelector: DocumentSelector | undefined): void;
|
|
1268
|
-
/**
|
|
1269
|
-
* Called when the client is stopped to dispose this feature. Usually a feature
|
|
1270
|
-
* un-registers listeners registered hooked up with the VS Code extension host.
|
|
1271
|
-
*/
|
|
1272
|
-
dispose(): void;
|
|
1273
|
-
}
|
|
1274
|
-
|
|
1275
|
-
declare type StaticLanguageClientOptions = Pick<LanguageClientOptions, 'documentSelector' | 'synchronize' | 'initializationOptions'>;
|
|
1276
|
-
|
|
1277
|
-
declare const staticOptions: LanguageClientOptionsById<"ruby" | "angular" | "bash" | "c" | "cpp" | "csharp" | "clojure" | "cobol" | "dart" | "go" | "groovy" | "java" | "javascript" | "kotlin" | "lua" | "php-serenata" | "php" | "python" | "r" | "react" | "rust" | "scala" | "sql" | "swift" | "typescript" | "vue">;
|
|
1278
|
-
|
|
1279
|
-
declare type Status = {
|
|
1280
|
-
type: string;
|
|
1281
|
-
message: string;
|
|
1282
|
-
};
|
|
1283
|
-
|
|
1284
|
-
export declare interface StatusChangeEvent {
|
|
1285
|
-
status: Status;
|
|
1286
|
-
}
|
|
1287
|
-
|
|
1288
|
-
declare interface SynchronizeOptions {
|
|
1289
|
-
/**
|
|
1290
|
-
* The configuration sections to synchronize. Pushing settings from the
|
|
1291
|
-
* client to the server is deprecated in favour of the new pull model
|
|
1292
|
-
* that allows servers to query settings scoped on resources. In this
|
|
1293
|
-
* model the client can only deliver an empty change event since the
|
|
1294
|
-
* actually setting value can vary on the provided resource scope.
|
|
1295
|
-
*
|
|
1296
|
-
* @deprecated Use the new pull model (`workspace/configuration` request)
|
|
1297
|
-
*/
|
|
1298
|
-
configurationSection?: string | string[];
|
|
1299
|
-
/**
|
|
1300
|
-
* Asks the client to send file change events to the server. Watchers
|
|
1301
|
-
* operate on workspace folders. The LSP client doesn't support watching
|
|
1302
|
-
* files outside a workspace folder.
|
|
1303
|
-
*/
|
|
1304
|
-
fileEvents?: FileSystemWatcher | FileSystemWatcher[];
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
/**
|
|
1308
|
-
* A simple text document. Not to be implemented. The document keeps the content
|
|
1309
|
-
* as string.
|
|
1310
|
-
*/
|
|
1311
|
-
declare interface TextDocument_2 {
|
|
1312
|
-
/**
|
|
1313
|
-
* The associated URI for this document. Most documents have the __file__-scheme, indicating that they
|
|
1314
|
-
* represent files on disk. However, some documents may have other schemes indicating that they are not
|
|
1315
|
-
* available on disk.
|
|
1316
|
-
*
|
|
1317
|
-
* @readonly
|
|
1318
|
-
*/
|
|
1319
|
-
readonly uri: DocumentUri;
|
|
1320
|
-
/**
|
|
1321
|
-
* The identifier of the language associated with this document.
|
|
1322
|
-
*
|
|
1323
|
-
* @readonly
|
|
1324
|
-
*/
|
|
1325
|
-
readonly languageId: string;
|
|
1326
|
-
/**
|
|
1327
|
-
* The version number of this document (it will increase after each
|
|
1328
|
-
* change, including undo/redo).
|
|
1329
|
-
*
|
|
1330
|
-
* @readonly
|
|
1331
|
-
*/
|
|
1332
|
-
readonly version: number;
|
|
1333
|
-
/**
|
|
1334
|
-
* Get the text of this document. A substring can be retrieved by
|
|
1335
|
-
* providing a range.
|
|
1336
|
-
*
|
|
1337
|
-
* @param range (optional) An range within the document to return.
|
|
1338
|
-
* If no range is passed, the full content is returned.
|
|
1339
|
-
* Invalid range positions are adjusted as described in [Position.line](#Position.line)
|
|
1340
|
-
* and [Position.character](#Position.character).
|
|
1341
|
-
* If the start range position is greater than the end range position,
|
|
1342
|
-
* then the effect of getText is as if the two positions were swapped.
|
|
1343
|
-
|
|
1344
|
-
* @return The text of this document or a substring of the text if a
|
|
1345
|
-
* range is provided.
|
|
1346
|
-
*/
|
|
1347
|
-
getText(range?: Range_3): string;
|
|
1348
|
-
/**
|
|
1349
|
-
* Converts a zero-based offset to a position.
|
|
1350
|
-
*
|
|
1351
|
-
* @param offset A zero-based offset.
|
|
1352
|
-
* @return A valid [position](#Position).
|
|
1353
|
-
*/
|
|
1354
|
-
positionAt(offset: number): Position_2;
|
|
1355
|
-
/**
|
|
1356
|
-
* Converts the position to a zero-based offset.
|
|
1357
|
-
* Invalid positions are adjusted as described in [Position.line](#Position.line)
|
|
1358
|
-
* and [Position.character](#Position.character).
|
|
1359
|
-
*
|
|
1360
|
-
* @param position A position.
|
|
1361
|
-
* @return A valid zero-based offset.
|
|
1362
|
-
*/
|
|
1363
|
-
offsetAt(position: Position_2): number;
|
|
1364
|
-
/**
|
|
1365
|
-
* The number of lines in this document.
|
|
1366
|
-
*
|
|
1367
|
-
* @readonly
|
|
1368
|
-
*/
|
|
1369
|
-
readonly lineCount: number;
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
declare namespace TextDocument_2 {
|
|
1373
|
-
/**
|
|
1374
|
-
* Creates a new text document.
|
|
1375
|
-
*
|
|
1376
|
-
* @param uri The document's uri.
|
|
1377
|
-
* @param languageId The document's language Id.
|
|
1378
|
-
* @param version The document's initial version number.
|
|
1379
|
-
* @param content The document's content.
|
|
1380
|
-
*/
|
|
1381
|
-
function create(uri: DocumentUri, languageId: string, version: number, content: string): TextDocument_2;
|
|
1382
|
-
/**
|
|
1383
|
-
* Updates a TextDocument by modifying its content.
|
|
1384
|
-
*
|
|
1385
|
-
* @param document the document to update. Only documents created by TextDocument.create are valid inputs.
|
|
1386
|
-
* @param changes the changes to apply to the document.
|
|
1387
|
-
* @param version the changes version for the document.
|
|
1388
|
-
* @returns The updated TextDocument. Note: That's the same document instance passed in as first parameter.
|
|
1389
|
-
*
|
|
1390
|
-
*/
|
|
1391
|
-
function update(document: TextDocument_2, changes: TextDocumentContentChangeEvent[], version: number): TextDocument_2;
|
|
1392
|
-
function applyEdits(document: TextDocument_2, edits: TextEdit_2[]): string;
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
/**
|
|
1396
|
-
* An event describing a change to a text document. If range and rangeLength are omitted
|
|
1397
|
-
* the new text is considered to be the full content of the document.
|
|
1398
|
-
*/
|
|
1399
|
-
declare type TextDocumentContentChangeEvent = {
|
|
1400
|
-
/**
|
|
1401
|
-
* The range of the document that changed.
|
|
1402
|
-
*/
|
|
1403
|
-
range: Range_3;
|
|
1404
|
-
/**
|
|
1405
|
-
* The optional length of the range that got replaced.
|
|
1406
|
-
*
|
|
1407
|
-
* @deprecated use range instead.
|
|
1408
|
-
*/
|
|
1409
|
-
rangeLength?: number;
|
|
1410
|
-
/**
|
|
1411
|
-
* The new text for the provided range.
|
|
1412
|
-
*/
|
|
1413
|
-
text: string;
|
|
1414
|
-
} | {
|
|
1415
|
-
/**
|
|
1416
|
-
* The new text of the whole document.
|
|
1417
|
-
*/
|
|
1418
|
-
text: string;
|
|
1419
|
-
};
|
|
1420
|
-
|
|
1421
|
-
declare interface TextDocumentProviderFeature<T> {
|
|
1422
|
-
/**
|
|
1423
|
-
* Triggers the corresponding RPC method.
|
|
1424
|
-
*/
|
|
1425
|
-
getProvider(textDocument: TextDocument): T | undefined;
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
/**
|
|
1429
|
-
* A text edit applicable to a text document.
|
|
1430
|
-
*/
|
|
1431
|
-
declare interface TextEdit_2 {
|
|
1432
|
-
/**
|
|
1433
|
-
* The range of the text document to be manipulated. To insert
|
|
1434
|
-
* text into a document create a range where start === end.
|
|
1435
|
-
*/
|
|
1436
|
-
range: Range_3;
|
|
1437
|
-
/**
|
|
1438
|
-
* The string to be inserted. For delete operations use an
|
|
1439
|
-
* empty string.
|
|
1440
|
-
*/
|
|
1441
|
-
newText: string;
|
|
1442
|
-
}
|
|
1443
|
-
|
|
1444
|
-
declare interface TypeDefinitionMiddleware {
|
|
1445
|
-
provideTypeDefinition?: (this: void, document: TextDocument, position: Position, token: CancellationToken_2, next: ProvideTypeDefinitionSignature) => ProviderResult<Definition | DefinitionLink[]>;
|
|
1446
|
-
}
|
|
1447
|
-
|
|
1448
|
-
declare interface URIConverter {
|
|
1449
|
-
(value: code.Uri): string;
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
declare interface URIConverter_2 {
|
|
1453
|
-
(value: string): code.Uri;
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
declare type WindowMiddleware = _WindowMiddleware;
|
|
1457
|
-
|
|
1458
|
-
declare interface _WindowMiddleware {
|
|
1459
|
-
showDocument?: (this: void, params: ShowDocumentParams, next: ShowDocumentRequest.HandlerSignature) => Promise<ShowDocumentResult>;
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
|
-
declare interface WorkspaceFolderWorkspaceMiddleware {
|
|
1463
|
-
workspaceFolders?: WorkspaceFoldersRequest.MiddlewareSignature;
|
|
1464
|
-
didChangeWorkspaceFolders?: NextSignature<WorkspaceFoldersChangeEvent, void>;
|
|
1465
|
-
}
|
|
1466
|
-
|
|
1467
|
-
declare type WorkspaceMiddleware = _WorkspaceMiddleware & ConfigurationWorkspaceMiddleware & WorkspaceFolderWorkspaceMiddleware & FileOperationsMiddleware;
|
|
1468
|
-
|
|
1469
|
-
declare interface _WorkspaceMiddleware {
|
|
1470
|
-
didChangeConfiguration?: (this: void, sections: string[] | undefined, next: DidChangeConfigurationSignature) => void;
|
|
1471
|
-
didChangeWatchedFile?: (this: void, event: FileEvent, next: DidChangeWatchedFileSignature) => void;
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
declare interface WorkspaceProviderFeature<PR> {
|
|
1475
|
-
getProviders(): PR[] | undefined;
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
|
-
export { }
|