vscode-languageserver-protocol 3.17.6-next.16 → 3.17.6-next.18
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/eslint.config.js +13 -0
- package/lib/common/protocol.callHierarchy.d.ts +2 -0
- package/lib/common/protocol.callHierarchy.js +2 -0
- package/lib/common/protocol.colorProvider.d.ts +5 -5
- package/lib/common/protocol.colorProvider.js +1 -1
- package/lib/common/protocol.d.ts +5 -2
- package/lib/common/protocol.diagnostic.d.ts +7 -0
- package/lib/common/protocol.fileOperations.d.ts +1 -1
- package/lib/common/protocol.inlineValue.d.ts +3 -4
- package/metaModel.schema.json +1 -1
- package/package.json +4 -4
package/eslint.config.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
const { createConfig } = require('../eslint.config.base.js');
|
|
5
|
+
|
|
6
|
+
module.exports = createConfig(
|
|
7
|
+
['src/common/tsconfig.json', 'src/browser/tsconfig.json', 'src/browser/test/tsconfig.json', 'src/node/tsconfig.json', 'src/node/test/tsconfig.json'],
|
|
8
|
+
undefined,
|
|
9
|
+
{
|
|
10
|
+
'no-console': 'error',
|
|
11
|
+
'@typescript-eslint/no-floating-promises': 'error',
|
|
12
|
+
}
|
|
13
|
+
);
|
|
@@ -65,6 +65,7 @@ export declare namespace CallHierarchyIncomingCallsRequest {
|
|
|
65
65
|
const messageDirection: MessageDirection;
|
|
66
66
|
const type: ProtocolRequestType<CallHierarchyIncomingCallsParams, CallHierarchyIncomingCall[] | null, CallHierarchyIncomingCall[], void, void>;
|
|
67
67
|
type HandlerSignature = RequestHandler<CallHierarchyIncomingCallsParams, CallHierarchyIncomingCall[] | null, void>;
|
|
68
|
+
const capabilities: CM<"textDocument.callHierarchy", "callHierarchyProvider">;
|
|
68
69
|
}
|
|
69
70
|
/**
|
|
70
71
|
* The parameter of a `callHierarchy/outgoingCalls` request.
|
|
@@ -84,4 +85,5 @@ export declare namespace CallHierarchyOutgoingCallsRequest {
|
|
|
84
85
|
const messageDirection: MessageDirection;
|
|
85
86
|
const type: ProtocolRequestType<CallHierarchyOutgoingCallsParams, CallHierarchyOutgoingCall[] | null, CallHierarchyOutgoingCall[], void, void>;
|
|
86
87
|
type HandlerSignature = RequestHandler<CallHierarchyOutgoingCallsParams, CallHierarchyOutgoingCall[] | null, void>;
|
|
88
|
+
const capabilities: CM<"textDocument.callHierarchy", "callHierarchyProvider">;
|
|
87
89
|
}
|
|
@@ -29,6 +29,7 @@ var CallHierarchyIncomingCallsRequest;
|
|
|
29
29
|
CallHierarchyIncomingCallsRequest.method = 'callHierarchy/incomingCalls';
|
|
30
30
|
CallHierarchyIncomingCallsRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
31
31
|
CallHierarchyIncomingCallsRequest.type = new messages_1.ProtocolRequestType(CallHierarchyIncomingCallsRequest.method);
|
|
32
|
+
CallHierarchyIncomingCallsRequest.capabilities = messages_1.CM.create('textDocument.callHierarchy', 'callHierarchyProvider');
|
|
32
33
|
})(CallHierarchyIncomingCallsRequest || (exports.CallHierarchyIncomingCallsRequest = CallHierarchyIncomingCallsRequest = {}));
|
|
33
34
|
/**
|
|
34
35
|
* A request to resolve the outgoing calls for a given `CallHierarchyItem`.
|
|
@@ -40,4 +41,5 @@ var CallHierarchyOutgoingCallsRequest;
|
|
|
40
41
|
CallHierarchyOutgoingCallsRequest.method = 'callHierarchy/outgoingCalls';
|
|
41
42
|
CallHierarchyOutgoingCallsRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
42
43
|
CallHierarchyOutgoingCallsRequest.type = new messages_1.ProtocolRequestType(CallHierarchyOutgoingCallsRequest.method);
|
|
44
|
+
CallHierarchyOutgoingCallsRequest.capabilities = messages_1.CM.create('textDocument.callHierarchy', 'callHierarchyProvider');
|
|
43
45
|
})(CallHierarchyOutgoingCallsRequest || (exports.CallHierarchyOutgoingCallsRequest = CallHierarchyOutgoingCallsRequest = {}));
|
|
@@ -32,8 +32,8 @@ export interface DocumentColorParams extends WorkDoneProgressParams, PartialResu
|
|
|
32
32
|
export declare namespace DocumentColorRequest {
|
|
33
33
|
const method: 'textDocument/documentColor';
|
|
34
34
|
const messageDirection: MessageDirection;
|
|
35
|
-
const type: ProtocolRequestType<DocumentColorParams, ColorInformation[]
|
|
36
|
-
type HandlerSignature = RequestHandler<DocumentColorParams, ColorInformation[]
|
|
35
|
+
const type: ProtocolRequestType<DocumentColorParams, ColorInformation[], ColorInformation[], void, DocumentColorRegistrationOptions>;
|
|
36
|
+
type HandlerSignature = RequestHandler<DocumentColorParams, ColorInformation[], void>;
|
|
37
37
|
const capabilities: CM<"textDocument.colorProvider", "colorProvider">;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
@@ -56,13 +56,13 @@ export interface ColorPresentationParams extends WorkDoneProgressParams, Partial
|
|
|
56
56
|
/**
|
|
57
57
|
* A request to list all presentation for a color. The request's
|
|
58
58
|
* parameter is of type {@link ColorPresentationParams} the
|
|
59
|
-
* response is of type {@link
|
|
59
|
+
* response is of type {@link ColorPresentation ColorPresentation[]} or a Thenable
|
|
60
60
|
* that resolves to such.
|
|
61
61
|
*/
|
|
62
62
|
export declare namespace ColorPresentationRequest {
|
|
63
63
|
const method: 'textDocument/colorPresentation';
|
|
64
64
|
const messageDirection: MessageDirection;
|
|
65
|
-
const type: ProtocolRequestType<ColorPresentationParams, ColorPresentation[]
|
|
66
|
-
type HandlerSignature = RequestHandler<ColorPresentationParams, ColorPresentation[]
|
|
65
|
+
const type: ProtocolRequestType<ColorPresentationParams, ColorPresentation[], ColorPresentation[], void, WorkDoneProgressOptions & TextDocumentRegistrationOptions>;
|
|
66
|
+
type HandlerSignature = RequestHandler<ColorPresentationParams, ColorPresentation[], void>;
|
|
67
67
|
const capabilities: CM<"textDocument.colorProvider", "colorProvider">;
|
|
68
68
|
}
|
|
@@ -22,7 +22,7 @@ var DocumentColorRequest;
|
|
|
22
22
|
/**
|
|
23
23
|
* A request to list all presentation for a color. The request's
|
|
24
24
|
* parameter is of type {@link ColorPresentationParams} the
|
|
25
|
-
* response is of type {@link
|
|
25
|
+
* response is of type {@link ColorPresentation ColorPresentation[]} or a Thenable
|
|
26
26
|
* that resolves to such.
|
|
27
27
|
*/
|
|
28
28
|
var ColorPresentationRequest;
|
package/lib/common/protocol.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ export type TextDocumentFilterPattern = {
|
|
|
98
98
|
* its resource, or a glob-pattern that is applied to the {@link TextDocument.fileName path}.
|
|
99
99
|
*
|
|
100
100
|
* Glob patterns can have the following syntax:
|
|
101
|
-
* - `*` to match
|
|
101
|
+
* - `*` to match zero or more characters in a path segment
|
|
102
102
|
* - `?` to match on one character in a path segment
|
|
103
103
|
* - `**` to match any number of path segments, including none
|
|
104
104
|
* - `{}` to group sub patterns into an OR expression. (e.g. `**/*.{ts,js}` matches all TypeScript and JavaScript files)
|
|
@@ -1852,7 +1852,7 @@ export interface DidChangeWatchedFilesRegistrationOptions {
|
|
|
1852
1852
|
}
|
|
1853
1853
|
/**
|
|
1854
1854
|
* The glob pattern to watch relative to the base path. Glob patterns can have the following syntax:
|
|
1855
|
-
* - `*` to match
|
|
1855
|
+
* - `*` to match zero or more characters in a path segment
|
|
1856
1856
|
* - `?` to match on one character in a path segment
|
|
1857
1857
|
* - `**` to match any number of path segments, including none
|
|
1858
1858
|
* - `{}` to group conditions (e.g. `**/*.{ts,js}` matches all TypeScript and JavaScript files)
|
|
@@ -2157,6 +2157,9 @@ export interface CompletionClientCapabilities {
|
|
|
2157
2157
|
* capabilities.
|
|
2158
2158
|
*/
|
|
2159
2159
|
completionItem?: ClientCompletionItemOptions;
|
|
2160
|
+
/**
|
|
2161
|
+
* The client supports the following completion item kinds.
|
|
2162
|
+
*/
|
|
2160
2163
|
completionItemKind?: ClientCompletionItemOptionsKind;
|
|
2161
2164
|
/**
|
|
2162
2165
|
* Defines how the client handles whitespace and indentation
|
|
@@ -18,6 +18,13 @@ 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
|
+
* @proposed
|
|
26
|
+
*/
|
|
27
|
+
markupMessageSupport?: boolean;
|
|
21
28
|
};
|
|
22
29
|
/**
|
|
23
30
|
* Workspace client capabilities specific to diagnostic pull requests.
|
|
@@ -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)
|
|
@@ -53,13 +53,12 @@ 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
|
|
61
|
-
* requested.
|
|
62
|
-
*/
|
|
60
|
+
* Additional information about the context in which inline values information was
|
|
61
|
+
* requested. */
|
|
63
62
|
context: InlineValueContext;
|
|
64
63
|
};
|
|
65
64
|
/**
|
package/metaModel.schema.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"definitions": {
|
|
4
4
|
"AndType": {
|
|
5
5
|
"additionalProperties": false,
|
|
6
|
-
"description": "Represents an `and`type (e.g. TextDocumentParams & WorkDoneProgressParams`).",
|
|
6
|
+
"description": "Represents an `and` type (e.g. TextDocumentParams & WorkDoneProgressParams`).",
|
|
7
7
|
"properties": {
|
|
8
8
|
"items": {
|
|
9
9
|
"items": {
|
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.18",
|
|
5
5
|
"author": "Microsoft Corporation",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"vscode-jsonrpc": "9.0.0-next.
|
|
31
|
-
"vscode-languageserver-types": "3.17.6-next.
|
|
30
|
+
"vscode-jsonrpc": "9.0.0-next.12",
|
|
31
|
+
"vscode-languageserver-types": "3.17.6-next.7"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"prepublishOnly": "echo \"⛔ Can only publish from a secure pipeline ⛔\" && node ../build/npm/fail",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"compile": "tsc -b ./tsconfig.json",
|
|
39
39
|
"watch": "tsc -b ./tsconfig.watch.json -w",
|
|
40
40
|
"clean": "rimraf lib && rimraf dist",
|
|
41
|
-
"lint": "eslint
|
|
41
|
+
"lint": "eslint src",
|
|
42
42
|
"test": "npm run test:node && npm run test:browser",
|
|
43
43
|
"test:node": "node ../node_modules/mocha/bin/_mocha",
|
|
44
44
|
"test:browser": "npm run webpack:test:silent && node ../build/bin/runBrowserTests.js http://127.0.0.1:8080/protocol/src/browser/test/",
|