vscode-languageserver-protocol 3.17.6-next.11 → 3.17.6-next.13
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/lib/browser/main.js +1 -2
- 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 +3 -2
- package/lib/common/protocol.callHierarchy.js +1 -0
- package/lib/common/protocol.colorProvider.d.ts +3 -2
- package/lib/common/protocol.colorProvider.js +1 -0
- package/lib/common/protocol.configuration.d.ts +2 -1
- package/lib/common/protocol.configuration.js +1 -0
- package/lib/common/protocol.d.ts +92 -6
- package/lib/common/protocol.declaration.d.ts +3 -2
- package/lib/common/protocol.declaration.js +1 -0
- package/lib/common/protocol.diagnostic.d.ts +5 -2
- package/lib/common/protocol.diagnostic.js +20 -7
- package/lib/common/protocol.fileOperations.d.ts +7 -1
- package/lib/common/protocol.fileOperations.js +6 -0
- package/lib/common/protocol.foldingRange.d.ts +4 -2
- package/lib/common/protocol.foldingRange.js +2 -0
- 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 -2
- package/lib/common/protocol.inlineCompletion.js +1 -0
- package/lib/common/protocol.inlineValue.d.ts +4 -2
- package/lib/common/protocol.inlineValue.js +2 -0
- package/lib/common/protocol.js +53 -7
- 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 +3 -2
- package/lib/common/protocol.textDocumentContent.js +1 -0
- 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 +17 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# VSCode Language Server - Protocol Module
|
|
2
2
|
|
|
3
|
-
[](https://npmjs.org/package/vscode-
|
|
4
|
-
[](https://npmjs.org/package/vscode-
|
|
5
|
-
[](https://npmjs.org/package/vscode-languageserver-protocol)
|
|
4
|
+
[](https://npmjs.org/package/vscode-languageserver-protocol)
|
|
5
|
+
[](https://dev.azure.com/vscode/vscode-languageserver-node/_build/latest?definitionId=52&branchName=main)
|
|
6
6
|
|
|
7
7
|
This npm module is a tool independent implementation of the language server protocol and can be used in any type of node application. Please note that the protocol is versioned using the LSP specification version number. Since the protocol depends on the `vscode-jsonrpc` version a a breaking change on that dependencies might not be reflected in a major version change of this module. Changing the major version number in these cases was more confusing this it would result in a version mismatch between the protocol and the LSP specification.
|
|
8
8
|
|
package/lib/browser/main.js
CHANGED
|
@@ -18,11 +18,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.createProtocolConnection =
|
|
21
|
+
exports.createProtocolConnection = createProtocolConnection;
|
|
22
22
|
const browser_1 = require("vscode-jsonrpc/browser");
|
|
23
23
|
__exportStar(require("vscode-jsonrpc/browser"), exports);
|
|
24
24
|
__exportStar(require("../common/api"), exports);
|
|
25
25
|
function createProtocolConnection(reader, writer, logger, options) {
|
|
26
26
|
return (0, browser_1.createMessageConnection)(reader, writer, logger, options);
|
|
27
27
|
}
|
|
28
|
-
exports.createProtocolConnection = createProtocolConnection;
|
package/lib/common/connection.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
5
|
* ------------------------------------------------------------------------------------------ */
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.createProtocolConnection =
|
|
7
|
+
exports.createProtocolConnection = createProtocolConnection;
|
|
8
8
|
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
9
9
|
function createProtocolConnection(input, output, logger, options) {
|
|
10
10
|
if (vscode_jsonrpc_1.ConnectionStrategy.is(options)) {
|
|
@@ -12,4 +12,3 @@ function createProtocolConnection(input, output, logger, options) {
|
|
|
12
12
|
}
|
|
13
13
|
return (0, vscode_jsonrpc_1.createMessageConnection)(input, output, logger, options);
|
|
14
14
|
}
|
|
15
|
-
exports.createProtocolConnection = createProtocolConnection;
|
package/lib/common/messages.d.ts
CHANGED
|
@@ -49,3 +49,10 @@ export declare class ProtocolNotificationType<P, RO> extends NotificationType<P>
|
|
|
49
49
|
readonly ____: [RO, _EM] | undefined;
|
|
50
50
|
constructor(method: string);
|
|
51
51
|
}
|
|
52
|
+
export type CM<C extends string | undefined, S extends string | undefined> = {
|
|
53
|
+
client: C;
|
|
54
|
+
server: S;
|
|
55
|
+
};
|
|
56
|
+
export declare namespace CM {
|
|
57
|
+
function create<C extends string | undefined, S extends string | undefined>(client: C, server: S): CM<C, S>;
|
|
58
|
+
}
|
package/lib/common/messages.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
5
|
* ------------------------------------------------------------------------------------------ */
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.ProtocolNotificationType = exports.ProtocolNotificationType0 = exports.ProtocolRequestType = exports.ProtocolRequestType0 = exports.RegistrationType = exports.MessageDirection = void 0;
|
|
7
|
+
exports.CM = exports.ProtocolNotificationType = exports.ProtocolNotificationType0 = exports.ProtocolRequestType = exports.ProtocolRequestType0 = exports.RegistrationType = exports.MessageDirection = void 0;
|
|
8
8
|
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
9
9
|
var MessageDirection;
|
|
10
10
|
(function (MessageDirection) {
|
|
@@ -72,3 +72,10 @@ class ProtocolNotificationType extends vscode_jsonrpc_1.NotificationType {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
exports.ProtocolNotificationType = ProtocolNotificationType;
|
|
75
|
+
var CM;
|
|
76
|
+
(function (CM) {
|
|
77
|
+
function create(client, server) {
|
|
78
|
+
return { client, server };
|
|
79
|
+
}
|
|
80
|
+
CM.create = create;
|
|
81
|
+
})(CM || (exports.CM = CM = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall } 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.16.0
|
|
7
7
|
*/
|
|
@@ -45,6 +45,7 @@ export declare namespace CallHierarchyPrepareRequest {
|
|
|
45
45
|
const messageDirection: MessageDirection;
|
|
46
46
|
const type: ProtocolRequestType<CallHierarchyPrepareParams, CallHierarchyItem[] | null, never, void, CallHierarchyRegistrationOptions>;
|
|
47
47
|
type HandlerSignature = RequestHandler<CallHierarchyPrepareParams, CallHierarchyItem[] | null, void>;
|
|
48
|
+
const capabilities: CM<"textDocument.callHierarchy", "callHierarchyProvider">;
|
|
48
49
|
}
|
|
49
50
|
/**
|
|
50
51
|
* The parameter of a `callHierarchy/incomingCalls` request.
|
|
@@ -17,6 +17,7 @@ var CallHierarchyPrepareRequest;
|
|
|
17
17
|
CallHierarchyPrepareRequest.method = 'textDocument/prepareCallHierarchy';
|
|
18
18
|
CallHierarchyPrepareRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
19
19
|
CallHierarchyPrepareRequest.type = new messages_1.ProtocolRequestType(CallHierarchyPrepareRequest.method);
|
|
20
|
+
CallHierarchyPrepareRequest.capabilities = messages_1.CM.create('textDocument.callHierarchy', 'callHierarchyProvider');
|
|
20
21
|
})(CallHierarchyPrepareRequest || (exports.CallHierarchyPrepareRequest = CallHierarchyPrepareRequest = {}));
|
|
21
22
|
/**
|
|
22
23
|
* A request to resolve the incoming calls for a given `CallHierarchyItem`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { TextDocumentIdentifier, Range, Color, ColorInformation, ColorPresentation } 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 PartialResultParams, type WorkDoneProgressParams, type WorkDoneProgressOptions } from './protocol';
|
|
5
5
|
export interface DocumentColorClientCapabilities {
|
|
6
6
|
/**
|
|
7
7
|
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
@@ -34,6 +34,7 @@ export declare namespace DocumentColorRequest {
|
|
|
34
34
|
const messageDirection: MessageDirection;
|
|
35
35
|
const type: ProtocolRequestType<DocumentColorParams, ColorInformation[], ColorInformation[], void, DocumentColorRegistrationOptions>;
|
|
36
36
|
type HandlerSignature = RequestHandler<DocumentColorParams, ColorInformation[], void>;
|
|
37
|
+
const capabilities: CM<"textDocument.colorProvider", "colorProvider">;
|
|
37
38
|
}
|
|
38
39
|
/**
|
|
39
40
|
* Parameters for a {@link ColorPresentationRequest}.
|
|
@@ -17,6 +17,7 @@ var DocumentColorRequest;
|
|
|
17
17
|
DocumentColorRequest.method = 'textDocument/documentColor';
|
|
18
18
|
DocumentColorRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
19
19
|
DocumentColorRequest.type = new messages_1.ProtocolRequestType(DocumentColorRequest.method);
|
|
20
|
+
DocumentColorRequest.capabilities = messages_1.CM.create('textDocument.colorProvider', 'colorProvider');
|
|
20
21
|
})(DocumentColorRequest || (exports.DocumentColorRequest = DocumentColorRequest = {}));
|
|
21
22
|
/**
|
|
22
23
|
* A request to list all presentation for a color. The request's
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RequestHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
|
|
2
2
|
import { LSPAny, URI } from 'vscode-languageserver-types';
|
|
3
|
-
import { MessageDirection, ProtocolRequestType } from './messages';
|
|
3
|
+
import { CM, MessageDirection, ProtocolRequestType } from './messages';
|
|
4
4
|
/**
|
|
5
5
|
* The 'workspace/configuration' request is sent from the server to the client to fetch a certain
|
|
6
6
|
* configuration setting.
|
|
@@ -16,6 +16,7 @@ export declare namespace ConfigurationRequest {
|
|
|
16
16
|
const type: ProtocolRequestType<ConfigurationParams, any[], never, void, void>;
|
|
17
17
|
type HandlerSignature = RequestHandler<ConfigurationParams, LSPAny[], void>;
|
|
18
18
|
type MiddlewareSignature = (params: ConfigurationParams, token: CancellationToken, next: HandlerSignature) => HandlerResult<LSPAny[], void>;
|
|
19
|
+
const capabilities: CM<"workspace.configuration", undefined>;
|
|
19
20
|
}
|
|
20
21
|
export interface ConfigurationItem {
|
|
21
22
|
/**
|
|
@@ -21,4 +21,5 @@ var ConfigurationRequest;
|
|
|
21
21
|
ConfigurationRequest.method = 'workspace/configuration';
|
|
22
22
|
ConfigurationRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
23
23
|
ConfigurationRequest.type = new messages_1.ProtocolRequestType(ConfigurationRequest.method);
|
|
24
|
+
ConfigurationRequest.capabilities = messages_1.CM.create('workspace.configuration', undefined);
|
|
24
25
|
})(ConfigurationRequest || (exports.ConfigurationRequest = ConfigurationRequest = {}));
|
package/lib/common/protocol.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProgressToken, RequestHandler, TraceValue } from 'vscode-jsonrpc';
|
|
2
|
-
import { MessageDirection, ProtocolRequestType, ProtocolRequestType0, ProtocolNotificationType, ProtocolNotificationType0 } from './messages';
|
|
3
|
-
import { Position, Range, Location, LocationLink, Diagnostic, Command, TextEdit, WorkspaceEdit, WorkspaceEditMetadata, DocumentUri, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, CompletionItem, CompletionList, Hover, SignatureHelp, Definition, ReferenceContext, DocumentHighlight, SymbolInformation, CodeLens, CodeActionContext, FormattingOptions, DocumentLink, MarkupKind, SymbolKind, CompletionItemKind, CodeAction, CodeActionKind, DocumentSymbol, CompletionItemTag, DiagnosticTag, SymbolTag, uinteger, integer, InsertTextMode, LSPAny, WorkspaceSymbol, URI, WorkspaceFolder } from 'vscode-languageserver-types';
|
|
2
|
+
import { MessageDirection, ProtocolRequestType, ProtocolRequestType0, ProtocolNotificationType, ProtocolNotificationType0, CM } from './messages';
|
|
3
|
+
import { Position, Range, Location, LocationLink, Diagnostic, Command, TextEdit, WorkspaceEdit, WorkspaceEditMetadata, DocumentUri, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, CompletionItem, CompletionList, Hover, SignatureHelp, Definition, ReferenceContext, DocumentHighlight, SymbolInformation, CodeLens, CodeActionContext, FormattingOptions, DocumentLink, MarkupKind, SymbolKind, CompletionItemKind, CodeAction, CodeActionKind, DocumentSymbol, CompletionItemTag, DiagnosticTag, SymbolTag, uinteger, integer, InsertTextMode, LSPAny, WorkspaceSymbol, URI, WorkspaceFolder, CodeActionTag } from 'vscode-languageserver-types';
|
|
4
4
|
import { ImplementationRequest, ImplementationClientCapabilities, ImplementationOptions, ImplementationRegistrationOptions, ImplementationParams } from './protocol.implementation';
|
|
5
5
|
import { TypeDefinitionRequest, TypeDefinitionClientCapabilities, TypeDefinitionOptions, TypeDefinitionRegistrationOptions, TypeDefinitionParams } from './protocol.typeDefinition';
|
|
6
6
|
import { WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFoldersChangeEvent, WorkspaceFoldersInitializeParams, WorkspaceFoldersServerCapabilities } from './protocol.workspaceFolder';
|
|
@@ -40,7 +40,9 @@ export type TextDocumentFilterLanguage = {
|
|
|
40
40
|
/**
|
|
41
41
|
* A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples.
|
|
42
42
|
*
|
|
43
|
-
* @since 3.18.0 - support for relative patterns.
|
|
43
|
+
* @since 3.18.0 - support for relative patterns. Whether clients support
|
|
44
|
+
* relative patterns depends on the client capability
|
|
45
|
+
* `textDocuments.filters.relativePatternSupport`.
|
|
44
46
|
*/
|
|
45
47
|
pattern?: GlobPattern;
|
|
46
48
|
};
|
|
@@ -61,7 +63,9 @@ export type TextDocumentFilterScheme = {
|
|
|
61
63
|
/**
|
|
62
64
|
* A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples.
|
|
63
65
|
*
|
|
64
|
-
* @since 3.18.0 - support for relative patterns.
|
|
66
|
+
* @since 3.18.0 - support for relative patterns. Whether clients support
|
|
67
|
+
* relative patterns depends on the client capability
|
|
68
|
+
* `textDocuments.filters.relativePatternSupport`.
|
|
65
69
|
*/
|
|
66
70
|
pattern?: GlobPattern;
|
|
67
71
|
};
|
|
@@ -82,7 +86,9 @@ export type TextDocumentFilterPattern = {
|
|
|
82
86
|
/**
|
|
83
87
|
* A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples.
|
|
84
88
|
*
|
|
85
|
-
* @since 3.18.0 - support for relative patterns.
|
|
89
|
+
* @since 3.18.0 - support for relative patterns. Whether clients support
|
|
90
|
+
* relative patterns depends on the client capability
|
|
91
|
+
* `textDocuments.filters.relativePatternSupport`.
|
|
86
92
|
*/
|
|
87
93
|
pattern: GlobPattern;
|
|
88
94
|
};
|
|
@@ -223,7 +229,7 @@ export declare namespace NotebookCellTextDocumentFilter {
|
|
|
223
229
|
* A document filter describes a top level text document or
|
|
224
230
|
* a notebook cell document.
|
|
225
231
|
*
|
|
226
|
-
* @since 3.17.0 -
|
|
232
|
+
* @since 3.17.0 - support for NotebookCellTextDocumentFilter.
|
|
227
233
|
*/
|
|
228
234
|
export type DocumentFilter = TextDocumentFilter | NotebookCellTextDocumentFilter;
|
|
229
235
|
/**
|
|
@@ -474,6 +480,12 @@ export interface TextDocumentClientCapabilities {
|
|
|
474
480
|
* Defines which synchronization capabilities the client supports.
|
|
475
481
|
*/
|
|
476
482
|
synchronization?: TextDocumentSyncClientCapabilities;
|
|
483
|
+
/**
|
|
484
|
+
* Defines which filters the client supports.
|
|
485
|
+
*
|
|
486
|
+
* @since 3.18.0
|
|
487
|
+
*/
|
|
488
|
+
filters?: TextDocumentFilterClientCapabilities;
|
|
477
489
|
/**
|
|
478
490
|
* Capabilities specific to the `textDocument/completion` request.
|
|
479
491
|
*/
|
|
@@ -1307,6 +1319,7 @@ export declare namespace DidChangeConfigurationNotification {
|
|
|
1307
1319
|
const method: 'workspace/didChangeConfiguration';
|
|
1308
1320
|
const messageDirection: MessageDirection;
|
|
1309
1321
|
const type: ProtocolNotificationType<DidChangeConfigurationParams, DidChangeConfigurationRegistrationOptions>;
|
|
1322
|
+
const capabilities: CM<"workspace.didChangeConfiguration", undefined>;
|
|
1310
1323
|
}
|
|
1311
1324
|
export interface DidChangeConfigurationRegistrationOptions {
|
|
1312
1325
|
section?: string | string[];
|
|
@@ -1370,6 +1383,7 @@ export declare namespace ShowMessageNotification {
|
|
|
1370
1383
|
const method: 'window/showMessage';
|
|
1371
1384
|
const messageDirection: MessageDirection;
|
|
1372
1385
|
const type: ProtocolNotificationType<ShowMessageParams, void>;
|
|
1386
|
+
const capabilities: CM<"window.showMessage", undefined>;
|
|
1373
1387
|
}
|
|
1374
1388
|
/**
|
|
1375
1389
|
* @since 3.18.0
|
|
@@ -1425,6 +1439,7 @@ export declare namespace ShowMessageRequest {
|
|
|
1425
1439
|
const method: 'window/showMessageRequest';
|
|
1426
1440
|
const messageDirection: MessageDirection;
|
|
1427
1441
|
const type: ProtocolRequestType<ShowMessageRequestParams, MessageActionItem | null, never, void, void>;
|
|
1442
|
+
const capabilities: CM<"window.showMessage", undefined>;
|
|
1428
1443
|
}
|
|
1429
1444
|
/**
|
|
1430
1445
|
* The log message notification is sent from the server to the client to ask
|
|
@@ -1457,6 +1472,14 @@ export declare namespace TelemetryEventNotification {
|
|
|
1457
1472
|
const messageDirection: MessageDirection;
|
|
1458
1473
|
const type: ProtocolNotificationType<any, void>;
|
|
1459
1474
|
}
|
|
1475
|
+
export interface TextDocumentFilterClientCapabilities {
|
|
1476
|
+
/**
|
|
1477
|
+
* The client supports Relative Patterns.
|
|
1478
|
+
*
|
|
1479
|
+
* @since 3.18.0
|
|
1480
|
+
*/
|
|
1481
|
+
relativePatternSupport?: boolean;
|
|
1482
|
+
}
|
|
1460
1483
|
export interface TextDocumentSyncClientCapabilities {
|
|
1461
1484
|
/**
|
|
1462
1485
|
* Whether text document synchronization supports dynamic registration.
|
|
@@ -1549,6 +1572,7 @@ export declare namespace DidOpenTextDocumentNotification {
|
|
|
1549
1572
|
const method: 'textDocument/didOpen';
|
|
1550
1573
|
const messageDirection: MessageDirection;
|
|
1551
1574
|
const type: ProtocolNotificationType<DidOpenTextDocumentParams, TextDocumentRegistrationOptions>;
|
|
1575
|
+
const capabilities: CM<"textDocument.synchronization", "textDocumentSync.openClose">;
|
|
1552
1576
|
}
|
|
1553
1577
|
/**
|
|
1554
1578
|
* @since 3.18.0
|
|
@@ -1641,6 +1665,7 @@ export declare namespace DidChangeTextDocumentNotification {
|
|
|
1641
1665
|
const method: 'textDocument/didChange';
|
|
1642
1666
|
const messageDirection: MessageDirection;
|
|
1643
1667
|
const type: ProtocolNotificationType<DidChangeTextDocumentParams, TextDocumentChangeRegistrationOptions>;
|
|
1668
|
+
const capabilities: CM<"textDocument.synchronization", "textDocumentSync">;
|
|
1644
1669
|
}
|
|
1645
1670
|
/**
|
|
1646
1671
|
* The parameters sent in a close text document notification
|
|
@@ -1664,6 +1689,7 @@ export declare namespace DidCloseTextDocumentNotification {
|
|
|
1664
1689
|
const method: 'textDocument/didClose';
|
|
1665
1690
|
const messageDirection: MessageDirection;
|
|
1666
1691
|
const type: ProtocolNotificationType<DidCloseTextDocumentParams, TextDocumentRegistrationOptions>;
|
|
1692
|
+
const capabilities: CM<"textDocument.synchronization", "textDocumentSync.openClose">;
|
|
1667
1693
|
}
|
|
1668
1694
|
/**
|
|
1669
1695
|
* The parameters sent in a save text document notification
|
|
@@ -1692,6 +1718,7 @@ export declare namespace DidSaveTextDocumentNotification {
|
|
|
1692
1718
|
const method: 'textDocument/didSave';
|
|
1693
1719
|
const messageDirection: MessageDirection;
|
|
1694
1720
|
const type: ProtocolNotificationType<DidSaveTextDocumentParams, TextDocumentSaveRegistrationOptions>;
|
|
1721
|
+
const capabilities: CM<"textDocument.synchronization.didSave", "textDocumentSync.save">;
|
|
1695
1722
|
}
|
|
1696
1723
|
/**
|
|
1697
1724
|
* Represents reasons why a text document is saved.
|
|
@@ -1733,6 +1760,7 @@ export declare namespace WillSaveTextDocumentNotification {
|
|
|
1733
1760
|
const method: 'textDocument/willSave';
|
|
1734
1761
|
const messageDirection: MessageDirection;
|
|
1735
1762
|
const type: ProtocolNotificationType<WillSaveTextDocumentParams, TextDocumentRegistrationOptions>;
|
|
1763
|
+
const capabilities: CM<"textDocument.synchronization.willSave", "textDocumentSync.willSave">;
|
|
1736
1764
|
}
|
|
1737
1765
|
/**
|
|
1738
1766
|
* A document will save request is sent from the client to the server before
|
|
@@ -1746,6 +1774,7 @@ export declare namespace WillSaveTextDocumentWaitUntilRequest {
|
|
|
1746
1774
|
const method: 'textDocument/willSaveWaitUntil';
|
|
1747
1775
|
const messageDirection: MessageDirection;
|
|
1748
1776
|
const type: ProtocolRequestType<WillSaveTextDocumentParams, TextEdit[] | null, never, void, TextDocumentRegistrationOptions>;
|
|
1777
|
+
const capabilities: CM<"textDocument.synchronization.willSaveWaitUntil", "textDocumentSync.willSaveWaitUntil">;
|
|
1749
1778
|
}
|
|
1750
1779
|
export interface DidChangeWatchedFilesClientCapabilities {
|
|
1751
1780
|
/**
|
|
@@ -1770,6 +1799,7 @@ export declare namespace DidChangeWatchedFilesNotification {
|
|
|
1770
1799
|
const method: 'workspace/didChangeWatchedFiles';
|
|
1771
1800
|
const messageDirection: MessageDirection;
|
|
1772
1801
|
const type: ProtocolNotificationType<DidChangeWatchedFilesParams, DidChangeWatchedFilesRegistrationOptions>;
|
|
1802
|
+
const capabilities: CM<"workspace.didChangeWatchedFiles", undefined>;
|
|
1773
1803
|
}
|
|
1774
1804
|
/**
|
|
1775
1805
|
* The watched files change notification's parameters.
|
|
@@ -1969,6 +1999,7 @@ export declare namespace PublishDiagnosticsNotification {
|
|
|
1969
1999
|
const method: 'textDocument/publishDiagnostics';
|
|
1970
2000
|
const messageDirection: MessageDirection;
|
|
1971
2001
|
const type: ProtocolNotificationType<PublishDiagnosticsParams, void>;
|
|
2002
|
+
const capabilities: CM<"textDocument.publishDiagnostics", undefined>;
|
|
1972
2003
|
}
|
|
1973
2004
|
/**
|
|
1974
2005
|
* The client supports the following `CompletionList` specific
|
|
@@ -1988,6 +2019,20 @@ export interface CompletionListCapabilities {
|
|
|
1988
2019
|
* @since 3.17.0
|
|
1989
2020
|
*/
|
|
1990
2021
|
itemDefaults?: string[];
|
|
2022
|
+
/**
|
|
2023
|
+
* Specifies whether the client supports `CompletionList.applyKind` to
|
|
2024
|
+
* indicate how supported values from `completionList.itemDefaults`
|
|
2025
|
+
* and `completion` will be combined.
|
|
2026
|
+
*
|
|
2027
|
+
* If a client supports `applyKind` it must support it for all fields
|
|
2028
|
+
* that it supports that are listed in `CompletionList.applyKind`. This
|
|
2029
|
+
* means when clients add support for new/future fields in completion
|
|
2030
|
+
* items the MUST also support merge for them if those fields are
|
|
2031
|
+
* defined in `CompletionList.applyKind`.
|
|
2032
|
+
*
|
|
2033
|
+
* @since 3.18.0
|
|
2034
|
+
*/
|
|
2035
|
+
applyKindSupport?: boolean;
|
|
1991
2036
|
}
|
|
1992
2037
|
/**
|
|
1993
2038
|
* @since 3.18.0
|
|
@@ -2250,6 +2295,7 @@ export declare namespace CompletionRequest {
|
|
|
2250
2295
|
const method: 'textDocument/completion';
|
|
2251
2296
|
const messageDirection: MessageDirection;
|
|
2252
2297
|
const type: ProtocolRequestType<CompletionParams, CompletionList | CompletionItem[] | null, CompletionItem[], void, CompletionRegistrationOptions>;
|
|
2298
|
+
const capabilities: CM<"textDocument.completion", "completionProvider">;
|
|
2253
2299
|
}
|
|
2254
2300
|
/**
|
|
2255
2301
|
* Request to resolve additional information for a given completion item.The request's
|
|
@@ -2260,6 +2306,7 @@ export declare namespace CompletionResolveRequest {
|
|
|
2260
2306
|
const method: 'completionItem/resolve';
|
|
2261
2307
|
const messageDirection: MessageDirection;
|
|
2262
2308
|
const type: ProtocolRequestType<CompletionItem, CompletionItem, never, void, void>;
|
|
2309
|
+
const capabilities: CM<"textDocument.completion.completionItem.resolveSupport", "completionProvider.resolveProvider">;
|
|
2263
2310
|
}
|
|
2264
2311
|
export interface HoverClientCapabilities {
|
|
2265
2312
|
/**
|
|
@@ -2296,6 +2343,7 @@ export declare namespace HoverRequest {
|
|
|
2296
2343
|
const method: 'textDocument/hover';
|
|
2297
2344
|
const messageDirection: MessageDirection;
|
|
2298
2345
|
const type: ProtocolRequestType<HoverParams, Hover | null, never, void, HoverRegistrationOptions>;
|
|
2346
|
+
const capabilities: CM<"textDocument.hover", "hoverProvider">;
|
|
2299
2347
|
}
|
|
2300
2348
|
/**
|
|
2301
2349
|
* @since 3.18.0
|
|
@@ -2452,6 +2500,7 @@ export declare namespace SignatureHelpRequest {
|
|
|
2452
2500
|
const method: 'textDocument/signatureHelp';
|
|
2453
2501
|
const messageDirection: MessageDirection;
|
|
2454
2502
|
const type: ProtocolRequestType<SignatureHelpParams, SignatureHelp | null, never, void, SignatureHelpRegistrationOptions>;
|
|
2503
|
+
const capabilities: CM<"textDocument.signatureHelp", "signatureHelpProvider">;
|
|
2455
2504
|
}
|
|
2456
2505
|
/**
|
|
2457
2506
|
* Client Capabilities for a {@link DefinitionRequest}.
|
|
@@ -2493,6 +2542,7 @@ export declare namespace DefinitionRequest {
|
|
|
2493
2542
|
const method: 'textDocument/definition';
|
|
2494
2543
|
const messageDirection: MessageDirection;
|
|
2495
2544
|
const type: ProtocolRequestType<DefinitionParams, Definition | LocationLink[] | null, Location[] | LocationLink[], void, DefinitionRegistrationOptions>;
|
|
2545
|
+
const capabilities: CM<"textDocument.definition", "definitionProvider">;
|
|
2496
2546
|
}
|
|
2497
2547
|
/**
|
|
2498
2548
|
* Client Capabilities for a {@link ReferencesRequest}.
|
|
@@ -2529,6 +2579,7 @@ export declare namespace ReferencesRequest {
|
|
|
2529
2579
|
const method: 'textDocument/references';
|
|
2530
2580
|
const messageDirection: MessageDirection;
|
|
2531
2581
|
const type: ProtocolRequestType<ReferenceParams, Location[] | null, Location[], void, ReferenceRegistrationOptions>;
|
|
2582
|
+
const capabilities: CM<"textDocument.references", "referencesProvider">;
|
|
2532
2583
|
}
|
|
2533
2584
|
/**
|
|
2534
2585
|
* Client Capabilities for a {@link DocumentHighlightRequest}.
|
|
@@ -2564,6 +2615,7 @@ export declare namespace DocumentHighlightRequest {
|
|
|
2564
2615
|
const method: 'textDocument/documentHighlight';
|
|
2565
2616
|
const messageDirection: MessageDirection;
|
|
2566
2617
|
const type: ProtocolRequestType<DocumentHighlightParams, DocumentHighlight[] | null, DocumentHighlight[], void, DocumentHighlightRegistrationOptions>;
|
|
2618
|
+
const capabilities: CM<"textDocument.documentHighlight", "documentHighlightProvider">;
|
|
2567
2619
|
}
|
|
2568
2620
|
/**
|
|
2569
2621
|
* Client Capabilities for a {@link DocumentSymbolRequest}.
|
|
@@ -2634,6 +2686,7 @@ export declare namespace DocumentSymbolRequest {
|
|
|
2634
2686
|
const method: 'textDocument/documentSymbol';
|
|
2635
2687
|
const messageDirection: MessageDirection;
|
|
2636
2688
|
const type: ProtocolRequestType<DocumentSymbolParams, DocumentSymbol[] | SymbolInformation[] | null, DocumentSymbol[] | SymbolInformation[], void, DocumentSymbolRegistrationOptions>;
|
|
2689
|
+
const capabilities: CM<"textDocument.documentSymbol", "documentSymbolProvider">;
|
|
2637
2690
|
}
|
|
2638
2691
|
/**
|
|
2639
2692
|
* @since 3.18.0
|
|
@@ -2727,7 +2780,23 @@ export interface CodeActionClientCapabilities {
|
|
|
2727
2780
|
* @proposed
|
|
2728
2781
|
*/
|
|
2729
2782
|
documentationSupport?: boolean;
|
|
2783
|
+
/**
|
|
2784
|
+
* Client supports the tag property on a code action. Clients
|
|
2785
|
+
* supporting tags have to handle unknown tags gracefully.
|
|
2786
|
+
*
|
|
2787
|
+
* @since 3.18.0 - proposed
|
|
2788
|
+
*/
|
|
2789
|
+
tagSupport?: CodeActionTagOptions;
|
|
2730
2790
|
}
|
|
2791
|
+
/**
|
|
2792
|
+
* @since 3.18.0 - proposed
|
|
2793
|
+
*/
|
|
2794
|
+
export type CodeActionTagOptions = {
|
|
2795
|
+
/**
|
|
2796
|
+
* The tags supported by the client.
|
|
2797
|
+
*/
|
|
2798
|
+
valueSet: CodeActionTag[];
|
|
2799
|
+
};
|
|
2731
2800
|
/**
|
|
2732
2801
|
* The parameters of a {@link CodeActionRequest}.
|
|
2733
2802
|
*/
|
|
@@ -2816,6 +2885,7 @@ export declare namespace CodeActionRequest {
|
|
|
2816
2885
|
const method: 'textDocument/codeAction';
|
|
2817
2886
|
const messageDirection: MessageDirection;
|
|
2818
2887
|
const type: ProtocolRequestType<CodeActionParams, (Command | CodeAction)[] | null, (Command | CodeAction)[], void, CodeActionRegistrationOptions>;
|
|
2888
|
+
const capabilities: CM<"textDocument.codeAction", "codeActionProvider">;
|
|
2819
2889
|
}
|
|
2820
2890
|
/**
|
|
2821
2891
|
* Request to resolve additional information for a given code action.The request's
|
|
@@ -2826,6 +2896,7 @@ export declare namespace CodeActionResolveRequest {
|
|
|
2826
2896
|
const method: 'codeAction/resolve';
|
|
2827
2897
|
const messageDirection: MessageDirection;
|
|
2828
2898
|
const type: ProtocolRequestType<CodeAction, CodeAction, never, void, void>;
|
|
2899
|
+
const capabilities: CM<"textDocument.codeAction.resolveSupport", "codeActionProvider.resolveProvider">;
|
|
2829
2900
|
}
|
|
2830
2901
|
/**
|
|
2831
2902
|
* @since 3.18.0
|
|
@@ -2938,6 +3009,7 @@ export declare namespace WorkspaceSymbolRequest {
|
|
|
2938
3009
|
const method: 'workspace/symbol';
|
|
2939
3010
|
const messageDirection: MessageDirection;
|
|
2940
3011
|
const type: ProtocolRequestType<WorkspaceSymbolParams, SymbolInformation[] | WorkspaceSymbol[] | null, SymbolInformation[] | WorkspaceSymbol[], void, WorkspaceSymbolRegistrationOptions>;
|
|
3012
|
+
const capabilities: CM<"workspace.symbol", "workspaceSymbolProvider">;
|
|
2941
3013
|
}
|
|
2942
3014
|
/**
|
|
2943
3015
|
* A request to resolve the range inside the workspace
|
|
@@ -2949,6 +3021,7 @@ export declare namespace WorkspaceSymbolResolveRequest {
|
|
|
2949
3021
|
const method: 'workspaceSymbol/resolve';
|
|
2950
3022
|
const messageDirection: MessageDirection;
|
|
2951
3023
|
const type: ProtocolRequestType<WorkspaceSymbol, WorkspaceSymbol, never, void, void>;
|
|
3024
|
+
const capabilities: CM<"workspace.symbol.resolveSupport", "workspaceSymbolProvider.resolveProvider">;
|
|
2952
3025
|
}
|
|
2953
3026
|
/**
|
|
2954
3027
|
* @since 3.18.0
|
|
@@ -3020,6 +3093,7 @@ export declare namespace CodeLensRequest {
|
|
|
3020
3093
|
const method: 'textDocument/codeLens';
|
|
3021
3094
|
const messageDirection: MessageDirection;
|
|
3022
3095
|
const type: ProtocolRequestType<CodeLensParams, CodeLens[] | null, CodeLens[], void, CodeLensRegistrationOptions>;
|
|
3096
|
+
const capabilities: CM<"textDocument.codeLens", "codeLensProvider">;
|
|
3023
3097
|
}
|
|
3024
3098
|
/**
|
|
3025
3099
|
* A request to resolve a command for a given code lens.
|
|
@@ -3028,6 +3102,7 @@ export declare namespace CodeLensResolveRequest {
|
|
|
3028
3102
|
const method: 'codeLens/resolve';
|
|
3029
3103
|
const messageDirection: MessageDirection;
|
|
3030
3104
|
const type: ProtocolRequestType<CodeLens, CodeLens, never, void, void>;
|
|
3105
|
+
const capabilities: CM<"textDocument.codeLens.resolveSupport", "codeLensProvider.resolveProvider">;
|
|
3031
3106
|
}
|
|
3032
3107
|
/**
|
|
3033
3108
|
* A request to refresh all code actions
|
|
@@ -3038,6 +3113,7 @@ export declare namespace CodeLensRefreshRequest {
|
|
|
3038
3113
|
const method: `workspace/codeLens/refresh`;
|
|
3039
3114
|
const messageDirection: MessageDirection;
|
|
3040
3115
|
const type: ProtocolRequestType0<void, void, void, void>;
|
|
3116
|
+
const capabilities: CM<"workspace.codeLens", undefined>;
|
|
3041
3117
|
}
|
|
3042
3118
|
/**
|
|
3043
3119
|
* The client capabilities of a {@link DocumentLinkRequest}.
|
|
@@ -3084,6 +3160,7 @@ export declare namespace DocumentLinkRequest {
|
|
|
3084
3160
|
const method: 'textDocument/documentLink';
|
|
3085
3161
|
const messageDirection: MessageDirection;
|
|
3086
3162
|
const type: ProtocolRequestType<DocumentLinkParams, DocumentLink[] | null, DocumentLink[], void, DocumentLinkRegistrationOptions>;
|
|
3163
|
+
const capabilities: CM<"textDocument.documentLink", "documentLinkProvider">;
|
|
3087
3164
|
}
|
|
3088
3165
|
/**
|
|
3089
3166
|
* Request to resolve additional information for a given document link. The request's
|
|
@@ -3094,6 +3171,7 @@ export declare namespace DocumentLinkResolveRequest {
|
|
|
3094
3171
|
const method: 'documentLink/resolve';
|
|
3095
3172
|
const messageDirection: MessageDirection;
|
|
3096
3173
|
const type: ProtocolRequestType<DocumentLink, DocumentLink, never, void, void>;
|
|
3174
|
+
const capabilities: CM<"textDocument.documentLink", "documentLinkProvider.resolveProvider">;
|
|
3097
3175
|
}
|
|
3098
3176
|
/**
|
|
3099
3177
|
* Client capabilities of a {@link DocumentFormattingRequest}.
|
|
@@ -3134,6 +3212,7 @@ export declare namespace DocumentFormattingRequest {
|
|
|
3134
3212
|
const method: 'textDocument/formatting';
|
|
3135
3213
|
const messageDirection: MessageDirection;
|
|
3136
3214
|
const type: ProtocolRequestType<DocumentFormattingParams, TextEdit[] | null, never, void, DocumentFormattingRegistrationOptions>;
|
|
3215
|
+
const capabilities: CM<"textDocument.formatting", "documentFormattingProvider">;
|
|
3137
3216
|
}
|
|
3138
3217
|
/**
|
|
3139
3218
|
* Client capabilities of a {@link DocumentRangeFormattingRequest}.
|
|
@@ -3212,6 +3291,7 @@ export declare namespace DocumentRangeFormattingRequest {
|
|
|
3212
3291
|
const method: 'textDocument/rangeFormatting';
|
|
3213
3292
|
const messageDirection: MessageDirection;
|
|
3214
3293
|
const type: ProtocolRequestType<DocumentRangeFormattingParams, TextEdit[] | null, never, void, DocumentRangeFormattingRegistrationOptions>;
|
|
3294
|
+
const capabilities: CM<"textDocument.rangeFormatting", "documentRangeFormattingProvider">;
|
|
3215
3295
|
}
|
|
3216
3296
|
/**
|
|
3217
3297
|
* A request to format ranges in a document.
|
|
@@ -3223,6 +3303,7 @@ export declare namespace DocumentRangesFormattingRequest {
|
|
|
3223
3303
|
const method: 'textDocument/rangesFormatting';
|
|
3224
3304
|
const messageDirection: MessageDirection;
|
|
3225
3305
|
const type: ProtocolRequestType<DocumentRangesFormattingParams, TextEdit[] | null, never, void, DocumentRangeFormattingRegistrationOptions>;
|
|
3306
|
+
const capabilities: CM<"textDocument.rangeFormatting.rangesSupport", "documentRangeFormattingProvider.rangesSupport">;
|
|
3226
3307
|
}
|
|
3227
3308
|
/**
|
|
3228
3309
|
* Client capabilities of a {@link DocumentOnTypeFormattingRequest}.
|
|
@@ -3284,6 +3365,7 @@ export declare namespace DocumentOnTypeFormattingRequest {
|
|
|
3284
3365
|
const method: 'textDocument/onTypeFormatting';
|
|
3285
3366
|
const messageDirection: MessageDirection;
|
|
3286
3367
|
const type: ProtocolRequestType<DocumentOnTypeFormattingParams, TextEdit[] | null, never, void, DocumentOnTypeFormattingRegistrationOptions>;
|
|
3368
|
+
const capabilities: CM<"textDocument.onTypeFormatting", "documentOnTypeFormattingProvider">;
|
|
3287
3369
|
}
|
|
3288
3370
|
export declare namespace PrepareSupportDefaultBehavior {
|
|
3289
3371
|
/**
|
|
@@ -3367,6 +3449,7 @@ export declare namespace RenameRequest {
|
|
|
3367
3449
|
const method: 'textDocument/rename';
|
|
3368
3450
|
const messageDirection: MessageDirection;
|
|
3369
3451
|
const type: ProtocolRequestType<RenameParams, WorkspaceEdit | null, never, void, RenameRegistrationOptions>;
|
|
3452
|
+
const capabilities: CM<"textDocument.rename", "renameProvider">;
|
|
3370
3453
|
}
|
|
3371
3454
|
export interface PrepareRenameParams extends TextDocumentPositionParams, WorkDoneProgressParams {
|
|
3372
3455
|
}
|
|
@@ -3393,6 +3476,7 @@ export declare namespace PrepareRenameRequest {
|
|
|
3393
3476
|
const method: 'textDocument/prepareRename';
|
|
3394
3477
|
const messageDirection: MessageDirection;
|
|
3395
3478
|
const type: ProtocolRequestType<PrepareRenameParams, PrepareRenameResult | null, never, void, void>;
|
|
3479
|
+
const capabilities: CM<"textDocument.rename.prepareSupport", "renameProvider.prepareProvider">;
|
|
3396
3480
|
}
|
|
3397
3481
|
/**
|
|
3398
3482
|
* The client capabilities of a {@link ExecuteCommandRequest}.
|
|
@@ -3438,6 +3522,7 @@ export declare namespace ExecuteCommandRequest {
|
|
|
3438
3522
|
const method: 'workspace/executeCommand';
|
|
3439
3523
|
const messageDirection: MessageDirection;
|
|
3440
3524
|
const type: ProtocolRequestType<ExecuteCommandParams, any, never, void, ExecuteCommandRegistrationOptions>;
|
|
3525
|
+
const capabilities: CM<"workspace.executeCommand", "executeCommandProvider">;
|
|
3441
3526
|
}
|
|
3442
3527
|
/**
|
|
3443
3528
|
* @since 3.18.0
|
|
@@ -3558,6 +3643,7 @@ export declare namespace ApplyWorkspaceEditRequest {
|
|
|
3558
3643
|
const messageDirection: MessageDirection;
|
|
3559
3644
|
const type: ProtocolRequestType<ApplyWorkspaceEditParams, ApplyWorkspaceEditResult, never, void, void>;
|
|
3560
3645
|
type HandlerSignature = RequestHandler<ApplyWorkspaceEditParams, ApplyWorkspaceEditResult, void>;
|
|
3646
|
+
const capabilities: CM<"workspace.applyEdit", undefined>;
|
|
3561
3647
|
}
|
|
3562
3648
|
export { ImplementationRequest, ImplementationParams, ImplementationRegistrationOptions, ImplementationOptions, TypeDefinitionRequest, TypeDefinitionParams, TypeDefinitionRegistrationOptions, TypeDefinitionOptions, WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFoldersChangeEvent, ConfigurationRequest, ConfigurationParams, ConfigurationItem, DocumentColorRequest, ColorPresentationRequest, DocumentColorOptions, DocumentColorParams, ColorPresentationParams, DocumentColorRegistrationOptions, FoldingRangeClientCapabilities, FoldingRangeOptions, FoldingRangeRequest, FoldingRangeParams, FoldingRangeRegistrationOptions, FoldingRangeRefreshRequest, DeclarationClientCapabilities, DeclarationRequest, DeclarationParams, DeclarationRegistrationOptions, DeclarationOptions, SelectionRangeClientCapabilities, SelectionRangeOptions, SelectionRangeParams, SelectionRangeRequest, SelectionRangeRegistrationOptions, WorkDoneProgressBegin, WorkDoneProgressReport, WorkDoneProgressEnd, WorkDoneProgress, WorkDoneProgressCreateParams, WorkDoneProgressCreateRequest, WorkDoneProgressCancelParams, WorkDoneProgressCancelNotification, CallHierarchyClientCapabilities, CallHierarchyOptions, CallHierarchyRegistrationOptions, CallHierarchyIncomingCallsParams, CallHierarchyIncomingCallsRequest, CallHierarchyOutgoingCallsParams, CallHierarchyOutgoingCallsRequest, CallHierarchyPrepareParams, CallHierarchyPrepareRequest, SemanticTokensPartialResult, SemanticTokensDeltaPartialResult, TokenFormat, SemanticTokensClientCapabilities, SemanticTokensOptions, SemanticTokensRegistrationOptions, SemanticTokensParams, SemanticTokensRequest, SemanticTokensDeltaParams, SemanticTokensDeltaRequest, SemanticTokensRangeParams, SemanticTokensRangeRequest, SemanticTokensRefreshRequest, SemanticTokensRegistrationType, ShowDocumentParams, ShowDocumentRequest, ShowDocumentResult, ShowDocumentClientCapabilities, LinkedEditingRangeClientCapabilities, LinkedEditingRanges, LinkedEditingRangeOptions, LinkedEditingRangeParams, LinkedEditingRangeRegistrationOptions, LinkedEditingRangeRequest, FileOperationOptions, FileOperationClientCapabilities, FileOperationRegistrationOptions, FileOperationPatternOptions, FileOperationPatternKind, DidCreateFilesNotification, CreateFilesParams, FileCreate, WillCreateFilesRequest, DidRenameFilesNotification, RenameFilesParams, FileRename, WillRenameFilesRequest, DidDeleteFilesNotification, DeleteFilesParams, FileDelete, WillDeleteFilesRequest, UniquenessLevel, MonikerKind, Moniker, MonikerClientCapabilities, MonikerOptions, MonikerRegistrationOptions, MonikerParams, MonikerRequest, TypeHierarchyClientCapabilities, TypeHierarchyOptions, TypeHierarchyRegistrationOptions, TypeHierarchyPrepareParams, TypeHierarchyPrepareRequest, TypeHierarchySubtypesParams, TypeHierarchySubtypesRequest, TypeHierarchySupertypesParams, TypeHierarchySupertypesRequest, InlineValueClientCapabilities, InlineValueOptions, InlineValueRegistrationOptions, InlineValueWorkspaceClientCapabilities, InlineValueParams, InlineValueRequest, InlineValueRefreshRequest, InlayHintClientCapabilities, InlayHintOptions, InlayHintRegistrationOptions, InlayHintWorkspaceClientCapabilities, InlayHintParams, InlayHintRequest, InlayHintResolveRequest, InlayHintRefreshRequest, DiagnosticClientCapabilities, DiagnosticOptions, DiagnosticRegistrationOptions, DiagnosticServerCancellationData, DocumentDiagnosticParams, DocumentDiagnosticReportKind, FullDocumentDiagnosticReport, RelatedFullDocumentDiagnosticReport, UnchangedDocumentDiagnosticReport, RelatedUnchangedDocumentDiagnosticReport, DocumentDiagnosticReport, DocumentDiagnosticReportPartialResult, DocumentDiagnosticRequest, PreviousResultId, WorkspaceDiagnosticParams, WorkspaceFullDocumentDiagnosticReport, WorkspaceUnchangedDocumentDiagnosticReport, WorkspaceDocumentDiagnosticReport, WorkspaceDiagnosticReport, WorkspaceDiagnosticReportPartialResult, WorkspaceDiagnosticRequest, DiagnosticRefreshRequest, NotebookDocumentSyncClientCapabilities, NotebookCellKind, ExecutionSummary, NotebookCell, NotebookDocument, NotebookDocumentIdentifier, VersionedNotebookDocumentIdentifier, NotebookDocumentSyncOptions, NotebookDocumentSyncRegistrationOptions, NotebookDocumentSyncRegistrationType, DidOpenNotebookDocumentParams, DidOpenNotebookDocumentNotification, NotebookCellArrayChange, NotebookDocumentChangeEvent, DidChangeNotebookDocumentParams, DidChangeNotebookDocumentNotification, DidSaveNotebookDocumentParams, DidSaveNotebookDocumentNotification, DidCloseNotebookDocumentParams, DidCloseNotebookDocumentNotification, NotebookDocumentFilterWithCells, NotebookDocumentFilterWithNotebook, InlineCompletionClientCapabilities, InlineCompletionOptions, InlineCompletionParams, InlineCompletionRegistrationOptions, InlineCompletionRequest, TextDocumentContentClientCapabilities, TextDocumentContentOptions, TextDocumentContentRegistrationOptions, TextDocumentContentParams, TextDocumentContentResult, TextDocumentContentRequest, TextDocumentContentRefreshParams, TextDocumentContentRefreshRequest };
|
|
3563
3649
|
export { DocumentColorOptions as ColorProviderOptions, DocumentColorOptions as ColorOptions, FoldingRangeOptions as FoldingRangeProviderOptions, SelectionRangeOptions as SelectionRangeProviderOptions, DocumentColorRegistrationOptions as ColorRegistrationOptions };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { Declaration, DeclarationLink, 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.14.0
|
|
7
7
|
*/
|
|
@@ -34,4 +34,5 @@ export declare namespace DeclarationRequest {
|
|
|
34
34
|
const messageDirection: MessageDirection;
|
|
35
35
|
const type: ProtocolRequestType<DeclarationParams, Declaration | LocationLink[] | null, Location[] | LocationLink[], void, DeclarationRegistrationOptions>;
|
|
36
36
|
type HandlerSignature = RequestHandler<DeclarationParams, Declaration | DeclarationLink[] | null, void>;
|
|
37
|
+
const capabilities: CM<"textDocument.declaration", "declarationProvider">;
|
|
37
38
|
}
|
|
@@ -19,4 +19,5 @@ var DeclarationRequest;
|
|
|
19
19
|
DeclarationRequest.method = 'textDocument/declaration';
|
|
20
20
|
DeclarationRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
21
21
|
DeclarationRequest.type = new messages_1.ProtocolRequestType(DeclarationRequest.method);
|
|
22
|
+
DeclarationRequest.capabilities = messages_1.CM.create('textDocument.declaration', 'declarationProvider');
|
|
22
23
|
})(DeclarationRequest || (exports.DeclarationRequest = DeclarationRequest = {}));
|
|
@@ -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
|
*
|
|
@@ -229,6 +229,7 @@ export declare namespace DocumentDiagnosticRequest {
|
|
|
229
229
|
const type: ProtocolRequestType<DocumentDiagnosticParams, DocumentDiagnosticReport, DocumentDiagnosticReportPartialResult, DiagnosticServerCancellationData, DiagnosticRegistrationOptions>;
|
|
230
230
|
const partialResult: ProgressType<DocumentDiagnosticReportPartialResult>;
|
|
231
231
|
type HandlerSignature = RequestHandler<DocumentDiagnosticParams, DocumentDiagnosticReport, void>;
|
|
232
|
+
const capabilities: CM<"textDocument.diagnostic", "diagnosticProvider">;
|
|
232
233
|
}
|
|
233
234
|
/**
|
|
234
235
|
* A previous result id in a workspace pull request.
|
|
@@ -327,6 +328,7 @@ export declare namespace WorkspaceDiagnosticRequest {
|
|
|
327
328
|
const type: ProtocolRequestType<WorkspaceDiagnosticParams, WorkspaceDiagnosticReport, WorkspaceDiagnosticReportPartialResult, DiagnosticServerCancellationData, void>;
|
|
328
329
|
const partialResult: ProgressType<WorkspaceDiagnosticReportPartialResult>;
|
|
329
330
|
type HandlerSignature = RequestHandler<WorkspaceDiagnosticParams, WorkspaceDiagnosticReport | null, void>;
|
|
331
|
+
const capabilities: CM<"workspace.diagnostics", "diagnosticProvider.workspaceDiagnostics">;
|
|
330
332
|
}
|
|
331
333
|
/**
|
|
332
334
|
* The diagnostic refresh request definition.
|
|
@@ -338,4 +340,5 @@ export declare namespace DiagnosticRefreshRequest {
|
|
|
338
340
|
const messageDirection: MessageDirection;
|
|
339
341
|
const type: ProtocolRequestType0<void, void, void, void>;
|
|
340
342
|
type HandlerSignature = RequestHandler0<void, void>;
|
|
343
|
+
const capabilities: CM<"workspace.diagnostics.refreshSupport", undefined>;
|
|
341
344
|
}
|