vscode-languageserver-protocol 3.17.0-next.9 → 3.17.2-next.1
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 +1 -1
- package/lib/browser/main.js +5 -1
- package/lib/common/api.d.ts +1 -37
- package/lib/common/api.js +6 -15
- package/lib/common/connection.d.ts +26 -2
- package/lib/common/protocol.$.d.ts +1 -0
- package/lib/common/protocol.$.js +36 -0
- package/lib/common/protocol.callHierarchy.d.ts +1 -1
- package/lib/common/protocol.colorProvider.d.ts +1 -1
- package/lib/common/protocol.configuration.d.ts +4 -16
- package/lib/common/protocol.configuration.js +1 -0
- package/lib/common/protocol.d.ts +438 -73
- package/lib/common/protocol.declaration.d.ts +2 -2
- package/lib/common/protocol.declaration.js +2 -2
- package/lib/common/{proposed.diagnostic.d.ts → protocol.diagnostic.d.ts} +85 -71
- package/lib/common/{proposed.diagnostic.js → protocol.diagnostic.js} +8 -8
- package/lib/common/protocol.foldingRange.d.ts +40 -27
- package/lib/common/protocol.foldingRange.js +1 -19
- package/lib/common/protocol.implementation.d.ts +2 -2
- package/lib/common/protocol.implementation.js +2 -2
- package/lib/common/protocol.inlayHint.d.ts +107 -0
- package/lib/common/protocol.inlayHint.js +41 -0
- package/lib/common/protocol.inlineValue.d.ts +84 -0
- package/lib/common/protocol.inlineValue.js +29 -0
- package/lib/common/protocol.js +131 -17
- package/lib/common/protocol.linkedEditingRange.d.ts +2 -2
- package/lib/common/protocol.moniker.d.ts +13 -11
- package/lib/common/protocol.moniker.js +8 -8
- package/lib/common/protocol.notebook.d.ts +391 -0
- package/lib/common/protocol.notebook.js +206 -0
- package/lib/common/protocol.progress.d.ts +2 -14
- package/lib/common/protocol.progress.js +4 -2
- package/lib/common/protocol.selectionRange.d.ts +2 -2
- package/lib/common/protocol.semanticTokens.d.ts +23 -1
- package/lib/common/protocol.typeDefinition.d.ts +1 -1
- package/lib/common/{proposed.typeHierarchy.d.ts → protocol.typeHierarchy.d.ts} +19 -22
- package/lib/common/{proposed.typeHierarchy.js → protocol.typeHierarchy.js} +4 -4
- package/lib/common/{protocol.workspaceFolders.d.ts → protocol.workspaceFolder.d.ts} +12 -42
- package/lib/common/{protocol.workspaceFolders.js → protocol.workspaceFolder.js} +1 -1
- package/lib/node/main.js +5 -1
- package/metaModel.schema.json +705 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://npmjs.org/package/vscode-languageclient)
|
|
5
5
|
[](https://travis-ci.org/Microsoft/vscode-languageserver-node)
|
|
6
6
|
|
|
7
|
-
This npm module is a tool independent implementation of the language server protocol and can be used in any type of node application.
|
|
7
|
+
This npm module is a tool independent implementation of the language server protocol and can be used in any type of node application. Please note that the protocol is versioned using the LSP specification version number. Since the protocol depends on the `vscode-jsonrpc` version a a breaking change on that dependencies might not be reflected in a major version change of this module. Changing the major version number in these cases was more confusing this it would result in a version mismatch between the protocol and the LSP specification.
|
|
8
8
|
|
|
9
9
|
See [here](https://github.com/Microsoft/language-server-protocol) for a detailed documentation on the language server protocol.
|
|
10
10
|
|
package/lib/browser/main.js
CHANGED
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
* ------------------------------------------------------------------------------------------ */
|
|
6
6
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
7
|
if (k2 === undefined) k2 = k;
|
|
8
|
-
Object.
|
|
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);
|
|
9
13
|
}) : (function(o, m, k, k2) {
|
|
10
14
|
if (k2 === undefined) k2 = k;
|
|
11
15
|
o[k2] = m[k];
|
package/lib/common/api.d.ts
CHANGED
|
@@ -53,42 +53,6 @@ export declare namespace LSPErrorCodes {
|
|
|
53
53
|
*/
|
|
54
54
|
const lspReservedErrorRangeEnd: integer;
|
|
55
55
|
}
|
|
56
|
-
|
|
57
|
-
import * as typeh from './proposed.typeHierarchy';
|
|
56
|
+
export declare type LSPErrorCodes = integer;
|
|
58
57
|
export declare namespace Proposed {
|
|
59
|
-
type DiagnosticClientCapabilities = diag.DiagnosticClientCapabilities;
|
|
60
|
-
type $DiagnosticClientCapabilities = diag.$DiagnosticClientCapabilities;
|
|
61
|
-
type DiagnosticOptions = diag.DiagnosticOptions;
|
|
62
|
-
type DiagnosticRegistrationOptions = diag.DiagnosticRegistrationOptions;
|
|
63
|
-
type $DiagnosticServerCapabilities = diag.$DiagnosticServerCapabilities;
|
|
64
|
-
type DocumentDiagnosticParams = diag.DocumentDiagnosticParams;
|
|
65
|
-
type DiagnosticServerCancellationData = diag.DiagnosticServerCancellationData;
|
|
66
|
-
const DiagnosticServerCancellationData: typeof diag.DiagnosticServerCancellationData;
|
|
67
|
-
type DocumentDiagnosticReportKind = diag.DocumentDiagnosticReportKind;
|
|
68
|
-
const DocumentDiagnosticReportKind: typeof diag.DocumentDiagnosticReportKind;
|
|
69
|
-
type FullDocumentDiagnosticReport = diag.FullDocumentDiagnosticReport;
|
|
70
|
-
type RelatedFullDocumentDiagnosticReport = diag.RelatedFullDocumentDiagnosticReport;
|
|
71
|
-
type UnchangedDocumentDiagnosticReport = diag.UnchangedDocumentDiagnosticReport;
|
|
72
|
-
type RelatedUnchangedDocumentDiagnosticReport = diag.RelatedUnchangedDocumentDiagnosticReport;
|
|
73
|
-
type DocumentDiagnosticReport = diag.DocumentDiagnosticReport;
|
|
74
|
-
type DocumentDiagnosticReportPartialResult = diag.DocumentDiagnosticReportPartialResult;
|
|
75
|
-
const DocumentDiagnosticRequest: typeof diag.DocumentDiagnosticRequest;
|
|
76
|
-
type PreviousResultId = diag.PreviousResultId;
|
|
77
|
-
type WorkspaceDiagnosticParams = diag.WorkspaceDiagnosticParams;
|
|
78
|
-
type WorkspaceFullDocumentDiagnosticReport = diag.WorkspaceFullDocumentDiagnosticReport;
|
|
79
|
-
type WorkspaceUnchangedDocumentDiagnosticReport = diag.WorkspaceUnchangedDocumentDiagnosticReport;
|
|
80
|
-
type WorkspaceDocumentDiagnosticReport = diag.WorkspaceDocumentDiagnosticReport;
|
|
81
|
-
type WorkspaceDiagnosticReport = diag.WorkspaceDiagnosticReport;
|
|
82
|
-
type WorkspaceDiagnosticReportPartialResult = diag.WorkspaceDiagnosticReportPartialResult;
|
|
83
|
-
const WorkspaceDiagnosticRequest: typeof diag.WorkspaceDiagnosticRequest;
|
|
84
|
-
const DiagnosticRefreshRequest: typeof diag.DiagnosticRefreshRequest;
|
|
85
|
-
type TypeHierarchyClientCapabilities = typeh.TypeHierarchyClientCapabilities;
|
|
86
|
-
type TypeHierarchyOptions = typeh.TypeHierarchyOptions;
|
|
87
|
-
type TypeHierarchyRegistrationOptions = typeh.TypeHierarchyRegistrationOptions;
|
|
88
|
-
type TypeHierarchyPrepareParams = typeh.TypeHierarchyPrepareParams;
|
|
89
|
-
type TypeHierarchySupertypesParams = typeh.TypeHierarchySupertypesParams;
|
|
90
|
-
type TypeHierarchySubtypesParams = typeh.TypeHierarchySubtypesParams;
|
|
91
|
-
const TypeHierarchyPrepareRequest: typeof typeh.TypeHierarchyPrepareRequest;
|
|
92
|
-
const TypeHierarchySupertypesRequest: typeof typeh.TypeHierarchySupertypesRequest;
|
|
93
|
-
const TypeHierarchySubtypesRequest: typeof typeh.TypeHierarchySubtypesRequest;
|
|
94
58
|
}
|
package/lib/common/api.js
CHANGED
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
* ------------------------------------------------------------------------------------------ */
|
|
6
6
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
7
|
if (k2 === undefined) k2 = k;
|
|
8
|
-
Object.
|
|
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);
|
|
9
13
|
}) : (function(o, m, k, k2) {
|
|
10
14
|
if (k2 === undefined) k2 = k;
|
|
11
15
|
o[k2] = m[k];
|
|
@@ -14,7 +18,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
18
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
19
|
};
|
|
16
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
21
|
+
exports.LSPErrorCodes = exports.createProtocolConnection = void 0;
|
|
18
22
|
__exportStar(require("vscode-jsonrpc"), exports);
|
|
19
23
|
__exportStar(require("vscode-languageserver-types"), exports);
|
|
20
24
|
__exportStar(require("./messages"), exports);
|
|
@@ -71,17 +75,4 @@ var LSPErrorCodes;
|
|
|
71
75
|
*/
|
|
72
76
|
LSPErrorCodes.lspReservedErrorRangeEnd = -32800;
|
|
73
77
|
})(LSPErrorCodes = exports.LSPErrorCodes || (exports.LSPErrorCodes = {}));
|
|
74
|
-
const diag = require("./proposed.diagnostic");
|
|
75
|
-
const typeh = require("./proposed.typeHierarchy");
|
|
76
|
-
var Proposed;
|
|
77
|
-
(function (Proposed) {
|
|
78
|
-
Proposed.DiagnosticServerCancellationData = diag.DiagnosticServerCancellationData;
|
|
79
|
-
Proposed.DocumentDiagnosticReportKind = diag.DocumentDiagnosticReportKind;
|
|
80
|
-
Proposed.DocumentDiagnosticRequest = diag.DocumentDiagnosticRequest;
|
|
81
|
-
Proposed.WorkspaceDiagnosticRequest = diag.WorkspaceDiagnosticRequest;
|
|
82
|
-
Proposed.DiagnosticRefreshRequest = diag.DiagnosticRefreshRequest;
|
|
83
|
-
Proposed.TypeHierarchyPrepareRequest = typeh.TypeHierarchyPrepareRequest;
|
|
84
|
-
Proposed.TypeHierarchySupertypesRequest = typeh.TypeHierarchySupertypesRequest;
|
|
85
|
-
Proposed.TypeHierarchySubtypesRequest = typeh.TypeHierarchySubtypesRequest;
|
|
86
|
-
})(Proposed = exports.Proposed || (exports.Proposed = {}));
|
|
87
78
|
//# sourceMappingURL=api.js.map
|
|
@@ -42,6 +42,7 @@ export interface ProtocolConnection {
|
|
|
42
42
|
*
|
|
43
43
|
* @param type The request type to install the handler for.
|
|
44
44
|
* @param handler The actual handler.
|
|
45
|
+
* @returns A disposable to remove the handler.
|
|
45
46
|
*/
|
|
46
47
|
onRequest<R, PR, E, RO>(type: ProtocolRequestType0<R, PR, E, RO>, handler: RequestHandler0<R, E>): Disposable;
|
|
47
48
|
onRequest<R, E>(type: RequestType0<R, E>, handler: RequestHandler0<R, E>): Disposable;
|
|
@@ -50,6 +51,7 @@ export interface ProtocolConnection {
|
|
|
50
51
|
*
|
|
51
52
|
* @param type The request type to install the handler for.
|
|
52
53
|
* @param handler The actual handler.
|
|
54
|
+
* @returns A disposable to remove the handler.
|
|
53
55
|
*/
|
|
54
56
|
onRequest<P, R, PR, E, RO>(type: ProtocolRequestType<P, R, PR, E, RO>, handler: RequestHandler<P, R, E>): Disposable;
|
|
55
57
|
onRequest<P, R, E>(type: RequestType<P, R, E>, handler: RequestHandler<P, R, E>): Disposable;
|
|
@@ -58,12 +60,20 @@ export interface ProtocolConnection {
|
|
|
58
60
|
*
|
|
59
61
|
* @param methods the message signature or the method name to install a handler for.
|
|
60
62
|
* @param handler The actual handler.
|
|
63
|
+
* @returns A disposable to remove the handler.
|
|
61
64
|
*/
|
|
62
65
|
onRequest<R, E>(method: MessageSignature | string, handler: GenericRequestHandler<R, E>): Disposable;
|
|
66
|
+
/**
|
|
67
|
+
* Returns true if the connection has a pending response.
|
|
68
|
+
* Otherwise false is returned.
|
|
69
|
+
*/
|
|
70
|
+
hasPendingResponse(): boolean;
|
|
63
71
|
/**
|
|
64
72
|
* Sends a notification.
|
|
65
73
|
*
|
|
66
74
|
* @param type the notification's type to send.
|
|
75
|
+
* @returns A promise that resolves when the notification is written to the
|
|
76
|
+
* network layer.
|
|
67
77
|
*/
|
|
68
78
|
sendNotification(type: NotificationType0): Promise<void>;
|
|
69
79
|
sendNotification<RO>(type: ProtocolNotificationType0<RO>): Promise<void>;
|
|
@@ -72,6 +82,8 @@ export interface ProtocolConnection {
|
|
|
72
82
|
*
|
|
73
83
|
* @param type the notification's type to send.
|
|
74
84
|
* @param params the notification's parameters.
|
|
85
|
+
* @returns A promise that resolves when the notification is written to the
|
|
86
|
+
* network layer.
|
|
75
87
|
*/
|
|
76
88
|
sendNotification<P, RO>(type: ProtocolNotificationType<P, RO>, params?: P): Promise<void>;
|
|
77
89
|
sendNotification<P>(type: NotificationType<P>, params?: P): Promise<void>;
|
|
@@ -79,6 +91,8 @@ export interface ProtocolConnection {
|
|
|
79
91
|
* Sends a notification.
|
|
80
92
|
*
|
|
81
93
|
* @param method the notification's method signature or the method name.
|
|
94
|
+
* @returns A promise that resolves when the notification is written to the
|
|
95
|
+
* network layer.
|
|
82
96
|
*/
|
|
83
97
|
sendNotification(method: MessageSignature | string): Promise<void>;
|
|
84
98
|
/**
|
|
@@ -86,6 +100,8 @@ export interface ProtocolConnection {
|
|
|
86
100
|
*
|
|
87
101
|
* @param method the notification's method signature or the method name.
|
|
88
102
|
* @param params the notification's parameters.
|
|
103
|
+
* @returns A promise that resolves when the notification is written to the
|
|
104
|
+
* network layer.
|
|
89
105
|
*/
|
|
90
106
|
sendNotification(method: MessageSignature | string, params: any): Promise<void>;
|
|
91
107
|
/**
|
|
@@ -93,6 +109,7 @@ export interface ProtocolConnection {
|
|
|
93
109
|
*
|
|
94
110
|
* @param type The notification type to install the handler for.
|
|
95
111
|
* @param handler The actual handler.
|
|
112
|
+
* @returns A disposable to remove the handler.
|
|
96
113
|
*/
|
|
97
114
|
onNotification<RO>(type: ProtocolNotificationType0<RO>, handler: NotificationHandler0): Disposable;
|
|
98
115
|
onNotification(type: NotificationType0, handler: NotificationHandler0): Disposable;
|
|
@@ -101,6 +118,7 @@ export interface ProtocolConnection {
|
|
|
101
118
|
*
|
|
102
119
|
* @param type The notification type to install the handler for.
|
|
103
120
|
* @param handler The actual handler.
|
|
121
|
+
* @returns A disposable to remove the handler.
|
|
104
122
|
*/
|
|
105
123
|
onNotification<P, RO>(type: ProtocolNotificationType<P, RO>, handler: NotificationHandler<P>): Disposable;
|
|
106
124
|
onNotification<P>(type: NotificationType<P>, handler: NotificationHandler<P>): Disposable;
|
|
@@ -109,6 +127,7 @@ export interface ProtocolConnection {
|
|
|
109
127
|
*
|
|
110
128
|
* @param methods The message signature or the method name to install the handler for.
|
|
111
129
|
* @param handler The actual handler.
|
|
130
|
+
* @returns A disposable to remove the handler.
|
|
112
131
|
*/
|
|
113
132
|
onNotification(method: MessageSignature | string, handler: GenericNotificationHandler): Disposable;
|
|
114
133
|
/**
|
|
@@ -116,6 +135,7 @@ export interface ProtocolConnection {
|
|
|
116
135
|
* @param type the progress type
|
|
117
136
|
* @param token the token
|
|
118
137
|
* @param handler the handler
|
|
138
|
+
* @returns A disposable to remove the handler.
|
|
119
139
|
*/
|
|
120
140
|
onProgress<P>(type: ProgressType<P>, token: string | number, handler: NotificationHandler<P>): Disposable;
|
|
121
141
|
/**
|
|
@@ -123,13 +143,17 @@ export interface ProtocolConnection {
|
|
|
123
143
|
* @param type the progress type
|
|
124
144
|
* @param token the token to use
|
|
125
145
|
* @param value the progress value
|
|
146
|
+
* @returns A promise that resolves when the progress is written to the
|
|
147
|
+
* network layer.
|
|
126
148
|
*/
|
|
127
149
|
sendProgress<P>(type: ProgressType<P>, token: string | number, value: P): Promise<void>;
|
|
128
150
|
/**
|
|
129
151
|
* Enables tracing mode for the connection.
|
|
152
|
+
* @returns A promise that resolves when the trace value is written to the
|
|
153
|
+
* network layer.
|
|
130
154
|
*/
|
|
131
|
-
trace(value: Trace, tracer: Tracer, sendNotification?: boolean): void
|
|
132
|
-
trace(value: Trace, tracer: Tracer, traceOptions?: TraceOptions): void
|
|
155
|
+
trace(value: Trace, tracer: Tracer, sendNotification?: boolean): Promise<void>;
|
|
156
|
+
trace(value: Trace, tracer: Tracer, traceOptions?: TraceOptions): Promise<void>;
|
|
133
157
|
/**
|
|
134
158
|
* An event emitter firing when an error occurs on the connection.
|
|
135
159
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* --------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) TypeFox, Microsoft and others. All rights reserved.
|
|
4
|
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
|
+
* ------------------------------------------------------------------------------------------ */
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
8
|
+
const messages_1 = require("./messages");
|
|
9
|
+
const api_1 = require("./api");
|
|
10
|
+
// This file is used to define the $ notification partly specified in JSON-RPC
|
|
11
|
+
// so that we generate proper data for them in the meta model.
|
|
12
|
+
// @ts-ignore 6196
|
|
13
|
+
var SetTraceNotification;
|
|
14
|
+
(function (SetTraceNotification) {
|
|
15
|
+
SetTraceNotification.type = new messages_1.ProtocolNotificationType('$/setTrace');
|
|
16
|
+
})(SetTraceNotification || (SetTraceNotification = {}));
|
|
17
|
+
// @ts-ignore 6196
|
|
18
|
+
var LogTraceNotification;
|
|
19
|
+
(function (LogTraceNotification) {
|
|
20
|
+
LogTraceNotification.type = new messages_1.ProtocolNotificationType('$/logTrace');
|
|
21
|
+
})(LogTraceNotification || (LogTraceNotification = {}));
|
|
22
|
+
// @ts-ignore 6196
|
|
23
|
+
const $ErrorCodes = vscode_jsonrpc_1.ErrorCodes;
|
|
24
|
+
// @ts-ignore 6196
|
|
25
|
+
const $LSPErrorCodes = api_1.LSPErrorCodes;
|
|
26
|
+
// @ts-ignore 6196
|
|
27
|
+
var CancelNotification;
|
|
28
|
+
(function (CancelNotification) {
|
|
29
|
+
CancelNotification.type = new messages_1.ProtocolNotificationType('$/cancelRequest');
|
|
30
|
+
})(CancelNotification || (CancelNotification = {}));
|
|
31
|
+
// @ts-ignore 6196
|
|
32
|
+
var ProgressNotification;
|
|
33
|
+
(function (ProgressNotification) {
|
|
34
|
+
ProgressNotification.type = new messages_1.ProtocolNotificationType('$/progress');
|
|
35
|
+
})(ProgressNotification || (ProgressNotification = {}));
|
|
36
|
+
//# sourceMappingURL=protocol.$.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType } from './messages';
|
|
4
|
-
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
4
|
+
import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* @since 3.16.0
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { TextDocumentIdentifier, Range, Color, ColorInformation, ColorPresentation } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType } from './messages';
|
|
4
|
-
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
4
|
+
import type { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
5
5
|
export interface DocumentColorClientCapabilities {
|
|
6
6
|
/**
|
|
7
7
|
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
import { RequestHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
|
|
2
|
+
import { LSPAny } from 'vscode-languageserver-types';
|
|
2
3
|
import { ProtocolRequestType } from './messages';
|
|
3
|
-
import { PartialResultParams } from './protocol';
|
|
4
|
-
export interface ConfigurationClientCapabilities {
|
|
5
|
-
/**
|
|
6
|
-
* The workspace client capabilities
|
|
7
|
-
*/
|
|
8
|
-
workspace?: {
|
|
9
|
-
/**
|
|
10
|
-
* The client supports `workspace/configuration` requests.
|
|
11
|
-
*
|
|
12
|
-
* @since 3.6.0
|
|
13
|
-
*/
|
|
14
|
-
configuration?: boolean;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
4
|
+
import type { PartialResultParams } from './protocol';
|
|
17
5
|
/**
|
|
18
6
|
* The 'workspace/configuration' request is sent from the server to the client to fetch a certain
|
|
19
7
|
* configuration setting.
|
|
@@ -25,8 +13,8 @@ export interface ConfigurationClientCapabilities {
|
|
|
25
13
|
*/
|
|
26
14
|
export declare namespace ConfigurationRequest {
|
|
27
15
|
const type: ProtocolRequestType<ConfigurationParams & PartialResultParams, any[], never, void, void>;
|
|
28
|
-
type HandlerSignature = RequestHandler<ConfigurationParams,
|
|
29
|
-
type MiddlewareSignature = (params: ConfigurationParams, token: CancellationToken, next: HandlerSignature) => HandlerResult<
|
|
16
|
+
type HandlerSignature = RequestHandler<ConfigurationParams, LSPAny[], void>;
|
|
17
|
+
type MiddlewareSignature = (params: ConfigurationParams, token: CancellationToken, next: HandlerSignature) => HandlerResult<LSPAny[], void>;
|
|
30
18
|
}
|
|
31
19
|
export interface ConfigurationItem {
|
|
32
20
|
/**
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.ConfigurationRequest = void 0;
|
|
8
8
|
const messages_1 = require("./messages");
|
|
9
|
+
//---- Get Configuration request ----
|
|
9
10
|
/**
|
|
10
11
|
* The 'workspace/configuration' request is sent from the server to the client to fetch a certain
|
|
11
12
|
* configuration setting.
|