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
|
@@ -19,13 +19,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
19
19
|
}) : function(o, v) {
|
|
20
20
|
o["default"] = v;
|
|
21
21
|
});
|
|
22
|
-
var __importStar = (this && this.__importStar) || function (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
22
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
+
var ownKeys = function(o) {
|
|
24
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
+
var ar = [];
|
|
26
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
return ownKeys(o);
|
|
30
|
+
};
|
|
31
|
+
return function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
29
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
40
|
exports.DiagnosticRefreshRequest = exports.WorkspaceDiagnosticRequest = exports.DocumentDiagnosticRequest = exports.DocumentDiagnosticReportKind = exports.DiagnosticServerCancellationData = void 0;
|
|
31
41
|
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
@@ -71,6 +81,7 @@ var DocumentDiagnosticRequest;
|
|
|
71
81
|
DocumentDiagnosticRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
72
82
|
DocumentDiagnosticRequest.type = new messages_1.ProtocolRequestType(DocumentDiagnosticRequest.method);
|
|
73
83
|
DocumentDiagnosticRequest.partialResult = new vscode_jsonrpc_1.ProgressType();
|
|
84
|
+
DocumentDiagnosticRequest.capabilities = messages_1.CM.create('textDocument.diagnostic', 'diagnosticProvider');
|
|
74
85
|
})(DocumentDiagnosticRequest || (exports.DocumentDiagnosticRequest = DocumentDiagnosticRequest = {}));
|
|
75
86
|
/**
|
|
76
87
|
* The workspace diagnostic request definition.
|
|
@@ -83,6 +94,7 @@ var WorkspaceDiagnosticRequest;
|
|
|
83
94
|
WorkspaceDiagnosticRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
84
95
|
WorkspaceDiagnosticRequest.type = new messages_1.ProtocolRequestType(WorkspaceDiagnosticRequest.method);
|
|
85
96
|
WorkspaceDiagnosticRequest.partialResult = new vscode_jsonrpc_1.ProgressType();
|
|
97
|
+
WorkspaceDiagnosticRequest.capabilities = messages_1.CM.create('workspace.diagnostics', 'diagnosticProvider.workspaceDiagnostics');
|
|
86
98
|
})(WorkspaceDiagnosticRequest || (exports.WorkspaceDiagnosticRequest = WorkspaceDiagnosticRequest = {}));
|
|
87
99
|
/**
|
|
88
100
|
* The diagnostic refresh request definition.
|
|
@@ -94,4 +106,5 @@ var DiagnosticRefreshRequest;
|
|
|
94
106
|
DiagnosticRefreshRequest.method = `workspace/diagnostic/refresh`;
|
|
95
107
|
DiagnosticRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
96
108
|
DiagnosticRefreshRequest.type = new messages_1.ProtocolRequestType0(DiagnosticRefreshRequest.method);
|
|
109
|
+
DiagnosticRefreshRequest.capabilities = messages_1.CM.create('workspace.diagnostics.refreshSupport', undefined);
|
|
97
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
|
*
|
|
@@ -242,6 +242,7 @@ export declare namespace WillCreateFilesRequest {
|
|
|
242
242
|
const messageDirection: MessageDirection;
|
|
243
243
|
const type: ProtocolRequestType<CreateFilesParams, WorkspaceEdit | null, never, void, FileOperationRegistrationOptions>;
|
|
244
244
|
type HandlerSignature = RequestHandler<CreateFilesParams, WorkspaceEdit | undefined | null, void>;
|
|
245
|
+
const capabilities: CM<"workspace.fileOperations.willCreate", "workspace.fileOperations.willCreate">;
|
|
245
246
|
}
|
|
246
247
|
/**
|
|
247
248
|
* The did create files notification is sent from the client to the server when
|
|
@@ -254,6 +255,7 @@ export declare namespace DidCreateFilesNotification {
|
|
|
254
255
|
const messageDirection: MessageDirection;
|
|
255
256
|
const type: ProtocolNotificationType<CreateFilesParams, FileOperationRegistrationOptions>;
|
|
256
257
|
type HandlerSignature = NotificationHandler<CreateFilesParams>;
|
|
258
|
+
const capabilities: CM<"workspace.fileOperations.didCreate", "workspace.fileOperations.didCreate">;
|
|
257
259
|
}
|
|
258
260
|
/**
|
|
259
261
|
* The will rename files request is sent from the client to the server before files are actually
|
|
@@ -266,6 +268,7 @@ export declare namespace WillRenameFilesRequest {
|
|
|
266
268
|
const messageDirection: MessageDirection;
|
|
267
269
|
const type: ProtocolRequestType<RenameFilesParams, WorkspaceEdit | null, never, void, FileOperationRegistrationOptions>;
|
|
268
270
|
type HandlerSignature = RequestHandler<RenameFilesParams, WorkspaceEdit | undefined | null, void>;
|
|
271
|
+
const capabilities: CM<"workspace.fileOperations.willRename", "workspace.fileOperations.willRename">;
|
|
269
272
|
}
|
|
270
273
|
/**
|
|
271
274
|
* The did rename files notification is sent from the client to the server when
|
|
@@ -278,6 +281,7 @@ export declare namespace DidRenameFilesNotification {
|
|
|
278
281
|
const messageDirection: MessageDirection;
|
|
279
282
|
const type: ProtocolNotificationType<RenameFilesParams, FileOperationRegistrationOptions>;
|
|
280
283
|
type HandlerSignature = NotificationHandler<RenameFilesParams>;
|
|
284
|
+
const capabilities: CM<"workspace.fileOperations.didRename", "workspace.fileOperations.didRename">;
|
|
281
285
|
}
|
|
282
286
|
/**
|
|
283
287
|
* The will delete files request is sent from the client to the server before files are actually
|
|
@@ -290,6 +294,7 @@ export declare namespace DidDeleteFilesNotification {
|
|
|
290
294
|
const messageDirection: MessageDirection;
|
|
291
295
|
const type: ProtocolNotificationType<DeleteFilesParams, FileOperationRegistrationOptions>;
|
|
292
296
|
type HandlerSignature = NotificationHandler<DeleteFilesParams>;
|
|
297
|
+
const capabilities: CM<"workspace.fileOperations.didDelete", "workspace.fileOperations.didDelete">;
|
|
293
298
|
}
|
|
294
299
|
/**
|
|
295
300
|
* The did delete files notification is sent from the client to the server when
|
|
@@ -302,5 +307,6 @@ export declare namespace WillDeleteFilesRequest {
|
|
|
302
307
|
const messageDirection: MessageDirection;
|
|
303
308
|
const type: ProtocolRequestType<DeleteFilesParams, WorkspaceEdit | null, never, void, FileOperationRegistrationOptions>;
|
|
304
309
|
type HandlerSignature = RequestHandler<DeleteFilesParams, WorkspaceEdit | undefined | null, void>;
|
|
310
|
+
const capabilities: CM<"workspace.fileOperations.willDelete", "workspace.fileOperations.willDelete">;
|
|
305
311
|
}
|
|
306
312
|
export {};
|
|
@@ -38,6 +38,7 @@ var WillCreateFilesRequest;
|
|
|
38
38
|
WillCreateFilesRequest.method = 'workspace/willCreateFiles';
|
|
39
39
|
WillCreateFilesRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
40
40
|
WillCreateFilesRequest.type = new messages_1.ProtocolRequestType(WillCreateFilesRequest.method);
|
|
41
|
+
WillCreateFilesRequest.capabilities = messages_1.CM.create('workspace.fileOperations.willCreate', 'workspace.fileOperations.willCreate');
|
|
41
42
|
})(WillCreateFilesRequest || (exports.WillCreateFilesRequest = WillCreateFilesRequest = {}));
|
|
42
43
|
/**
|
|
43
44
|
* The did create files notification is sent from the client to the server when
|
|
@@ -50,6 +51,7 @@ var DidCreateFilesNotification;
|
|
|
50
51
|
DidCreateFilesNotification.method = 'workspace/didCreateFiles';
|
|
51
52
|
DidCreateFilesNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
52
53
|
DidCreateFilesNotification.type = new messages_1.ProtocolNotificationType(DidCreateFilesNotification.method);
|
|
54
|
+
DidCreateFilesNotification.capabilities = messages_1.CM.create('workspace.fileOperations.didCreate', 'workspace.fileOperations.didCreate');
|
|
53
55
|
})(DidCreateFilesNotification || (exports.DidCreateFilesNotification = DidCreateFilesNotification = {}));
|
|
54
56
|
/**
|
|
55
57
|
* The will rename files request is sent from the client to the server before files are actually
|
|
@@ -62,6 +64,7 @@ var WillRenameFilesRequest;
|
|
|
62
64
|
WillRenameFilesRequest.method = 'workspace/willRenameFiles';
|
|
63
65
|
WillRenameFilesRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
64
66
|
WillRenameFilesRequest.type = new messages_1.ProtocolRequestType(WillRenameFilesRequest.method);
|
|
67
|
+
WillRenameFilesRequest.capabilities = messages_1.CM.create('workspace.fileOperations.willRename', 'workspace.fileOperations.willRename');
|
|
65
68
|
})(WillRenameFilesRequest || (exports.WillRenameFilesRequest = WillRenameFilesRequest = {}));
|
|
66
69
|
/**
|
|
67
70
|
* The did rename files notification is sent from the client to the server when
|
|
@@ -74,6 +77,7 @@ var DidRenameFilesNotification;
|
|
|
74
77
|
DidRenameFilesNotification.method = 'workspace/didRenameFiles';
|
|
75
78
|
DidRenameFilesNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
76
79
|
DidRenameFilesNotification.type = new messages_1.ProtocolNotificationType(DidRenameFilesNotification.method);
|
|
80
|
+
DidRenameFilesNotification.capabilities = messages_1.CM.create('workspace.fileOperations.didRename', 'workspace.fileOperations.didRename');
|
|
77
81
|
})(DidRenameFilesNotification || (exports.DidRenameFilesNotification = DidRenameFilesNotification = {}));
|
|
78
82
|
/**
|
|
79
83
|
* The will delete files request is sent from the client to the server before files are actually
|
|
@@ -86,6 +90,7 @@ var DidDeleteFilesNotification;
|
|
|
86
90
|
DidDeleteFilesNotification.method = 'workspace/didDeleteFiles';
|
|
87
91
|
DidDeleteFilesNotification.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
88
92
|
DidDeleteFilesNotification.type = new messages_1.ProtocolNotificationType(DidDeleteFilesNotification.method);
|
|
93
|
+
DidDeleteFilesNotification.capabilities = messages_1.CM.create('workspace.fileOperations.didDelete', 'workspace.fileOperations.didDelete');
|
|
89
94
|
})(DidDeleteFilesNotification || (exports.DidDeleteFilesNotification = DidDeleteFilesNotification = {}));
|
|
90
95
|
/**
|
|
91
96
|
* The did delete files notification is sent from the client to the server when
|
|
@@ -98,4 +103,5 @@ var WillDeleteFilesRequest;
|
|
|
98
103
|
WillDeleteFilesRequest.method = 'workspace/willDeleteFiles';
|
|
99
104
|
WillDeleteFilesRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
100
105
|
WillDeleteFilesRequest.type = new messages_1.ProtocolRequestType(WillDeleteFilesRequest.method);
|
|
106
|
+
WillDeleteFilesRequest.capabilities = messages_1.CM.create('workspace.fileOperations.willDelete', 'workspace.fileOperations.willDelete');
|
|
101
107
|
})(WillDeleteFilesRequest || (exports.WillDeleteFilesRequest = WillDeleteFilesRequest = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler, RequestHandler0 } from 'vscode-jsonrpc';
|
|
2
2
|
import { TextDocumentIdentifier, uinteger, FoldingRange, FoldingRangeKind } from 'vscode-languageserver-types';
|
|
3
|
-
import { MessageDirection, ProtocolRequestType, ProtocolRequestType0 } from './messages';
|
|
4
|
-
import type
|
|
3
|
+
import { CM, MessageDirection, ProtocolRequestType, ProtocolRequestType0 } from './messages';
|
|
4
|
+
import { type TextDocumentRegistrationOptions, type StaticRegistrationOptions, type PartialResultParams, type WorkDoneProgressParams, type WorkDoneProgressOptions } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* @since 3.18.0
|
|
7
7
|
*/
|
|
@@ -104,6 +104,7 @@ export declare namespace FoldingRangeRequest {
|
|
|
104
104
|
const messageDirection: MessageDirection;
|
|
105
105
|
const type: ProtocolRequestType<FoldingRangeParams, FoldingRange[] | null, FoldingRange[], void, FoldingRangeRegistrationOptions>;
|
|
106
106
|
type HandlerSignature = RequestHandler<FoldingRangeParams, FoldingRange[] | null, void>;
|
|
107
|
+
const capabilities: CM<"textDocument.foldingRange", "foldingRangeProvider">;
|
|
107
108
|
}
|
|
108
109
|
/**
|
|
109
110
|
* @since 3.18.0
|
|
@@ -114,4 +115,5 @@ export declare namespace FoldingRangeRefreshRequest {
|
|
|
114
115
|
const messageDirection: MessageDirection;
|
|
115
116
|
const type: ProtocolRequestType0<void, void, void, void>;
|
|
116
117
|
type HandlerSignature = RequestHandler0<void, void>;
|
|
118
|
+
const capabilities: CM<"workspace.foldingRange.refreshSupport", undefined>;
|
|
117
119
|
}
|
|
@@ -17,6 +17,7 @@ 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
|
/**
|
|
22
23
|
* @since 3.18.0
|
|
@@ -27,4 +28,5 @@ var FoldingRangeRefreshRequest;
|
|
|
27
28
|
FoldingRangeRefreshRequest.method = `workspace/foldingRange/refresh`;
|
|
28
29
|
FoldingRangeRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
29
30
|
FoldingRangeRefreshRequest.type = new messages_1.ProtocolRequestType0(FoldingRangeRefreshRequest.method);
|
|
31
|
+
FoldingRangeRefreshRequest.capabilities = messages_1.CM.create('workspace.foldingRange.refreshSupport', undefined);
|
|
30
32
|
})(FoldingRangeRefreshRequest || (exports.FoldingRangeRefreshRequest = FoldingRangeRefreshRequest = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { Definition, DefinitionLink, Location, LocationLink } from 'vscode-languageserver-types';
|
|
3
|
-
import { MessageDirection, ProtocolRequestType } from './messages';
|
|
4
|
-
import type
|
|
3
|
+
import { CM, MessageDirection, ProtocolRequestType } from './messages';
|
|
4
|
+
import { type TextDocumentRegistrationOptions, type StaticRegistrationOptions, type TextDocumentPositionParams, type PartialResultParams, type WorkDoneProgressParams, type WorkDoneProgressOptions } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* @since 3.6.0
|
|
7
7
|
*/
|
|
@@ -35,4 +35,5 @@ export declare namespace ImplementationRequest {
|
|
|
35
35
|
const messageDirection: MessageDirection;
|
|
36
36
|
const type: ProtocolRequestType<ImplementationParams, Definition | LocationLink[] | null, Location[] | LocationLink[], void, ImplementationRegistrationOptions>;
|
|
37
37
|
type HandlerSignature = RequestHandler<ImplementationParams, Definition | DefinitionLink[] | null, void>;
|
|
38
|
+
const capabilities: CM<"textDocument.implementation", "implementationProvider">;
|
|
38
39
|
}
|
|
@@ -18,4 +18,5 @@ var ImplementationRequest;
|
|
|
18
18
|
ImplementationRequest.method = 'textDocument/implementation';
|
|
19
19
|
ImplementationRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
20
20
|
ImplementationRequest.type = new messages_1.ProtocolRequestType(ImplementationRequest.method);
|
|
21
|
+
ImplementationRequest.capabilities = messages_1.CM.create('textDocument.implementation', 'implementationProvider');
|
|
21
22
|
})(ImplementationRequest || (exports.ImplementationRequest = ImplementationRequest = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler, RequestHandler0 } from 'vscode-jsonrpc';
|
|
2
2
|
import { Range, TextDocumentIdentifier, InlayHint } from 'vscode-languageserver-types';
|
|
3
|
-
import { MessageDirection, ProtocolRequestType, ProtocolRequestType0 } from './messages';
|
|
4
|
-
import type
|
|
3
|
+
import { CM, MessageDirection, ProtocolRequestType, ProtocolRequestType0 } from './messages';
|
|
4
|
+
import { type StaticRegistrationOptions, type TextDocumentRegistrationOptions, type WorkDoneProgressOptions, type WorkDoneProgressParams } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* @since 3.18.0
|
|
7
7
|
*/
|
|
@@ -89,6 +89,7 @@ export declare namespace InlayHintRequest {
|
|
|
89
89
|
const messageDirection: MessageDirection;
|
|
90
90
|
const type: ProtocolRequestType<InlayHintParams, InlayHint[] | null, InlayHint[], void, InlayHintRegistrationOptions>;
|
|
91
91
|
type HandlerSignature = RequestHandler<InlayHintParams, InlayHint[] | null, void>;
|
|
92
|
+
const capabilities: CM<"textDocument.inlayHint", "inlayHintProvider">;
|
|
92
93
|
}
|
|
93
94
|
/**
|
|
94
95
|
* A request to resolve additional properties for an inlay hint.
|
|
@@ -102,6 +103,7 @@ export declare namespace InlayHintResolveRequest {
|
|
|
102
103
|
const messageDirection: MessageDirection;
|
|
103
104
|
const type: ProtocolRequestType<InlayHint, InlayHint, never, void, void>;
|
|
104
105
|
type HandlerSignature = RequestHandler<InlayHint, InlayHint, void>;
|
|
106
|
+
const capabilities: CM<"textDocument.inlayHint.resolveSupport", "inlayHintProvider.resolveProvider">;
|
|
105
107
|
}
|
|
106
108
|
/**
|
|
107
109
|
* @since 3.17.0
|
|
@@ -111,4 +113,5 @@ export declare namespace InlayHintRefreshRequest {
|
|
|
111
113
|
const messageDirection: MessageDirection;
|
|
112
114
|
const type: ProtocolRequestType0<void, void, void, void>;
|
|
113
115
|
type HandlerSignature = RequestHandler0<void, void>;
|
|
116
|
+
const capabilities: CM<"workspace.inlayHint.refreshSupport", undefined>;
|
|
114
117
|
}
|
|
@@ -18,6 +18,7 @@ var InlayHintRequest;
|
|
|
18
18
|
InlayHintRequest.method = 'textDocument/inlayHint';
|
|
19
19
|
InlayHintRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
20
20
|
InlayHintRequest.type = new messages_1.ProtocolRequestType(InlayHintRequest.method);
|
|
21
|
+
InlayHintRequest.capabilities = messages_1.CM.create('textDocument.inlayHint', 'inlayHintProvider');
|
|
21
22
|
})(InlayHintRequest || (exports.InlayHintRequest = InlayHintRequest = {}));
|
|
22
23
|
/**
|
|
23
24
|
* A request to resolve additional properties for an inlay hint.
|
|
@@ -31,6 +32,7 @@ var InlayHintResolveRequest;
|
|
|
31
32
|
InlayHintResolveRequest.method = 'inlayHint/resolve';
|
|
32
33
|
InlayHintResolveRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
33
34
|
InlayHintResolveRequest.type = new messages_1.ProtocolRequestType(InlayHintResolveRequest.method);
|
|
35
|
+
InlayHintResolveRequest.capabilities = messages_1.CM.create('textDocument.inlayHint.resolveSupport', 'inlayHintProvider.resolveProvider');
|
|
34
36
|
})(InlayHintResolveRequest || (exports.InlayHintResolveRequest = InlayHintResolveRequest = {}));
|
|
35
37
|
/**
|
|
36
38
|
* @since 3.17.0
|
|
@@ -40,4 +42,5 @@ var InlayHintRefreshRequest;
|
|
|
40
42
|
InlayHintRefreshRequest.method = `workspace/inlayHint/refresh`;
|
|
41
43
|
InlayHintRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
42
44
|
InlayHintRefreshRequest.type = new messages_1.ProtocolRequestType0(InlayHintRefreshRequest.method);
|
|
45
|
+
InlayHintRefreshRequest.capabilities = messages_1.CM.create('workspace.inlayHint.refreshSupport', undefined);
|
|
43
46
|
})(InlayHintRefreshRequest || (exports.InlayHintRefreshRequest = InlayHintRefreshRequest = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
*
|
|
@@ -54,4 +54,5 @@ export declare namespace InlineCompletionRequest {
|
|
|
54
54
|
const messageDirection: MessageDirection;
|
|
55
55
|
const type: ProtocolRequestType<InlineCompletionParams, InlineCompletionList | InlineCompletionItem[] | null, InlineCompletionItem[], void, InlineCompletionRegistrationOptions>;
|
|
56
56
|
type HandlerSignature = RequestHandler<InlineCompletionParams, InlineCompletionList | InlineCompletionItem[] | null, void>;
|
|
57
|
+
const capabilities: CM<"textDocument.inlineCompletion", "inlineCompletionProvider">;
|
|
57
58
|
}
|
|
@@ -19,4 +19,5 @@ var InlineCompletionRequest;
|
|
|
19
19
|
InlineCompletionRequest.method = 'textDocument/inlineCompletion';
|
|
20
20
|
InlineCompletionRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
21
21
|
InlineCompletionRequest.type = new messages_1.ProtocolRequestType(InlineCompletionRequest.method);
|
|
22
|
+
InlineCompletionRequest.capabilities = messages_1.CM.create('textDocument.inlineCompletion', 'inlineCompletionProvider');
|
|
22
23
|
})(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
|
*
|
|
@@ -74,6 +74,7 @@ export declare namespace InlineValueRequest {
|
|
|
74
74
|
const messageDirection: MessageDirection;
|
|
75
75
|
const type: ProtocolRequestType<InlineValueParams, InlineValue[] | null, InlineValue[], void, InlineValueRegistrationOptions>;
|
|
76
76
|
type HandlerSignature = RequestHandler<InlineValueParams, InlineValue[] | null, void>;
|
|
77
|
+
const capabilities: CM<"textDocument.inlineValue", "inlineValueProvider">;
|
|
77
78
|
}
|
|
78
79
|
/**
|
|
79
80
|
* @since 3.17.0
|
|
@@ -83,4 +84,5 @@ export declare namespace InlineValueRefreshRequest {
|
|
|
83
84
|
const messageDirection: MessageDirection;
|
|
84
85
|
const type: ProtocolRequestType0<void, void, void, void>;
|
|
85
86
|
type HandlerSignature = RequestHandler0<void, void>;
|
|
87
|
+
const capabilities: CM<"workspace.inlineValue.refreshSupport", undefined>;
|
|
86
88
|
}
|
|
@@ -18,6 +18,7 @@ var InlineValueRequest;
|
|
|
18
18
|
InlineValueRequest.method = 'textDocument/inlineValue';
|
|
19
19
|
InlineValueRequest.messageDirection = messages_1.MessageDirection.clientToServer;
|
|
20
20
|
InlineValueRequest.type = new messages_1.ProtocolRequestType(InlineValueRequest.method);
|
|
21
|
+
InlineValueRequest.capabilities = messages_1.CM.create('textDocument.inlineValue', 'inlineValueProvider');
|
|
21
22
|
})(InlineValueRequest || (exports.InlineValueRequest = InlineValueRequest = {}));
|
|
22
23
|
/**
|
|
23
24
|
* @since 3.17.0
|
|
@@ -27,4 +28,5 @@ var InlineValueRefreshRequest;
|
|
|
27
28
|
InlineValueRefreshRequest.method = `workspace/inlineValue/refresh`;
|
|
28
29
|
InlineValueRefreshRequest.messageDirection = messages_1.MessageDirection.serverToClient;
|
|
29
30
|
InlineValueRefreshRequest.type = new messages_1.ProtocolRequestType0(InlineValueRefreshRequest.method);
|
|
31
|
+
InlineValueRefreshRequest.capabilities = messages_1.CM.create('workspace.inlineValue.refreshSupport', undefined);
|
|
30
32
|
})(InlineValueRefreshRequest || (exports.InlineValueRefreshRequest = InlineValueRefreshRequest = {}));
|