vscode-languageserver-protocol 3.17.6-next.12 → 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/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 +37 -1
- 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 +3 -0
- 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 +36 -0
- 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.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/metaModel.schema.json +17 -0
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DocumentUri } from 'vscode-languageserver-types';
|
|
2
2
|
import type { RequestHandler } from 'vscode-jsonrpc';
|
|
3
|
-
import { MessageDirection, ProtocolRequestType } from './messages';
|
|
4
|
-
import type
|
|
3
|
+
import { MessageDirection, ProtocolRequestType, CM } from './messages';
|
|
4
|
+
import { type StaticRegistrationOptions } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* Client capabilities for a text document content provider.
|
|
7
7
|
*
|
|
@@ -72,6 +72,7 @@ export declare namespace TextDocumentContentRequest {
|
|
|
72
72
|
const messageDirection: MessageDirection;
|
|
73
73
|
const type: ProtocolRequestType<TextDocumentContentParams, TextDocumentContentResult, void, void, TextDocumentContentRegistrationOptions>;
|
|
74
74
|
type HandlerSignature = RequestHandler<TextDocumentContentParams, TextDocumentContentResult, void>;
|
|
75
|
+
const capabilities: CM<"workspace.textDocumentContent", "workspace.textDocumentContent">;
|
|
75
76
|
}
|
|
76
77
|
/**
|
|
77
78
|
* Parameters for the `workspace/textDocumentContent/refresh` request.
|
|
@@ -18,6 +18,7 @@ var TextDocumentContentRequest;
|
|
|
18
18
|
TextDocumentContentRequest.method = 'workspace/textDocumentContent';
|
|
19
19
|
TextDocumentContentRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
20
20
|
TextDocumentContentRequest.type = new messages_1.ProtocolRequestType(TextDocumentContentRequest.method);
|
|
21
|
+
TextDocumentContentRequest.capabilities = messages_1.CM.create('workspace.textDocumentContent', 'workspace.textDocumentContent');
|
|
21
22
|
})(TextDocumentContentRequest || (exports.TextDocumentContentRequest = TextDocumentContentRequest = {}));
|
|
22
23
|
/**
|
|
23
24
|
* The `workspace/textDocumentContent` request is sent from the server to the client to refresh
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { Definition, DefinitionLink, LocationLink, Location } from 'vscode-languageserver-types';
|
|
3
|
-
import { MessageDirection, ProtocolRequestType } from './messages';
|
|
4
|
-
import type
|
|
3
|
+
import { MessageDirection, ProtocolRequestType, CM } 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 TypeDefinitionRequest {
|
|
|
35
35
|
const messageDirection: MessageDirection;
|
|
36
36
|
const type: ProtocolRequestType<TypeDefinitionParams, Definition | LocationLink[] | null, Location[] | LocationLink[], void, TypeDefinitionRegistrationOptions>;
|
|
37
37
|
type HandlerSignature = RequestHandler<TypeDefinitionParams, Definition | DefinitionLink[] | null, void>;
|
|
38
|
+
const capabilities: CM<"textDocument.typeDefinition", "typeDefinitionProvider">;
|
|
38
39
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.TypeDefinitionRequest = void 0;
|
|
8
8
|
const messages_1 = require("./messages");
|
|
9
|
-
// @ts-ignore: to avoid inlining
|
|
9
|
+
// @ts-ignore: to avoid inlining LocationLink as dynamic import
|
|
10
10
|
let __noDynamicImport;
|
|
11
11
|
/**
|
|
12
12
|
* A request to resolve the type definition locations of a symbol at a given text
|
|
@@ -18,4 +18,5 @@ var TypeDefinitionRequest;
|
|
|
18
18
|
TypeDefinitionRequest.method = 'textDocument/typeDefinition';
|
|
19
19
|
TypeDefinitionRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
20
20
|
TypeDefinitionRequest.type = new messages_1.ProtocolRequestType(TypeDefinitionRequest.method);
|
|
21
|
+
TypeDefinitionRequest.capabilities = messages_1.CM.create('textDocument.typeDefinition', 'typeDefinitionProvider');
|
|
21
22
|
})(TypeDefinitionRequest || (exports.TypeDefinitionRequest = TypeDefinitionRequest = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { TypeHierarchyItem } from 'vscode-languageserver-types';
|
|
3
|
-
import { MessageDirection, ProtocolRequestType } from './messages';
|
|
4
|
-
import type
|
|
3
|
+
import { MessageDirection, ProtocolRequestType, CM } from './messages';
|
|
4
|
+
import { type TextDocumentRegistrationOptions, type StaticRegistrationOptions, type TextDocumentPositionParams, type PartialResultParams, type WorkDoneProgressParams, type WorkDoneProgressOptions } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* @since 3.17.0
|
|
7
7
|
*/
|
|
@@ -42,6 +42,7 @@ export declare namespace TypeHierarchyPrepareRequest {
|
|
|
42
42
|
const messageDirection: MessageDirection;
|
|
43
43
|
const type: ProtocolRequestType<TypeHierarchyPrepareParams, TypeHierarchyItem[] | null, never, void, TypeHierarchyRegistrationOptions>;
|
|
44
44
|
type HandlerSignature = RequestHandler<TypeHierarchyPrepareParams, TypeHierarchyItem[] | null, void>;
|
|
45
|
+
const capabilities: CM<"textDocument.typeHierarchy", "typeHierarchyProvider">;
|
|
45
46
|
}
|
|
46
47
|
/**
|
|
47
48
|
* The parameter of a `typeHierarchy/supertypes` request.
|
|
@@ -17,6 +17,7 @@ var TypeHierarchyPrepareRequest;
|
|
|
17
17
|
TypeHierarchyPrepareRequest.method = 'textDocument/prepareTypeHierarchy';
|
|
18
18
|
TypeHierarchyPrepareRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
19
19
|
TypeHierarchyPrepareRequest.type = new messages_1.ProtocolRequestType(TypeHierarchyPrepareRequest.method);
|
|
20
|
+
TypeHierarchyPrepareRequest.capabilities = messages_1.CM.create('textDocument.typeHierarchy', 'typeHierarchyProvider');
|
|
20
21
|
})(TypeHierarchyPrepareRequest || (exports.TypeHierarchyPrepareRequest = TypeHierarchyPrepareRequest = {}));
|
|
21
22
|
/**
|
|
22
23
|
* A request to resolve the supertypes for a given `TypeHierarchyItem`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WorkspaceFolder } from 'vscode-languageserver-types';
|
|
2
2
|
import { RequestHandler0, NotificationHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
|
|
3
|
-
import { MessageDirection, ProtocolRequestType0, ProtocolNotificationType } from './messages';
|
|
3
|
+
import { MessageDirection, ProtocolRequestType0, ProtocolNotificationType, CM } from './messages';
|
|
4
4
|
export interface WorkspaceFoldersInitializeParams {
|
|
5
5
|
/**
|
|
6
6
|
* The workspace folders configured in the client when the server starts.
|
|
@@ -38,6 +38,7 @@ export declare namespace WorkspaceFoldersRequest {
|
|
|
38
38
|
const type: ProtocolRequestType0<WorkspaceFolder[] | null, never, void, void>;
|
|
39
39
|
type HandlerSignature = RequestHandler0<WorkspaceFolder[] | null, void>;
|
|
40
40
|
type MiddlewareSignature = (token: CancellationToken, next: HandlerSignature) => HandlerResult<WorkspaceFolder[] | null, void>;
|
|
41
|
+
const capabilities: CM<"workspace.workspaceFolders", "workspace.workspaceFolders">;
|
|
41
42
|
}
|
|
42
43
|
/**
|
|
43
44
|
* The `workspace/didChangeWorkspaceFolders` notification is sent from the client to the server when the workspace
|
|
@@ -49,6 +50,7 @@ export declare namespace DidChangeWorkspaceFoldersNotification {
|
|
|
49
50
|
const type: ProtocolNotificationType<DidChangeWorkspaceFoldersParams, void>;
|
|
50
51
|
type HandlerSignature = NotificationHandler<DidChangeWorkspaceFoldersParams>;
|
|
51
52
|
type MiddlewareSignature = (params: DidChangeWorkspaceFoldersParams, next: HandlerSignature) => void;
|
|
53
|
+
const capabilities: CM<undefined, "workspace.workspaceFolders.changeNotifications">;
|
|
52
54
|
}
|
|
53
55
|
/**
|
|
54
56
|
* The parameters of a `workspace/didChangeWorkspaceFolders` notification.
|
|
@@ -14,6 +14,7 @@ var WorkspaceFoldersRequest;
|
|
|
14
14
|
WorkspaceFoldersRequest.method = 'workspace/workspaceFolders';
|
|
15
15
|
WorkspaceFoldersRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
16
16
|
WorkspaceFoldersRequest.type = new messages_1.ProtocolRequestType0(WorkspaceFoldersRequest.method);
|
|
17
|
+
WorkspaceFoldersRequest.capabilities = messages_1.CM.create('workspace.workspaceFolders', 'workspace.workspaceFolders');
|
|
17
18
|
})(WorkspaceFoldersRequest || (exports.WorkspaceFoldersRequest = WorkspaceFoldersRequest = {}));
|
|
18
19
|
/**
|
|
19
20
|
* The `workspace/didChangeWorkspaceFolders` notification is sent from the client to the server when the workspace
|
|
@@ -24,4 +25,5 @@ var DidChangeWorkspaceFoldersNotification;
|
|
|
24
25
|
DidChangeWorkspaceFoldersNotification.method = 'workspace/didChangeWorkspaceFolders';
|
|
25
26
|
DidChangeWorkspaceFoldersNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
26
27
|
DidChangeWorkspaceFoldersNotification.type = new messages_1.ProtocolNotificationType(DidChangeWorkspaceFoldersNotification.method);
|
|
28
|
+
DidChangeWorkspaceFoldersNotification.capabilities = messages_1.CM.create(undefined, 'workspace.workspaceFolders.changeNotifications');
|
|
27
29
|
})(DidChangeWorkspaceFoldersNotification || (exports.DidChangeWorkspaceFoldersNotification = DidChangeWorkspaceFoldersNotification = {}));
|
package/metaModel.schema.json
CHANGED
|
@@ -362,6 +362,10 @@
|
|
|
362
362
|
"additionalProperties": false,
|
|
363
363
|
"description": "Represents a LSP notification",
|
|
364
364
|
"properties": {
|
|
365
|
+
"clientCapability": {
|
|
366
|
+
"description": "The client capability property path if any.",
|
|
367
|
+
"type": "string"
|
|
368
|
+
},
|
|
365
369
|
"deprecated": {
|
|
366
370
|
"description": "Whether the notification is deprecated or not. If deprecated the property contains the deprecation message.",
|
|
367
371
|
"type": "string"
|
|
@@ -404,6 +408,10 @@
|
|
|
404
408
|
"$ref": "#/definitions/Type",
|
|
405
409
|
"description": "Optional registration options if the notification supports dynamic registration."
|
|
406
410
|
},
|
|
411
|
+
"serverCapability": {
|
|
412
|
+
"description": "The server capability property path if any.",
|
|
413
|
+
"type": "string"
|
|
414
|
+
},
|
|
407
415
|
"since": {
|
|
408
416
|
"description": "Since when (release number) this notification is available. Is undefined if not known.",
|
|
409
417
|
"type": "string"
|
|
@@ -515,6 +523,10 @@
|
|
|
515
523
|
"additionalProperties": false,
|
|
516
524
|
"description": "Represents a LSP request",
|
|
517
525
|
"properties": {
|
|
526
|
+
"clientCapability": {
|
|
527
|
+
"description": "The client capability property path if any.",
|
|
528
|
+
"type": "string"
|
|
529
|
+
},
|
|
518
530
|
"deprecated": {
|
|
519
531
|
"description": "Whether the request is deprecated or not. If deprecated the property contains the deprecation message.",
|
|
520
532
|
"type": "string"
|
|
@@ -569,6 +581,10 @@
|
|
|
569
581
|
"$ref": "#/definitions/Type",
|
|
570
582
|
"description": "The result type."
|
|
571
583
|
},
|
|
584
|
+
"serverCapability": {
|
|
585
|
+
"description": "The server capability property path if any.",
|
|
586
|
+
"type": "string"
|
|
587
|
+
},
|
|
572
588
|
"since": {
|
|
573
589
|
"description": "Since when (release number) this request is available. Is undefined if not known.",
|
|
574
590
|
"type": "string"
|
|
@@ -845,3 +861,4 @@
|
|
|
845
861
|
}
|
|
846
862
|
}
|
|
847
863
|
}
|
|
864
|
+
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vscode-languageserver-protocol",
|
|
3
3
|
"description": "VSCode Language Server Protocol implementation",
|
|
4
|
-
"version": "3.17.6-next.
|
|
4
|
+
"version": "3.17.6-next.13",
|
|
5
5
|
"author": "Microsoft Corporation",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"vscode-jsonrpc": "9.0.0-next.
|
|
30
|
+
"vscode-jsonrpc": "9.0.0-next.8",
|
|
31
31
|
"vscode-languageserver-types": "3.17.6-next.6"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|