@mrclrchtr/supi-lsp 1.11.2 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@mrclrchtr/supi-code-runtime/node_modules/@mrclrchtr/supi-core/package.json +1 -1
- package/node_modules/@mrclrchtr/supi-code-runtime/package.json +2 -2
- package/node_modules/@mrclrchtr/supi-core/package.json +1 -1
- package/node_modules/vscode-languageserver-protocol/README.md +3 -3
- package/node_modules/vscode-languageserver-protocol/eslint.config.js +13 -0
- package/node_modules/vscode-languageserver-protocol/lib/browser/main.js +1 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/api.d.ts +1 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/api.js +1 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/connection.d.ts +13 -13
- package/node_modules/vscode-languageserver-protocol/lib/common/connection.js +1 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/messages.d.ts +7 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/messages.js +38 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.d.ts +5 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +3 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.d.ts +5 -3
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +3 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.d.ts +2 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +1 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.d.ts +735 -361
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.d.ts +3 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +1 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.d.ts +12 -3
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +37 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.d.ts +8 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +6 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.d.ts +34 -25
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +4 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.d.ts +3 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +1 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.d.ts +15 -8
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +3 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.d.ts +3 -7
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +1 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.d.ts +7 -6
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +2 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +97 -9
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.d.ts +3 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +1 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.d.ts +3 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +1 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.d.ts +91 -63
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +34 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.d.ts +2 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +1 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.d.ts +3 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +1 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.d.ts +44 -26
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +4 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.d.ts +4 -3
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +1 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.textDocumentContent.d.ts +93 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.textDocumentContent.js +33 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.d.ts +3 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +2 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.d.ts +3 -2
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +1 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.d.ts +3 -1
- package/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +2 -0
- package/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +9 -10
- package/node_modules/vscode-languageserver-protocol/lib/node/main.d.ts +0 -1
- package/node_modules/vscode-languageserver-protocol/lib/node/main.js +1 -2
- package/node_modules/vscode-languageserver-protocol/metaModel.schema.json +84 -3
- package/node_modules/vscode-languageserver-protocol/package.json +21 -12
- package/node_modules/vscode-languageserver-types/README.md +1 -1
- package/node_modules/vscode-languageserver-types/eslint.config.js +13 -0
- package/node_modules/vscode-languageserver-types/lib/esm/main.d.ts +483 -107
- package/node_modules/vscode-languageserver-types/lib/esm/main.js +255 -62
- package/node_modules/vscode-languageserver-types/lib/umd/main.d.ts +483 -107
- package/node_modules/vscode-languageserver-types/lib/umd/main.js +201 -8
- package/node_modules/vscode-languageserver-types/package.json +9 -8
- package/package.json +3 -3
- package/src/config/types.ts +3 -0
- package/src/diagnostics/diagnostic-context.ts +2 -1
- package/src/diagnostics/diagnostic-display.ts +2 -1
- package/src/diagnostics/diagnostics.ts +2 -1
- package/src/diagnostics/stale-diagnostics.ts +3 -1
- package/src/diagnostics/suppression-diagnostics.ts +3 -1
- package/src/format.ts +30 -3
- package/src/ui/ui.ts +3 -1
- package/node_modules/vscode-languageserver-protocol/browser.d.ts +0 -6
- package/node_modules/vscode-languageserver-protocol/browser.js +0 -7
- package/node_modules/vscode-languageserver-protocol/node.cmd +0 -5
- package/node_modules/vscode-languageserver-protocol/node.d.ts +0 -6
- package/node_modules/vscode-languageserver-protocol/node.js +0 -7
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/License.txt +0 -11
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/README.md +0 -69
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.d.ts +0 -6
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.js +0 -7
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.d.ts +0 -17
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -76
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.d.ts +0 -12
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -156
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.d.ts +0 -14
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.js +0 -81
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.d.ts +0 -32
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -96
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.d.ts +0 -358
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -1212
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.d.ts +0 -9
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -16
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/encoding.d.ts +0 -52
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/encoding.js +0 -70
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.d.ts +0 -39
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js +0 -128
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.d.ts +0 -7
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js +0 -35
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.d.ts +0 -53
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -398
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.d.ts +0 -18
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -152
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.d.ts +0 -77
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -197
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.d.ts +0 -60
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -115
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.d.ts +0 -369
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -306
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.d.ts +0 -74
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -23
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.d.ts +0 -10
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -68
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +0 -15
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -76
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/main.d.ts +0 -63
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/main.js +0 -257
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/ril.d.ts +0 -13
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/node/ril.js +0 -161
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/node.cmd +0 -5
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/node.d.ts +0 -6
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/node.js +0 -7
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/package.json +0 -45
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/thirdpartynotices.txt +0 -16
- package/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/typings/thenable.d.ts +0 -5
|
@@ -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,13 +1,13 @@
|
|
|
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
|
*
|
|
8
8
|
* @since 3.17.0
|
|
9
9
|
*/
|
|
10
|
-
export type DiagnosticClientCapabilities = {
|
|
10
|
+
export type DiagnosticClientCapabilities = DiagnosticsCapabilities & {
|
|
11
11
|
/**
|
|
12
12
|
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
13
13
|
* the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
|
@@ -18,6 +18,12 @@ export type DiagnosticClientCapabilities = {
|
|
|
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.
|
|
@@ -229,6 +235,7 @@ export declare namespace DocumentDiagnosticRequest {
|
|
|
229
235
|
const type: ProtocolRequestType<DocumentDiagnosticParams, DocumentDiagnosticReport, DocumentDiagnosticReportPartialResult, DiagnosticServerCancellationData, DiagnosticRegistrationOptions>;
|
|
230
236
|
const partialResult: ProgressType<DocumentDiagnosticReportPartialResult>;
|
|
231
237
|
type HandlerSignature = RequestHandler<DocumentDiagnosticParams, DocumentDiagnosticReport, void>;
|
|
238
|
+
const capabilities: CM<"textDocument.diagnostic", "diagnosticProvider">;
|
|
232
239
|
}
|
|
233
240
|
/**
|
|
234
241
|
* A previous result id in a workspace pull request.
|
|
@@ -327,6 +334,7 @@ export declare namespace WorkspaceDiagnosticRequest {
|
|
|
327
334
|
const type: ProtocolRequestType<WorkspaceDiagnosticParams, WorkspaceDiagnosticReport, WorkspaceDiagnosticReportPartialResult, DiagnosticServerCancellationData, void>;
|
|
328
335
|
const partialResult: ProgressType<WorkspaceDiagnosticReportPartialResult>;
|
|
329
336
|
type HandlerSignature = RequestHandler<WorkspaceDiagnosticParams, WorkspaceDiagnosticReport | null, void>;
|
|
337
|
+
const capabilities: CM<"workspace.diagnostics", "diagnosticProvider.workspaceDiagnostics">;
|
|
330
338
|
}
|
|
331
339
|
/**
|
|
332
340
|
* The diagnostic refresh request definition.
|
|
@@ -338,4 +346,5 @@ export declare namespace DiagnosticRefreshRequest {
|
|
|
338
346
|
const messageDirection: MessageDirection;
|
|
339
347
|
const type: ProtocolRequestType0<void, void, void, void>;
|
|
340
348
|
type HandlerSignature = RequestHandler0<void, void>;
|
|
349
|
+
const capabilities: CM<"workspace.diagnostics.refreshSupport", undefined>;
|
|
341
350
|
}
|
|
@@ -3,10 +3,43 @@
|
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
5
|
* ------------------------------------------------------------------------------------------ */
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
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
|
+
})();
|
|
6
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
40
|
exports.DiagnosticRefreshRequest = exports.WorkspaceDiagnosticRequest = exports.DocumentDiagnosticRequest = exports.DocumentDiagnosticReportKind = exports.DiagnosticServerCancellationData = void 0;
|
|
8
41
|
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
9
|
-
const Is = require("./utils/is");
|
|
42
|
+
const Is = __importStar(require("./utils/is"));
|
|
10
43
|
const messages_1 = require("./messages");
|
|
11
44
|
/**
|
|
12
45
|
* @since 3.17.0
|
|
@@ -48,6 +81,7 @@ var DocumentDiagnosticRequest;
|
|
|
48
81
|
DocumentDiagnosticRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
49
82
|
DocumentDiagnosticRequest.type = new messages_1.ProtocolRequestType(DocumentDiagnosticRequest.method);
|
|
50
83
|
DocumentDiagnosticRequest.partialResult = new vscode_jsonrpc_1.ProgressType();
|
|
84
|
+
DocumentDiagnosticRequest.capabilities = messages_1.CM.create('textDocument.diagnostic', 'diagnosticProvider');
|
|
51
85
|
})(DocumentDiagnosticRequest || (exports.DocumentDiagnosticRequest = DocumentDiagnosticRequest = {}));
|
|
52
86
|
/**
|
|
53
87
|
* The workspace diagnostic request definition.
|
|
@@ -60,6 +94,7 @@ var WorkspaceDiagnosticRequest;
|
|
|
60
94
|
WorkspaceDiagnosticRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
61
95
|
WorkspaceDiagnosticRequest.type = new messages_1.ProtocolRequestType(WorkspaceDiagnosticRequest.method);
|
|
62
96
|
WorkspaceDiagnosticRequest.partialResult = new vscode_jsonrpc_1.ProgressType();
|
|
97
|
+
WorkspaceDiagnosticRequest.capabilities = messages_1.CM.create('workspace.diagnostics', 'diagnosticProvider.workspaceDiagnostics');
|
|
63
98
|
})(WorkspaceDiagnosticRequest || (exports.WorkspaceDiagnosticRequest = WorkspaceDiagnosticRequest = {}));
|
|
64
99
|
/**
|
|
65
100
|
* The diagnostic refresh request definition.
|
|
@@ -71,4 +106,5 @@ var DiagnosticRefreshRequest;
|
|
|
71
106
|
DiagnosticRefreshRequest.method = `workspace/diagnostic/refresh`;
|
|
72
107
|
DiagnosticRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
73
108
|
DiagnosticRefreshRequest.type = new messages_1.ProtocolRequestType0(DiagnosticRefreshRequest.method);
|
|
109
|
+
DiagnosticRefreshRequest.capabilities = messages_1.CM.create('workspace.diagnostics.refreshSupport', undefined);
|
|
74
110
|
})(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,31 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* @since 3.18.0
|
|
7
|
+
*/
|
|
8
|
+
export type ClientFoldingRangeKindOptions = {
|
|
9
|
+
/**
|
|
10
|
+
* The folding range kind values the client supports. When this
|
|
11
|
+
* property exists the client also guarantees that it will
|
|
12
|
+
* handle values outside its set gracefully and falls back
|
|
13
|
+
* to a default value when unknown.
|
|
14
|
+
*/
|
|
15
|
+
valueSet?: FoldingRangeKind[];
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @since 3.18.0
|
|
19
|
+
*/
|
|
20
|
+
export type ClientFoldingRangeOptions = {
|
|
21
|
+
/**
|
|
22
|
+
* If set, the client signals that it supports setting collapsedText on
|
|
23
|
+
* folding ranges to display custom labels instead of the default text.
|
|
24
|
+
*
|
|
25
|
+
* @since 3.17.0
|
|
26
|
+
*/
|
|
27
|
+
collapsedText?: boolean;
|
|
28
|
+
};
|
|
5
29
|
export interface FoldingRangeClientCapabilities {
|
|
6
30
|
/**
|
|
7
31
|
* Whether implementation supports dynamic registration for folding range
|
|
@@ -27,37 +51,20 @@ export interface FoldingRangeClientCapabilities {
|
|
|
27
51
|
*
|
|
28
52
|
* @since 3.17.0
|
|
29
53
|
*/
|
|
30
|
-
foldingRangeKind?:
|
|
31
|
-
/**
|
|
32
|
-
* The folding range kind values the client supports. When this
|
|
33
|
-
* property exists the client also guarantees that it will
|
|
34
|
-
* handle values outside its set gracefully and falls back
|
|
35
|
-
* to a default value when unknown.
|
|
36
|
-
*/
|
|
37
|
-
valueSet?: FoldingRangeKind[];
|
|
38
|
-
};
|
|
54
|
+
foldingRangeKind?: ClientFoldingRangeKindOptions;
|
|
39
55
|
/**
|
|
40
56
|
* Specific options for the folding range.
|
|
41
57
|
*
|
|
42
58
|
* @since 3.17.0
|
|
43
59
|
*/
|
|
44
|
-
foldingRange?:
|
|
45
|
-
/**
|
|
46
|
-
* If set, the client signals that it supports setting collapsedText on
|
|
47
|
-
* folding ranges to display custom labels instead of the default text.
|
|
48
|
-
*
|
|
49
|
-
* @since 3.17.0
|
|
50
|
-
*/
|
|
51
|
-
collapsedText?: boolean;
|
|
52
|
-
};
|
|
60
|
+
foldingRange?: ClientFoldingRangeOptions;
|
|
53
61
|
}
|
|
54
62
|
/**
|
|
55
63
|
* Client workspace capabilities specific to folding ranges
|
|
56
64
|
*
|
|
57
65
|
* @since 3.18.0
|
|
58
|
-
* @proposed
|
|
59
66
|
*/
|
|
60
|
-
export
|
|
67
|
+
export type FoldingRangeWorkspaceClientCapabilities = {
|
|
61
68
|
/**
|
|
62
69
|
* Whether the client implementation supports a refresh request sent from the
|
|
63
70
|
* server to the client.
|
|
@@ -68,10 +75,9 @@ export interface FoldingRangeWorkspaceClientCapabilities {
|
|
|
68
75
|
* change that requires such a calculation.
|
|
69
76
|
*
|
|
70
77
|
* @since 3.18.0
|
|
71
|
-
* @proposed
|
|
72
78
|
*/
|
|
73
79
|
refreshSupport?: boolean;
|
|
74
|
-
}
|
|
80
|
+
};
|
|
75
81
|
export interface FoldingRangeOptions extends WorkDoneProgressOptions {
|
|
76
82
|
}
|
|
77
83
|
export interface FoldingRangeRegistrationOptions extends TextDocumentRegistrationOptions, FoldingRangeOptions, StaticRegistrationOptions {
|
|
@@ -96,14 +102,17 @@ export declare namespace FoldingRangeRequest {
|
|
|
96
102
|
const messageDirection: MessageDirection;
|
|
97
103
|
const type: ProtocolRequestType<FoldingRangeParams, FoldingRange[] | null, FoldingRange[], void, FoldingRangeRegistrationOptions>;
|
|
98
104
|
type HandlerSignature = RequestHandler<FoldingRangeParams, FoldingRange[] | null, void>;
|
|
105
|
+
const capabilities: CM<"textDocument.foldingRange", "foldingRangeProvider">;
|
|
99
106
|
}
|
|
100
107
|
/**
|
|
108
|
+
* A request to refresh the folding ranges in a document.
|
|
109
|
+
*
|
|
101
110
|
* @since 3.18.0
|
|
102
|
-
* @proposed
|
|
103
111
|
*/
|
|
104
112
|
export declare namespace FoldingRangeRefreshRequest {
|
|
105
113
|
const method: `workspace/foldingRange/refresh`;
|
|
106
114
|
const messageDirection: MessageDirection;
|
|
107
115
|
const type: ProtocolRequestType0<void, void, void, void>;
|
|
108
116
|
type HandlerSignature = RequestHandler0<void, void>;
|
|
117
|
+
const capabilities: CM<"workspace.foldingRange.refreshSupport", undefined>;
|
|
109
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,16 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* @since 3.18.0
|
|
7
|
+
*/
|
|
8
|
+
export type ClientInlayHintResolveOptions = {
|
|
9
|
+
/**
|
|
10
|
+
* The properties that a client can resolve lazily.
|
|
11
|
+
*/
|
|
12
|
+
properties: string[];
|
|
13
|
+
};
|
|
5
14
|
/**
|
|
6
15
|
* Inlay hint client capabilities.
|
|
7
16
|
*
|
|
@@ -16,12 +25,7 @@ export type InlayHintClientCapabilities = {
|
|
|
16
25
|
* Indicates which properties a client can resolve lazily on an inlay
|
|
17
26
|
* hint.
|
|
18
27
|
*/
|
|
19
|
-
resolveSupport?:
|
|
20
|
-
/**
|
|
21
|
-
* The properties that a client can resolve lazily.
|
|
22
|
-
*/
|
|
23
|
-
properties: string[];
|
|
24
|
-
};
|
|
28
|
+
resolveSupport?: ClientInlayHintResolveOptions;
|
|
25
29
|
};
|
|
26
30
|
/**
|
|
27
31
|
* Client workspace capabilities specific to inlay hints.
|
|
@@ -85,6 +89,7 @@ export declare namespace InlayHintRequest {
|
|
|
85
89
|
const messageDirection: MessageDirection;
|
|
86
90
|
const type: ProtocolRequestType<InlayHintParams, InlayHint[] | null, InlayHint[], void, InlayHintRegistrationOptions>;
|
|
87
91
|
type HandlerSignature = RequestHandler<InlayHintParams, InlayHint[] | null, void>;
|
|
92
|
+
const capabilities: CM<"textDocument.inlayHint", "inlayHintProvider">;
|
|
88
93
|
}
|
|
89
94
|
/**
|
|
90
95
|
* A request to resolve additional properties for an inlay hint.
|
|
@@ -98,6 +103,7 @@ export declare namespace InlayHintResolveRequest {
|
|
|
98
103
|
const messageDirection: MessageDirection;
|
|
99
104
|
const type: ProtocolRequestType<InlayHint, InlayHint, never, void, void>;
|
|
100
105
|
type HandlerSignature = RequestHandler<InlayHint, InlayHint, void>;
|
|
106
|
+
const capabilities: CM<"textDocument.inlayHint.resolveSupport", "inlayHintProvider.resolveProvider">;
|
|
101
107
|
}
|
|
102
108
|
/**
|
|
103
109
|
* @since 3.17.0
|
|
@@ -107,4 +113,5 @@ export declare namespace InlayHintRefreshRequest {
|
|
|
107
113
|
const messageDirection: MessageDirection;
|
|
108
114
|
const type: ProtocolRequestType0<void, void, void, void>;
|
|
109
115
|
type HandlerSignature = RequestHandler0<void, void>;
|
|
116
|
+
const capabilities: CM<"workspace.inlayHint.refreshSupport", undefined>;
|
|
110
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 = {}));
|
package/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.d.ts
CHANGED
|
@@ -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,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
|
/**
|
|
@@ -74,6 +73,7 @@ export declare namespace InlineValueRequest {
|
|
|
74
73
|
const messageDirection: MessageDirection;
|
|
75
74
|
const type: ProtocolRequestType<InlineValueParams, InlineValue[] | null, InlineValue[], void, InlineValueRegistrationOptions>;
|
|
76
75
|
type HandlerSignature = RequestHandler<InlineValueParams, InlineValue[] | null, void>;
|
|
76
|
+
const capabilities: CM<"textDocument.inlineValue", "inlineValueProvider">;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
79
|
* @since 3.17.0
|
|
@@ -83,4 +83,5 @@ export declare namespace InlineValueRefreshRequest {
|
|
|
83
83
|
const messageDirection: MessageDirection;
|
|
84
84
|
const type: ProtocolRequestType0<void, void, void, void>;
|
|
85
85
|
type HandlerSignature = RequestHandler0<void, void>;
|
|
86
|
+
const capabilities: CM<"workspace.inlineValue.refreshSupport", undefined>;
|
|
86
87
|
}
|
|
@@ -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 = {}));
|