vscode-languageserver-protocol 3.17.6-next.9 → 3.18.1
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/README.md +3 -3
- package/eslint.config.js +13 -0
- package/lib/browser/main.js +1 -2
- package/lib/common/connection.d.ts +13 -13
- package/lib/common/connection.js +1 -2
- package/lib/common/messages.d.ts +7 -0
- package/lib/common/messages.js +8 -1
- package/lib/common/protocol.callHierarchy.d.ts +5 -2
- package/lib/common/protocol.callHierarchy.js +3 -0
- package/lib/common/protocol.colorProvider.d.ts +5 -3
- package/lib/common/protocol.colorProvider.js +3 -1
- package/lib/common/protocol.configuration.d.ts +2 -1
- package/lib/common/protocol.configuration.js +1 -0
- package/lib/common/protocol.d.ts +100 -37
- package/lib/common/protocol.declaration.d.ts +3 -2
- package/lib/common/protocol.declaration.js +1 -0
- package/lib/common/protocol.diagnostic.d.ts +32 -4
- package/lib/common/protocol.diagnostic.js +21 -7
- package/lib/common/protocol.fileOperations.d.ts +8 -2
- package/lib/common/protocol.fileOperations.js +6 -0
- package/lib/common/protocol.foldingRange.d.ts +6 -5
- package/lib/common/protocol.foldingRange.js +4 -1
- package/lib/common/protocol.implementation.d.ts +3 -2
- package/lib/common/protocol.implementation.js +1 -0
- package/lib/common/protocol.inlayHint.d.ts +5 -2
- package/lib/common/protocol.inlayHint.js +3 -0
- package/lib/common/protocol.inlineCompletion.d.ts +3 -7
- package/lib/common/protocol.inlineCompletion.js +1 -1
- package/lib/common/protocol.inlineValue.d.ts +6 -4
- package/lib/common/protocol.inlineValue.js +2 -0
- package/lib/common/protocol.js +53 -10
- package/lib/common/protocol.linkedEditingRange.d.ts +3 -2
- package/lib/common/protocol.linkedEditingRange.js +1 -0
- package/lib/common/protocol.moniker.d.ts +3 -2
- package/lib/common/protocol.moniker.js +1 -0
- package/lib/common/protocol.notebook.js +17 -7
- package/lib/common/protocol.progress.d.ts +2 -1
- package/lib/common/protocol.progress.js +1 -0
- package/lib/common/protocol.selectionRange.d.ts +3 -2
- package/lib/common/protocol.selectionRange.js +1 -0
- package/lib/common/protocol.semanticTokens.d.ts +6 -2
- package/lib/common/protocol.semanticTokens.js +4 -0
- package/lib/common/protocol.showDocument.d.ts +2 -1
- package/lib/common/protocol.showDocument.js +1 -0
- package/lib/common/protocol.textDocumentContent.d.ts +21 -13
- package/lib/common/protocol.textDocumentContent.js +1 -2
- package/lib/common/protocol.typeDefinition.d.ts +3 -2
- package/lib/common/protocol.typeDefinition.js +2 -1
- package/lib/common/protocol.typeHierarchy.d.ts +3 -2
- package/lib/common/protocol.typeHierarchy.js +1 -0
- package/lib/common/protocol.workspaceFolder.d.ts +3 -1
- package/lib/common/protocol.workspaceFolder.js +2 -0
- package/lib/common/utils/is.js +9 -10
- package/lib/node/main.d.ts +0 -1
- package/lib/node/main.js +1 -2
- package/metaModel.schema.json +18 -1
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler0, RequestHandler, ProgressType } from 'vscode-jsonrpc';
|
|
2
2
|
import { TextDocumentIdentifier, Diagnostic, DocumentUri, integer } from 'vscode-languageserver-types';
|
|
3
|
-
import { MessageDirection, ProtocolRequestType0, ProtocolRequestType } from './messages';
|
|
4
|
-
import type
|
|
3
|
+
import { MessageDirection, ProtocolRequestType0, ProtocolRequestType, CM } from './messages';
|
|
4
|
+
import { type PartialResultParams, type StaticRegistrationOptions, type WorkDoneProgressParams, type TextDocumentRegistrationOptions, type WorkDoneProgressOptions, type DiagnosticsCapabilities } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* Client capabilities specific to diagnostic pull requests.
|
|
7
7
|
*
|
|
@@ -18,6 +18,12 @@ export type DiagnosticClientCapabilities = DiagnosticsCapabilities & {
|
|
|
18
18
|
* Whether the clients supports related documents for document diagnostic pulls.
|
|
19
19
|
*/
|
|
20
20
|
relatedDocumentSupport?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the client supports `MarkupContent` in diagnostic messages.
|
|
23
|
+
*
|
|
24
|
+
* @since 3.18.0
|
|
25
|
+
*/
|
|
26
|
+
markupMessageSupport?: boolean;
|
|
21
27
|
};
|
|
22
28
|
/**
|
|
23
29
|
* Workspace client capabilities specific to diagnostic pull requests.
|
|
@@ -218,17 +224,37 @@ export type DocumentDiagnosticReportPartialResult = {
|
|
|
218
224
|
[uri: DocumentUri]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport;
|
|
219
225
|
};
|
|
220
226
|
};
|
|
227
|
+
/**
|
|
228
|
+
* The document diagnostic report used when reporting partial result.
|
|
229
|
+
*
|
|
230
|
+
* When using partial results, the first literal sent needs to be a
|
|
231
|
+
* DocumentDiagnosticReport providing the diagnostics on the document
|
|
232
|
+
* followed by n DocumentDiagnosticReportPartialResult literals providing
|
|
233
|
+
* the diagnostics for related documents.
|
|
234
|
+
*
|
|
235
|
+
* ```
|
|
236
|
+
* DocumentDiagnosticReport
|
|
237
|
+
* DocumentDiagnosticReportPartialResult
|
|
238
|
+
* DocumentDiagnosticReportPartialResult
|
|
239
|
+
* ...
|
|
240
|
+
* ```
|
|
241
|
+
*
|
|
242
|
+
* @since 3.18.1
|
|
243
|
+
*/
|
|
244
|
+
export type DocumentDiagnosticReportProgress = DocumentDiagnosticReport | DocumentDiagnosticReportPartialResult;
|
|
221
245
|
/**
|
|
222
246
|
* The document diagnostic request definition.
|
|
223
247
|
*
|
|
248
|
+
*
|
|
224
249
|
* @since 3.17.0
|
|
225
250
|
*/
|
|
226
251
|
export declare namespace DocumentDiagnosticRequest {
|
|
227
252
|
const method: 'textDocument/diagnostic';
|
|
228
253
|
const messageDirection: MessageDirection;
|
|
229
|
-
const type: ProtocolRequestType<DocumentDiagnosticParams, DocumentDiagnosticReport,
|
|
230
|
-
const partialResult: ProgressType<
|
|
254
|
+
const type: ProtocolRequestType<DocumentDiagnosticParams, DocumentDiagnosticReport, DocumentDiagnosticReportProgress, DiagnosticServerCancellationData, DiagnosticRegistrationOptions>;
|
|
255
|
+
const partialResult: ProgressType<DocumentDiagnosticReportProgress>;
|
|
231
256
|
type HandlerSignature = RequestHandler<DocumentDiagnosticParams, DocumentDiagnosticReport, void>;
|
|
257
|
+
const capabilities: CM<"textDocument.diagnostic", "diagnosticProvider">;
|
|
232
258
|
}
|
|
233
259
|
/**
|
|
234
260
|
* A previous result id in a workspace pull request.
|
|
@@ -327,6 +353,7 @@ export declare namespace WorkspaceDiagnosticRequest {
|
|
|
327
353
|
const type: ProtocolRequestType<WorkspaceDiagnosticParams, WorkspaceDiagnosticReport, WorkspaceDiagnosticReportPartialResult, DiagnosticServerCancellationData, void>;
|
|
328
354
|
const partialResult: ProgressType<WorkspaceDiagnosticReportPartialResult>;
|
|
329
355
|
type HandlerSignature = RequestHandler<WorkspaceDiagnosticParams, WorkspaceDiagnosticReport | null, void>;
|
|
356
|
+
const capabilities: CM<"workspace.diagnostics", "diagnosticProvider.workspaceDiagnostics">;
|
|
330
357
|
}
|
|
331
358
|
/**
|
|
332
359
|
* The diagnostic refresh request definition.
|
|
@@ -338,4 +365,5 @@ export declare namespace DiagnosticRefreshRequest {
|
|
|
338
365
|
const messageDirection: MessageDirection;
|
|
339
366
|
const type: ProtocolRequestType0<void, void, void, void>;
|
|
340
367
|
type HandlerSignature = RequestHandler0<void, void>;
|
|
368
|
+
const capabilities: CM<"workspace.diagnostics.refreshSupport", undefined>;
|
|
341
369
|
}
|
|
@@ -19,13 +19,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
19
19
|
}) : function(o, v) {
|
|
20
20
|
o["default"] = v;
|
|
21
21
|
});
|
|
22
|
-
var __importStar = (this && this.__importStar) || function (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
22
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
+
var ownKeys = function(o) {
|
|
24
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
+
var ar = [];
|
|
26
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
return ownKeys(o);
|
|
30
|
+
};
|
|
31
|
+
return function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
29
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
40
|
exports.DiagnosticRefreshRequest = exports.WorkspaceDiagnosticRequest = exports.DocumentDiagnosticRequest = exports.DocumentDiagnosticReportKind = exports.DiagnosticServerCancellationData = void 0;
|
|
31
41
|
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
@@ -63,6 +73,7 @@ var DocumentDiagnosticReportKind;
|
|
|
63
73
|
/**
|
|
64
74
|
* The document diagnostic request definition.
|
|
65
75
|
*
|
|
76
|
+
*
|
|
66
77
|
* @since 3.17.0
|
|
67
78
|
*/
|
|
68
79
|
var DocumentDiagnosticRequest;
|
|
@@ -71,6 +82,7 @@ var DocumentDiagnosticRequest;
|
|
|
71
82
|
DocumentDiagnosticRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
72
83
|
DocumentDiagnosticRequest.type = new messages_1.ProtocolRequestType(DocumentDiagnosticRequest.method);
|
|
73
84
|
DocumentDiagnosticRequest.partialResult = new vscode_jsonrpc_1.ProgressType();
|
|
85
|
+
DocumentDiagnosticRequest.capabilities = messages_1.CM.create('textDocument.diagnostic', 'diagnosticProvider');
|
|
74
86
|
})(DocumentDiagnosticRequest || (exports.DocumentDiagnosticRequest = DocumentDiagnosticRequest = {}));
|
|
75
87
|
/**
|
|
76
88
|
* The workspace diagnostic request definition.
|
|
@@ -83,6 +95,7 @@ var WorkspaceDiagnosticRequest;
|
|
|
83
95
|
WorkspaceDiagnosticRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
84
96
|
WorkspaceDiagnosticRequest.type = new messages_1.ProtocolRequestType(WorkspaceDiagnosticRequest.method);
|
|
85
97
|
WorkspaceDiagnosticRequest.partialResult = new vscode_jsonrpc_1.ProgressType();
|
|
98
|
+
WorkspaceDiagnosticRequest.capabilities = messages_1.CM.create('workspace.diagnostics', 'diagnosticProvider.workspaceDiagnostics');
|
|
86
99
|
})(WorkspaceDiagnosticRequest || (exports.WorkspaceDiagnosticRequest = WorkspaceDiagnosticRequest = {}));
|
|
87
100
|
/**
|
|
88
101
|
* The diagnostic refresh request definition.
|
|
@@ -94,4 +107,5 @@ var DiagnosticRefreshRequest;
|
|
|
94
107
|
DiagnosticRefreshRequest.method = `workspace/diagnostic/refresh`;
|
|
95
108
|
DiagnosticRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
96
109
|
DiagnosticRefreshRequest.type = new messages_1.ProtocolRequestType0(DiagnosticRefreshRequest.method);
|
|
110
|
+
DiagnosticRefreshRequest.capabilities = messages_1.CM.create('workspace.diagnostics.refreshSupport', undefined);
|
|
97
111
|
})(DiagnosticRefreshRequest || (exports.DiagnosticRefreshRequest = DiagnosticRefreshRequest = {}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NotificationHandler, RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { WorkspaceEdit } from 'vscode-languageserver-types';
|
|
3
|
-
import { MessageDirection, ProtocolNotificationType, ProtocolRequestType } from './messages';
|
|
3
|
+
import { CM, MessageDirection, ProtocolNotificationType, ProtocolRequestType } from './messages';
|
|
4
4
|
/**
|
|
5
5
|
* Options for notifications/requests for user operations on files.
|
|
6
6
|
*
|
|
@@ -80,7 +80,7 @@ export interface FileOperationPatternOptions {
|
|
|
80
80
|
interface FileOperationPattern {
|
|
81
81
|
/**
|
|
82
82
|
* The glob pattern to match. Glob patterns can have the following syntax:
|
|
83
|
-
* - `*` to match
|
|
83
|
+
* - `*` to match zero or more characters in a path segment
|
|
84
84
|
* - `?` to match on one character in a path segment
|
|
85
85
|
* - `**` to match any number of path segments, including none
|
|
86
86
|
* - `{}` to group sub patterns into an OR expression. (e.g. `**/*.{ts,js}` matches all TypeScript and JavaScript files)
|
|
@@ -242,6 +242,7 @@ export declare namespace WillCreateFilesRequest {
|
|
|
242
242
|
const messageDirection: MessageDirection;
|
|
243
243
|
const type: ProtocolRequestType<CreateFilesParams, WorkspaceEdit | null, never, void, FileOperationRegistrationOptions>;
|
|
244
244
|
type HandlerSignature = RequestHandler<CreateFilesParams, WorkspaceEdit | undefined | null, void>;
|
|
245
|
+
const capabilities: CM<"workspace.fileOperations.willCreate", "workspace.fileOperations.willCreate">;
|
|
245
246
|
}
|
|
246
247
|
/**
|
|
247
248
|
* The did create files notification is sent from the client to the server when
|
|
@@ -254,6 +255,7 @@ export declare namespace DidCreateFilesNotification {
|
|
|
254
255
|
const messageDirection: MessageDirection;
|
|
255
256
|
const type: ProtocolNotificationType<CreateFilesParams, FileOperationRegistrationOptions>;
|
|
256
257
|
type HandlerSignature = NotificationHandler<CreateFilesParams>;
|
|
258
|
+
const capabilities: CM<"workspace.fileOperations.didCreate", "workspace.fileOperations.didCreate">;
|
|
257
259
|
}
|
|
258
260
|
/**
|
|
259
261
|
* The will rename files request is sent from the client to the server before files are actually
|
|
@@ -266,6 +268,7 @@ export declare namespace WillRenameFilesRequest {
|
|
|
266
268
|
const messageDirection: MessageDirection;
|
|
267
269
|
const type: ProtocolRequestType<RenameFilesParams, WorkspaceEdit | null, never, void, FileOperationRegistrationOptions>;
|
|
268
270
|
type HandlerSignature = RequestHandler<RenameFilesParams, WorkspaceEdit | undefined | null, void>;
|
|
271
|
+
const capabilities: CM<"workspace.fileOperations.willRename", "workspace.fileOperations.willRename">;
|
|
269
272
|
}
|
|
270
273
|
/**
|
|
271
274
|
* The did rename files notification is sent from the client to the server when
|
|
@@ -278,6 +281,7 @@ export declare namespace DidRenameFilesNotification {
|
|
|
278
281
|
const messageDirection: MessageDirection;
|
|
279
282
|
const type: ProtocolNotificationType<RenameFilesParams, FileOperationRegistrationOptions>;
|
|
280
283
|
type HandlerSignature = NotificationHandler<RenameFilesParams>;
|
|
284
|
+
const capabilities: CM<"workspace.fileOperations.didRename", "workspace.fileOperations.didRename">;
|
|
281
285
|
}
|
|
282
286
|
/**
|
|
283
287
|
* The will delete files request is sent from the client to the server before files are actually
|
|
@@ -290,6 +294,7 @@ export declare namespace DidDeleteFilesNotification {
|
|
|
290
294
|
const messageDirection: MessageDirection;
|
|
291
295
|
const type: ProtocolNotificationType<DeleteFilesParams, FileOperationRegistrationOptions>;
|
|
292
296
|
type HandlerSignature = NotificationHandler<DeleteFilesParams>;
|
|
297
|
+
const capabilities: CM<"workspace.fileOperations.didDelete", "workspace.fileOperations.didDelete">;
|
|
293
298
|
}
|
|
294
299
|
/**
|
|
295
300
|
* The did delete files notification is sent from the client to the server when
|
|
@@ -302,5 +307,6 @@ export declare namespace WillDeleteFilesRequest {
|
|
|
302
307
|
const messageDirection: MessageDirection;
|
|
303
308
|
const type: ProtocolRequestType<DeleteFilesParams, WorkspaceEdit | null, never, void, FileOperationRegistrationOptions>;
|
|
304
309
|
type HandlerSignature = RequestHandler<DeleteFilesParams, WorkspaceEdit | undefined | null, void>;
|
|
310
|
+
const capabilities: CM<"workspace.fileOperations.willDelete", "workspace.fileOperations.willDelete">;
|
|
305
311
|
}
|
|
306
312
|
export {};
|
|
@@ -38,6 +38,7 @@ var WillCreateFilesRequest;
|
|
|
38
38
|
WillCreateFilesRequest.method = 'workspace/willCreateFiles';
|
|
39
39
|
WillCreateFilesRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
40
40
|
WillCreateFilesRequest.type = new messages_1.ProtocolRequestType(WillCreateFilesRequest.method);
|
|
41
|
+
WillCreateFilesRequest.capabilities = messages_1.CM.create('workspace.fileOperations.willCreate', 'workspace.fileOperations.willCreate');
|
|
41
42
|
})(WillCreateFilesRequest || (exports.WillCreateFilesRequest = WillCreateFilesRequest = {}));
|
|
42
43
|
/**
|
|
43
44
|
* The did create files notification is sent from the client to the server when
|
|
@@ -50,6 +51,7 @@ var DidCreateFilesNotification;
|
|
|
50
51
|
DidCreateFilesNotification.method = 'workspace/didCreateFiles';
|
|
51
52
|
DidCreateFilesNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
52
53
|
DidCreateFilesNotification.type = new messages_1.ProtocolNotificationType(DidCreateFilesNotification.method);
|
|
54
|
+
DidCreateFilesNotification.capabilities = messages_1.CM.create('workspace.fileOperations.didCreate', 'workspace.fileOperations.didCreate');
|
|
53
55
|
})(DidCreateFilesNotification || (exports.DidCreateFilesNotification = DidCreateFilesNotification = {}));
|
|
54
56
|
/**
|
|
55
57
|
* The will rename files request is sent from the client to the server before files are actually
|
|
@@ -62,6 +64,7 @@ var WillRenameFilesRequest;
|
|
|
62
64
|
WillRenameFilesRequest.method = 'workspace/willRenameFiles';
|
|
63
65
|
WillRenameFilesRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
64
66
|
WillRenameFilesRequest.type = new messages_1.ProtocolRequestType(WillRenameFilesRequest.method);
|
|
67
|
+
WillRenameFilesRequest.capabilities = messages_1.CM.create('workspace.fileOperations.willRename', 'workspace.fileOperations.willRename');
|
|
65
68
|
})(WillRenameFilesRequest || (exports.WillRenameFilesRequest = WillRenameFilesRequest = {}));
|
|
66
69
|
/**
|
|
67
70
|
* The did rename files notification is sent from the client to the server when
|
|
@@ -74,6 +77,7 @@ var DidRenameFilesNotification;
|
|
|
74
77
|
DidRenameFilesNotification.method = 'workspace/didRenameFiles';
|
|
75
78
|
DidRenameFilesNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
76
79
|
DidRenameFilesNotification.type = new messages_1.ProtocolNotificationType(DidRenameFilesNotification.method);
|
|
80
|
+
DidRenameFilesNotification.capabilities = messages_1.CM.create('workspace.fileOperations.didRename', 'workspace.fileOperations.didRename');
|
|
77
81
|
})(DidRenameFilesNotification || (exports.DidRenameFilesNotification = DidRenameFilesNotification = {}));
|
|
78
82
|
/**
|
|
79
83
|
* The will delete files request is sent from the client to the server before files are actually
|
|
@@ -86,6 +90,7 @@ var DidDeleteFilesNotification;
|
|
|
86
90
|
DidDeleteFilesNotification.method = 'workspace/didDeleteFiles';
|
|
87
91
|
DidDeleteFilesNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
88
92
|
DidDeleteFilesNotification.type = new messages_1.ProtocolNotificationType(DidDeleteFilesNotification.method);
|
|
93
|
+
DidDeleteFilesNotification.capabilities = messages_1.CM.create('workspace.fileOperations.didDelete', 'workspace.fileOperations.didDelete');
|
|
89
94
|
})(DidDeleteFilesNotification || (exports.DidDeleteFilesNotification = DidDeleteFilesNotification = {}));
|
|
90
95
|
/**
|
|
91
96
|
* The did delete files notification is sent from the client to the server when
|
|
@@ -98,4 +103,5 @@ var WillDeleteFilesRequest;
|
|
|
98
103
|
WillDeleteFilesRequest.method = 'workspace/willDeleteFiles';
|
|
99
104
|
WillDeleteFilesRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
100
105
|
WillDeleteFilesRequest.type = new messages_1.ProtocolRequestType(WillDeleteFilesRequest.method);
|
|
106
|
+
WillDeleteFilesRequest.capabilities = messages_1.CM.create('workspace.fileOperations.willDelete', 'workspace.fileOperations.willDelete');
|
|
101
107
|
})(WillDeleteFilesRequest || (exports.WillDeleteFilesRequest = WillDeleteFilesRequest = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler, RequestHandler0 } from 'vscode-jsonrpc';
|
|
2
2
|
import { TextDocumentIdentifier, uinteger, FoldingRange, FoldingRangeKind } from 'vscode-languageserver-types';
|
|
3
|
-
import { MessageDirection, ProtocolRequestType, ProtocolRequestType0 } from './messages';
|
|
4
|
-
import type
|
|
3
|
+
import { CM, MessageDirection, ProtocolRequestType, ProtocolRequestType0 } from './messages';
|
|
4
|
+
import { type TextDocumentRegistrationOptions, type StaticRegistrationOptions, type PartialResultParams, type WorkDoneProgressParams, type WorkDoneProgressOptions } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* @since 3.18.0
|
|
7
7
|
*/
|
|
@@ -63,7 +63,6 @@ export interface FoldingRangeClientCapabilities {
|
|
|
63
63
|
* Client workspace capabilities specific to folding ranges
|
|
64
64
|
*
|
|
65
65
|
* @since 3.18.0
|
|
66
|
-
* @proposed
|
|
67
66
|
*/
|
|
68
67
|
export type FoldingRangeWorkspaceClientCapabilities = {
|
|
69
68
|
/**
|
|
@@ -76,7 +75,6 @@ export type FoldingRangeWorkspaceClientCapabilities = {
|
|
|
76
75
|
* change that requires such a calculation.
|
|
77
76
|
*
|
|
78
77
|
* @since 3.18.0
|
|
79
|
-
* @proposed
|
|
80
78
|
*/
|
|
81
79
|
refreshSupport?: boolean;
|
|
82
80
|
};
|
|
@@ -104,14 +102,17 @@ export declare namespace FoldingRangeRequest {
|
|
|
104
102
|
const messageDirection: MessageDirection;
|
|
105
103
|
const type: ProtocolRequestType<FoldingRangeParams, FoldingRange[] | null, FoldingRange[], void, FoldingRangeRegistrationOptions>;
|
|
106
104
|
type HandlerSignature = RequestHandler<FoldingRangeParams, FoldingRange[] | null, void>;
|
|
105
|
+
const capabilities: CM<"textDocument.foldingRange", "foldingRangeProvider">;
|
|
107
106
|
}
|
|
108
107
|
/**
|
|
108
|
+
* A request to refresh the folding ranges in a document.
|
|
109
|
+
*
|
|
109
110
|
* @since 3.18.0
|
|
110
|
-
* @proposed
|
|
111
111
|
*/
|
|
112
112
|
export declare namespace FoldingRangeRefreshRequest {
|
|
113
113
|
const method: `workspace/foldingRange/refresh`;
|
|
114
114
|
const messageDirection: MessageDirection;
|
|
115
115
|
const type: ProtocolRequestType0<void, void, void, void>;
|
|
116
116
|
type HandlerSignature = RequestHandler0<void, void>;
|
|
117
|
+
const capabilities: CM<"workspace.foldingRange.refreshSupport", undefined>;
|
|
117
118
|
}
|
|
@@ -17,14 +17,17 @@ var FoldingRangeRequest;
|
|
|
17
17
|
FoldingRangeRequest.method = 'textDocument/foldingRange';
|
|
18
18
|
FoldingRangeRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
19
19
|
FoldingRangeRequest.type = new messages_1.ProtocolRequestType(FoldingRangeRequest.method);
|
|
20
|
+
FoldingRangeRequest.capabilities = messages_1.CM.create('textDocument.foldingRange', 'foldingRangeProvider');
|
|
20
21
|
})(FoldingRangeRequest || (exports.FoldingRangeRequest = FoldingRangeRequest = {}));
|
|
21
22
|
/**
|
|
23
|
+
* A request to refresh the folding ranges in a document.
|
|
24
|
+
*
|
|
22
25
|
* @since 3.18.0
|
|
23
|
-
* @proposed
|
|
24
26
|
*/
|
|
25
27
|
var FoldingRangeRefreshRequest;
|
|
26
28
|
(function (FoldingRangeRefreshRequest) {
|
|
27
29
|
FoldingRangeRefreshRequest.method = `workspace/foldingRange/refresh`;
|
|
28
30
|
FoldingRangeRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
29
31
|
FoldingRangeRefreshRequest.type = new messages_1.ProtocolRequestType0(FoldingRangeRefreshRequest.method);
|
|
32
|
+
FoldingRangeRefreshRequest.capabilities = messages_1.CM.create('workspace.foldingRange.refreshSupport', undefined);
|
|
30
33
|
})(FoldingRangeRefreshRequest || (exports.FoldingRangeRefreshRequest = FoldingRangeRefreshRequest = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { Definition, DefinitionLink, Location, LocationLink } from 'vscode-languageserver-types';
|
|
3
|
-
import { MessageDirection, ProtocolRequestType } from './messages';
|
|
4
|
-
import type
|
|
3
|
+
import { CM, MessageDirection, ProtocolRequestType } from './messages';
|
|
4
|
+
import { type TextDocumentRegistrationOptions, type StaticRegistrationOptions, type TextDocumentPositionParams, type PartialResultParams, type WorkDoneProgressParams, type WorkDoneProgressOptions } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* @since 3.6.0
|
|
7
7
|
*/
|
|
@@ -35,4 +35,5 @@ export declare namespace ImplementationRequest {
|
|
|
35
35
|
const messageDirection: MessageDirection;
|
|
36
36
|
const type: ProtocolRequestType<ImplementationParams, Definition | LocationLink[] | null, Location[] | LocationLink[], void, ImplementationRegistrationOptions>;
|
|
37
37
|
type HandlerSignature = RequestHandler<ImplementationParams, Definition | DefinitionLink[] | null, void>;
|
|
38
|
+
const capabilities: CM<"textDocument.implementation", "implementationProvider">;
|
|
38
39
|
}
|
|
@@ -18,4 +18,5 @@ var ImplementationRequest;
|
|
|
18
18
|
ImplementationRequest.method = 'textDocument/implementation';
|
|
19
19
|
ImplementationRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
20
20
|
ImplementationRequest.type = new messages_1.ProtocolRequestType(ImplementationRequest.method);
|
|
21
|
+
ImplementationRequest.capabilities = messages_1.CM.create('textDocument.implementation', 'implementationProvider');
|
|
21
22
|
})(ImplementationRequest || (exports.ImplementationRequest = ImplementationRequest = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler, RequestHandler0 } from 'vscode-jsonrpc';
|
|
2
2
|
import { Range, TextDocumentIdentifier, InlayHint } from 'vscode-languageserver-types';
|
|
3
|
-
import { MessageDirection, ProtocolRequestType, ProtocolRequestType0 } from './messages';
|
|
4
|
-
import type
|
|
3
|
+
import { CM, MessageDirection, ProtocolRequestType, ProtocolRequestType0 } from './messages';
|
|
4
|
+
import { type StaticRegistrationOptions, type TextDocumentRegistrationOptions, type WorkDoneProgressOptions, type WorkDoneProgressParams } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* @since 3.18.0
|
|
7
7
|
*/
|
|
@@ -89,6 +89,7 @@ export declare namespace InlayHintRequest {
|
|
|
89
89
|
const messageDirection: MessageDirection;
|
|
90
90
|
const type: ProtocolRequestType<InlayHintParams, InlayHint[] | null, InlayHint[], void, InlayHintRegistrationOptions>;
|
|
91
91
|
type HandlerSignature = RequestHandler<InlayHintParams, InlayHint[] | null, void>;
|
|
92
|
+
const capabilities: CM<"textDocument.inlayHint", "inlayHintProvider">;
|
|
92
93
|
}
|
|
93
94
|
/**
|
|
94
95
|
* A request to resolve additional properties for an inlay hint.
|
|
@@ -102,6 +103,7 @@ export declare namespace InlayHintResolveRequest {
|
|
|
102
103
|
const messageDirection: MessageDirection;
|
|
103
104
|
const type: ProtocolRequestType<InlayHint, InlayHint, never, void, void>;
|
|
104
105
|
type HandlerSignature = RequestHandler<InlayHint, InlayHint, void>;
|
|
106
|
+
const capabilities: CM<"textDocument.inlayHint.resolveSupport", "inlayHintProvider.resolveProvider">;
|
|
105
107
|
}
|
|
106
108
|
/**
|
|
107
109
|
* @since 3.17.0
|
|
@@ -111,4 +113,5 @@ export declare namespace InlayHintRefreshRequest {
|
|
|
111
113
|
const messageDirection: MessageDirection;
|
|
112
114
|
const type: ProtocolRequestType0<void, void, void, void>;
|
|
113
115
|
type HandlerSignature = RequestHandler0<void, void>;
|
|
116
|
+
const capabilities: CM<"workspace.inlayHint.refreshSupport", undefined>;
|
|
114
117
|
}
|
|
@@ -18,6 +18,7 @@ var InlayHintRequest;
|
|
|
18
18
|
InlayHintRequest.method = 'textDocument/inlayHint';
|
|
19
19
|
InlayHintRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
20
20
|
InlayHintRequest.type = new messages_1.ProtocolRequestType(InlayHintRequest.method);
|
|
21
|
+
InlayHintRequest.capabilities = messages_1.CM.create('textDocument.inlayHint', 'inlayHintProvider');
|
|
21
22
|
})(InlayHintRequest || (exports.InlayHintRequest = InlayHintRequest = {}));
|
|
22
23
|
/**
|
|
23
24
|
* A request to resolve additional properties for an inlay hint.
|
|
@@ -31,6 +32,7 @@ var InlayHintResolveRequest;
|
|
|
31
32
|
InlayHintResolveRequest.method = 'inlayHint/resolve';
|
|
32
33
|
InlayHintResolveRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
33
34
|
InlayHintResolveRequest.type = new messages_1.ProtocolRequestType(InlayHintResolveRequest.method);
|
|
35
|
+
InlayHintResolveRequest.capabilities = messages_1.CM.create('textDocument.inlayHint.resolveSupport', 'inlayHintProvider.resolveProvider');
|
|
34
36
|
})(InlayHintResolveRequest || (exports.InlayHintResolveRequest = InlayHintResolveRequest = {}));
|
|
35
37
|
/**
|
|
36
38
|
* @since 3.17.0
|
|
@@ -40,4 +42,5 @@ var InlayHintRefreshRequest;
|
|
|
40
42
|
InlayHintRefreshRequest.method = `workspace/inlayHint/refresh`;
|
|
41
43
|
InlayHintRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
42
44
|
InlayHintRefreshRequest.type = new messages_1.ProtocolRequestType0(InlayHintRefreshRequest.method);
|
|
45
|
+
InlayHintRefreshRequest.capabilities = messages_1.CM.create('workspace.inlayHint.refreshSupport', undefined);
|
|
43
46
|
})(InlayHintRefreshRequest || (exports.InlayHintRefreshRequest = InlayHintRefreshRequest = {}));
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { InlineCompletionItem, InlineCompletionContext, InlineCompletionList } from 'vscode-languageserver-types';
|
|
2
2
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
3
|
-
import { MessageDirection, ProtocolRequestType } from './messages';
|
|
4
|
-
import type
|
|
3
|
+
import { CM, MessageDirection, ProtocolRequestType } from './messages';
|
|
4
|
+
import { type TextDocumentRegistrationOptions, type WorkDoneProgressOptions, type StaticRegistrationOptions, type WorkDoneProgressParams, type TextDocumentPositionParams } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* Client capabilities specific to inline completions.
|
|
7
7
|
*
|
|
8
8
|
* @since 3.18.0
|
|
9
|
-
* @proposed
|
|
10
9
|
*/
|
|
11
10
|
export type InlineCompletionClientCapabilities = {
|
|
12
11
|
/**
|
|
@@ -18,21 +17,18 @@ export type InlineCompletionClientCapabilities = {
|
|
|
18
17
|
* Inline completion options used during static registration.
|
|
19
18
|
*
|
|
20
19
|
* @since 3.18.0
|
|
21
|
-
* @proposed
|
|
22
20
|
*/
|
|
23
21
|
export type InlineCompletionOptions = WorkDoneProgressOptions;
|
|
24
22
|
/**
|
|
25
23
|
* Inline completion options used during static or dynamic registration.
|
|
26
24
|
*
|
|
27
25
|
* @since 3.18.0
|
|
28
|
-
* @proposed
|
|
29
26
|
*/
|
|
30
27
|
export type InlineCompletionRegistrationOptions = InlineCompletionOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions;
|
|
31
28
|
/**
|
|
32
29
|
* A parameter literal used in inline completion requests.
|
|
33
30
|
*
|
|
34
31
|
* @since 3.18.0
|
|
35
|
-
* @proposed
|
|
36
32
|
*/
|
|
37
33
|
export type InlineCompletionParams = WorkDoneProgressParams & TextDocumentPositionParams & {
|
|
38
34
|
/**
|
|
@@ -47,11 +43,11 @@ export type InlineCompletionParams = WorkDoneProgressParams & TextDocumentPositi
|
|
|
47
43
|
* {@link InlineCompletion InlineCompletion[]} or a Thenable that resolves to such.
|
|
48
44
|
*
|
|
49
45
|
* @since 3.18.0
|
|
50
|
-
* @proposed
|
|
51
46
|
*/
|
|
52
47
|
export declare namespace InlineCompletionRequest {
|
|
53
48
|
const method: 'textDocument/inlineCompletion';
|
|
54
49
|
const messageDirection: MessageDirection;
|
|
55
50
|
const type: ProtocolRequestType<InlineCompletionParams, InlineCompletionList | InlineCompletionItem[] | null, InlineCompletionItem[], void, InlineCompletionRegistrationOptions>;
|
|
56
51
|
type HandlerSignature = RequestHandler<InlineCompletionParams, InlineCompletionList | InlineCompletionItem[] | null, void>;
|
|
52
|
+
const capabilities: CM<"textDocument.inlineCompletion", "inlineCompletionProvider">;
|
|
57
53
|
}
|
|
@@ -12,11 +12,11 @@ const messages_1 = require("./messages");
|
|
|
12
12
|
* {@link InlineCompletion InlineCompletion[]} or a Thenable that resolves to such.
|
|
13
13
|
*
|
|
14
14
|
* @since 3.18.0
|
|
15
|
-
* @proposed
|
|
16
15
|
*/
|
|
17
16
|
var InlineCompletionRequest;
|
|
18
17
|
(function (InlineCompletionRequest) {
|
|
19
18
|
InlineCompletionRequest.method = 'textDocument/inlineCompletion';
|
|
20
19
|
InlineCompletionRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
21
20
|
InlineCompletionRequest.type = new messages_1.ProtocolRequestType(InlineCompletionRequest.method);
|
|
21
|
+
InlineCompletionRequest.capabilities = messages_1.CM.create('textDocument.inlineCompletion', 'inlineCompletionProvider');
|
|
22
22
|
})(InlineCompletionRequest || (exports.InlineCompletionRequest = InlineCompletionRequest = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TextDocumentIdentifier, Range, InlineValue, InlineValueContext } from 'vscode-languageserver-types';
|
|
2
2
|
import { RequestHandler, RequestHandler0 } from 'vscode-jsonrpc';
|
|
3
|
-
import { MessageDirection, ProtocolRequestType, ProtocolRequestType0 } from './messages';
|
|
4
|
-
import type
|
|
3
|
+
import { CM, MessageDirection, ProtocolRequestType, ProtocolRequestType0 } from './messages';
|
|
4
|
+
import { type TextDocumentRegistrationOptions, type WorkDoneProgressOptions, type StaticRegistrationOptions, type WorkDoneProgressParams } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* Client capabilities specific to inline values.
|
|
7
7
|
*
|
|
@@ -53,11 +53,11 @@ export type InlineValueParams = WorkDoneProgressParams & {
|
|
|
53
53
|
*/
|
|
54
54
|
textDocument: TextDocumentIdentifier;
|
|
55
55
|
/**
|
|
56
|
-
* The document range for which inline values
|
|
56
|
+
* The document range for which inline values information will be returned.
|
|
57
57
|
*/
|
|
58
58
|
range: Range;
|
|
59
59
|
/**
|
|
60
|
-
* Additional information about the context in which inline values
|
|
60
|
+
* Additional information about the context in which inline values information was
|
|
61
61
|
* requested.
|
|
62
62
|
*/
|
|
63
63
|
context: InlineValueContext;
|
|
@@ -74,6 +74,7 @@ export declare namespace InlineValueRequest {
|
|
|
74
74
|
const messageDirection: MessageDirection;
|
|
75
75
|
const type: ProtocolRequestType<InlineValueParams, InlineValue[] | null, InlineValue[], void, InlineValueRegistrationOptions>;
|
|
76
76
|
type HandlerSignature = RequestHandler<InlineValueParams, InlineValue[] | null, void>;
|
|
77
|
+
const capabilities: CM<"textDocument.inlineValue", "inlineValueProvider">;
|
|
77
78
|
}
|
|
78
79
|
/**
|
|
79
80
|
* @since 3.17.0
|
|
@@ -83,4 +84,5 @@ export declare namespace InlineValueRefreshRequest {
|
|
|
83
84
|
const messageDirection: MessageDirection;
|
|
84
85
|
const type: ProtocolRequestType0<void, void, void, void>;
|
|
85
86
|
type HandlerSignature = RequestHandler0<void, void>;
|
|
87
|
+
const capabilities: CM<"workspace.inlineValue.refreshSupport", undefined>;
|
|
86
88
|
}
|
|
@@ -18,6 +18,7 @@ var InlineValueRequest;
|
|
|
18
18
|
InlineValueRequest.method = 'textDocument/inlineValue';
|
|
19
19
|
InlineValueRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
20
20
|
InlineValueRequest.type = new messages_1.ProtocolRequestType(InlineValueRequest.method);
|
|
21
|
+
InlineValueRequest.capabilities = messages_1.CM.create('textDocument.inlineValue', 'inlineValueProvider');
|
|
21
22
|
})(InlineValueRequest || (exports.InlineValueRequest = InlineValueRequest = {}));
|
|
22
23
|
/**
|
|
23
24
|
* @since 3.17.0
|
|
@@ -27,4 +28,5 @@ var InlineValueRefreshRequest;
|
|
|
27
28
|
InlineValueRefreshRequest.method = `workspace/inlineValue/refresh`;
|
|
28
29
|
InlineValueRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
29
30
|
InlineValueRefreshRequest.type = new messages_1.ProtocolRequestType0(InlineValueRefreshRequest.method);
|
|
31
|
+
InlineValueRefreshRequest.capabilities = messages_1.CM.create('workspace.inlineValue.refreshSupport', undefined);
|
|
30
32
|
})(InlineValueRefreshRequest || (exports.InlineValueRefreshRequest = InlineValueRefreshRequest = {}));
|