vscode-languageserver-protocol 3.17.0-next.2 → 3.17.0-next.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/main.js +1 -1
- package/lib/common/api.d.ts +31 -10
- package/lib/common/api.js +32 -7
- package/lib/common/connection.d.ts +45 -21
- package/lib/common/connection.js +1 -1
- package/lib/common/messages.js +0 -3
- package/lib/common/protocol.$.d.ts +8 -0
- package/lib/common/protocol.$.js +19 -0
- package/lib/common/protocol.callHierarchy.d.ts +1 -1
- package/lib/common/protocol.callHierarchy.js +1 -1
- package/lib/common/protocol.colorProvider.d.ts +1 -1
- package/lib/common/protocol.configuration.d.ts +5 -17
- package/lib/common/protocol.configuration.js +1 -0
- package/lib/common/protocol.d.ts +488 -70
- package/lib/common/protocol.declaration.d.ts +3 -3
- package/lib/common/protocol.declaration.js +2 -2
- package/lib/common/protocol.diagnostic.d.ts +364 -0
- package/lib/common/protocol.diagnostic.js +77 -0
- package/lib/common/protocol.fileOperations.d.ts +1 -1
- package/lib/common/protocol.foldingRange.d.ts +43 -27
- package/lib/common/protocol.foldingRange.js +1 -19
- package/lib/common/protocol.implementation.d.ts +3 -3
- package/lib/common/protocol.implementation.js +2 -2
- package/lib/common/protocol.inlayHint.d.ts +115 -0
- package/lib/common/protocol.inlayHint.js +44 -0
- package/lib/common/protocol.inlineValue.d.ts +91 -0
- package/lib/common/protocol.inlineValue.js +31 -0
- package/lib/common/protocol.js +137 -18
- 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 +402 -0
- package/lib/common/protocol.notebook.js +210 -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 +27 -2
- package/lib/common/protocol.typeDefinition.d.ts +2 -2
- package/lib/common/protocol.typeHierarchy.d.ts +89 -0
- package/lib/common/protocol.typeHierarchy.js +43 -0
- package/lib/common/{protocol.workspaceFolders.d.ts → protocol.workspaceFolder.d.ts} +11 -41
- package/lib/common/{protocol.workspaceFolders.js → protocol.workspaceFolder.js} +1 -1
- package/lib/node/main.js +1 -1
- package/metaModel.schema.json +705 -0
- package/package.json +4 -4
- package/lib/common/proposed.diagnostic.d.ts +0 -46
- package/lib/common/proposed.diagnostic.js +0 -23
package/lib/browser/main.js
CHANGED
|
@@ -19,7 +19,7 @@ const browser_1 = require("vscode-jsonrpc/browser");
|
|
|
19
19
|
__exportStar(require("vscode-jsonrpc/browser"), exports);
|
|
20
20
|
__exportStar(require("../common/api"), exports);
|
|
21
21
|
function createProtocolConnection(reader, writer, logger, options) {
|
|
22
|
-
return browser_1.createMessageConnection(reader, writer, logger, options);
|
|
22
|
+
return (0, browser_1.createMessageConnection)(reader, writer, logger, options);
|
|
23
23
|
}
|
|
24
24
|
exports.createProtocolConnection = createProtocolConnection;
|
|
25
25
|
//# sourceMappingURL=main.js.map
|
package/lib/common/api.d.ts
CHANGED
|
@@ -12,7 +12,38 @@ export declare namespace LSPErrorCodes {
|
|
|
12
12
|
* @since 3.16.0
|
|
13
13
|
*/
|
|
14
14
|
const lspReservedErrorRangeStart: integer;
|
|
15
|
+
/**
|
|
16
|
+
* A request failed but it was syntactically correct, e.g the
|
|
17
|
+
* method name was known and the parameters were valid. The error
|
|
18
|
+
* message should contain human readable information about why
|
|
19
|
+
* the request failed.
|
|
20
|
+
*
|
|
21
|
+
* @since 3.17.0
|
|
22
|
+
*/
|
|
23
|
+
const RequestFailed: integer;
|
|
24
|
+
/**
|
|
25
|
+
* The server cancelled the request. This error code should
|
|
26
|
+
* only be used for requests that explicitly support being
|
|
27
|
+
* server cancellable.
|
|
28
|
+
*
|
|
29
|
+
* @since 3.17.0
|
|
30
|
+
*/
|
|
31
|
+
const ServerCancelled: integer;
|
|
32
|
+
/**
|
|
33
|
+
* The server detected that the content of a document got
|
|
34
|
+
* modified outside normal conditions. A server should
|
|
35
|
+
* NOT send this error code if it detects a content change
|
|
36
|
+
* in it unprocessed messages. The result even computed
|
|
37
|
+
* on an older state might still be useful for the client.
|
|
38
|
+
*
|
|
39
|
+
* If a client decides that a result is not of any use anymore
|
|
40
|
+
* the client should cancel the request.
|
|
41
|
+
*/
|
|
15
42
|
const ContentModified: integer;
|
|
43
|
+
/**
|
|
44
|
+
* The client has canceled a request and a server as detected
|
|
45
|
+
* the cancel.
|
|
46
|
+
*/
|
|
16
47
|
const RequestCancelled: integer;
|
|
17
48
|
/**
|
|
18
49
|
* This is the end range of LSP reserved error codes.
|
|
@@ -22,15 +53,5 @@ export declare namespace LSPErrorCodes {
|
|
|
22
53
|
*/
|
|
23
54
|
const lspReservedErrorRangeEnd: integer;
|
|
24
55
|
}
|
|
25
|
-
import * as diag from './proposed.diagnostic';
|
|
26
56
|
export declare namespace Proposed {
|
|
27
|
-
type DiagnosticClientCapabilities = diag.DiagnosticClientCapabilities;
|
|
28
|
-
type $DiagnosticClientCapabilities = diag.$DiagnosticClientCapabilities;
|
|
29
|
-
type DiagnosticParams = diag.DiagnosticParams;
|
|
30
|
-
type DiagnosticOptions = diag.DiagnosticOptions;
|
|
31
|
-
type DiagnosticRegistrationOptions = diag.DiagnosticRegistrationOptions;
|
|
32
|
-
type $DiagnosticServerCapabilities = diag.$DiagnosticServerCapabilities;
|
|
33
|
-
type DiagnosticPullMode = diag.DiagnosticPullMode;
|
|
34
|
-
const DiagnosticPullMode: typeof diag.DiagnosticPullMode;
|
|
35
|
-
const DiagnosticRequest: typeof diag.DiagnosticRequest;
|
|
36
57
|
}
|
package/lib/common/api.js
CHANGED
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.LSPErrorCodes = exports.createProtocolConnection = void 0;
|
|
18
18
|
__exportStar(require("vscode-jsonrpc"), exports);
|
|
19
19
|
__exportStar(require("vscode-languageserver-types"), exports);
|
|
20
20
|
__exportStar(require("./messages"), exports);
|
|
@@ -30,7 +30,38 @@ var LSPErrorCodes;
|
|
|
30
30
|
* @since 3.16.0
|
|
31
31
|
*/
|
|
32
32
|
LSPErrorCodes.lspReservedErrorRangeStart = -32899;
|
|
33
|
+
/**
|
|
34
|
+
* A request failed but it was syntactically correct, e.g the
|
|
35
|
+
* method name was known and the parameters were valid. The error
|
|
36
|
+
* message should contain human readable information about why
|
|
37
|
+
* the request failed.
|
|
38
|
+
*
|
|
39
|
+
* @since 3.17.0
|
|
40
|
+
*/
|
|
41
|
+
LSPErrorCodes.RequestFailed = -32803;
|
|
42
|
+
/**
|
|
43
|
+
* The server cancelled the request. This error code should
|
|
44
|
+
* only be used for requests that explicitly support being
|
|
45
|
+
* server cancellable.
|
|
46
|
+
*
|
|
47
|
+
* @since 3.17.0
|
|
48
|
+
*/
|
|
49
|
+
LSPErrorCodes.ServerCancelled = -32802;
|
|
50
|
+
/**
|
|
51
|
+
* The server detected that the content of a document got
|
|
52
|
+
* modified outside normal conditions. A server should
|
|
53
|
+
* NOT send this error code if it detects a content change
|
|
54
|
+
* in it unprocessed messages. The result even computed
|
|
55
|
+
* on an older state might still be useful for the client.
|
|
56
|
+
*
|
|
57
|
+
* If a client decides that a result is not of any use anymore
|
|
58
|
+
* the client should cancel the request.
|
|
59
|
+
*/
|
|
33
60
|
LSPErrorCodes.ContentModified = -32801;
|
|
61
|
+
/**
|
|
62
|
+
* The client has canceled a request and a server as detected
|
|
63
|
+
* the cancel.
|
|
64
|
+
*/
|
|
34
65
|
LSPErrorCodes.RequestCancelled = -32800;
|
|
35
66
|
/**
|
|
36
67
|
* This is the end range of LSP reserved error codes.
|
|
@@ -40,10 +71,4 @@ var LSPErrorCodes;
|
|
|
40
71
|
*/
|
|
41
72
|
LSPErrorCodes.lspReservedErrorRangeEnd = -32800;
|
|
42
73
|
})(LSPErrorCodes = exports.LSPErrorCodes || (exports.LSPErrorCodes = {}));
|
|
43
|
-
const diag = require("./proposed.diagnostic");
|
|
44
|
-
var Proposed;
|
|
45
|
-
(function (Proposed) {
|
|
46
|
-
Proposed.DiagnosticPullMode = diag.DiagnosticPullMode;
|
|
47
|
-
Proposed.DiagnosticRequest = diag.DiagnosticRequest;
|
|
48
|
-
})(Proposed = exports.Proposed || (exports.Proposed = {}));
|
|
49
74
|
//# sourceMappingURL=api.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Message, NotificationMessage, CancellationToken, RequestHandler0, RequestHandler, GenericRequestHandler, NotificationHandler0, NotificationHandler, GenericNotificationHandler, ProgressType, Trace, Tracer, TraceOptions, Disposable, Event, MessageReader, MessageWriter, Logger, ConnectionStrategy, ConnectionOptions, RequestType0, RequestType, NotificationType0, NotificationType } from 'vscode-jsonrpc';
|
|
1
|
+
import { Message, NotificationMessage, CancellationToken, RequestHandler0, RequestHandler, GenericRequestHandler, NotificationHandler0, NotificationHandler, GenericNotificationHandler, ProgressType, Trace, Tracer, TraceOptions, Disposable, Event, MessageReader, MessageWriter, Logger, ConnectionStrategy, ConnectionOptions, RequestType0, RequestType, NotificationType0, NotificationType, MessageSignature } from 'vscode-jsonrpc';
|
|
2
2
|
import { ProtocolRequestType, ProtocolRequestType0, ProtocolNotificationType, ProtocolNotificationType0 } from './messages';
|
|
3
3
|
export interface ProtocolConnection {
|
|
4
4
|
/**
|
|
@@ -23,25 +23,26 @@ export interface ProtocolConnection {
|
|
|
23
23
|
/**
|
|
24
24
|
* Sends a request and returns a promise resolving to the result of the request.
|
|
25
25
|
*
|
|
26
|
-
* @param method the
|
|
26
|
+
* @param method the message signature or the method name.
|
|
27
27
|
* @param token An optional cancellation token.
|
|
28
28
|
* @returns A promise resolving to the request's result.
|
|
29
29
|
*/
|
|
30
|
-
sendRequest<R>(method: string, token?: CancellationToken): Promise<R>;
|
|
30
|
+
sendRequest<R>(method: MessageSignature | string, token?: CancellationToken): Promise<R>;
|
|
31
31
|
/**
|
|
32
32
|
* Sends a request and returns a promise resolving to the result of the request.
|
|
33
33
|
*
|
|
34
|
-
* @param method the
|
|
34
|
+
* @param method the message signature or the method name.
|
|
35
35
|
* @param params The request's parameter.
|
|
36
36
|
* @param token An optional cancellation token.
|
|
37
37
|
* @returns A promise resolving to the request's result.
|
|
38
38
|
*/
|
|
39
|
-
sendRequest<R>(method: string, param: any, token?: CancellationToken): Promise<R>;
|
|
39
|
+
sendRequest<R>(method: MessageSignature | string, param: any, token?: CancellationToken): Promise<R>;
|
|
40
40
|
/**
|
|
41
41
|
* Installs a request handler.
|
|
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,49 +51,65 @@ 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;
|
|
56
58
|
/**
|
|
57
59
|
* Installs a request handler.
|
|
58
60
|
*
|
|
59
|
-
* @param methods
|
|
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
|
-
onRequest<R, E>(method: string, handler: GenericRequestHandler<R, E>): Disposable;
|
|
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
|
-
sendNotification(type: NotificationType0): void
|
|
69
|
-
sendNotification<RO>(type: ProtocolNotificationType0<RO>): void
|
|
78
|
+
sendNotification(type: NotificationType0): Promise<void>;
|
|
79
|
+
sendNotification<RO>(type: ProtocolNotificationType0<RO>): Promise<void>;
|
|
70
80
|
/**
|
|
71
81
|
* Sends a notification.
|
|
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
|
-
sendNotification<P, RO>(type: ProtocolNotificationType<P, RO>, params?: P): void
|
|
77
|
-
sendNotification<P>(type: NotificationType<P>, params?: P): void
|
|
88
|
+
sendNotification<P, RO>(type: ProtocolNotificationType<P, RO>, params?: P): Promise<void>;
|
|
89
|
+
sendNotification<P>(type: NotificationType<P>, params?: P): Promise<void>;
|
|
78
90
|
/**
|
|
79
91
|
* Sends a notification.
|
|
80
92
|
*
|
|
81
|
-
* @param method the notification's method name.
|
|
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
|
-
sendNotification(method: string): void
|
|
97
|
+
sendNotification(method: MessageSignature | string): Promise<void>;
|
|
84
98
|
/**
|
|
85
99
|
* Sends a notification.
|
|
86
100
|
*
|
|
87
|
-
* @param method the notification's method name.
|
|
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
|
-
sendNotification(method: string, params: any): void
|
|
106
|
+
sendNotification(method: MessageSignature | string, params: any): Promise<void>;
|
|
91
107
|
/**
|
|
92
108
|
* Installs a notification handler.
|
|
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,21 +118,24 @@ 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;
|
|
107
125
|
/**
|
|
108
126
|
* Installs a notification handler.
|
|
109
127
|
*
|
|
110
|
-
* @param methods The method name to install the handler for.
|
|
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
|
-
onNotification(method: string, handler: GenericNotificationHandler): Disposable;
|
|
132
|
+
onNotification(method: MessageSignature | string, handler: GenericNotificationHandler): Disposable;
|
|
114
133
|
/**
|
|
115
134
|
* Installs a progress handler for a given token.
|
|
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
|
-
sendProgress<P>(type: ProgressType<P>, token: string | number, value: P): void
|
|
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
|
*/
|
|
@@ -139,7 +163,7 @@ export interface ProtocolConnection {
|
|
|
139
163
|
*/
|
|
140
164
|
onClose: Event<void>;
|
|
141
165
|
/**
|
|
142
|
-
* An event
|
|
166
|
+
* An event emitter firing when the connection receives a notification that is not
|
|
143
167
|
* handled.
|
|
144
168
|
*/
|
|
145
169
|
onUnhandledNotification: Event<NotificationMessage>;
|
package/lib/common/connection.js
CHANGED
|
@@ -10,7 +10,7 @@ function createProtocolConnection(input, output, logger, options) {
|
|
|
10
10
|
if (vscode_jsonrpc_1.ConnectionStrategy.is(options)) {
|
|
11
11
|
options = { connectionStrategy: options };
|
|
12
12
|
}
|
|
13
|
-
return vscode_jsonrpc_1.createMessageConnection(input, output, logger, options);
|
|
13
|
+
return (0, vscode_jsonrpc_1.createMessageConnection)(input, output, logger, options);
|
|
14
14
|
}
|
|
15
15
|
exports.createProtocolConnection = createProtocolConnection;
|
|
16
16
|
//# sourceMappingURL=connection.js.map
|
package/lib/common/messages.js
CHANGED
|
@@ -36,7 +36,4 @@ class ProtocolNotificationType extends vscode_jsonrpc_1.NotificationType {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
exports.ProtocolNotificationType = ProtocolNotificationType;
|
|
39
|
-
// let x: ProtocolNotificationType<number, { value: number}>;
|
|
40
|
-
// let y: ProtocolNotificationType<string, { value: number}>;
|
|
41
|
-
// x = y;
|
|
42
39
|
//# sourceMappingURL=messages.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LogTraceParams, SetTraceParams } from 'vscode-jsonrpc';
|
|
2
|
+
import { ProtocolNotificationType } from './messages';
|
|
3
|
+
export declare namespace SetTraceNotification {
|
|
4
|
+
const type: ProtocolNotificationType<SetTraceParams, void>;
|
|
5
|
+
}
|
|
6
|
+
export declare namespace LogTraceNotification {
|
|
7
|
+
const type: ProtocolNotificationType<LogTraceParams, void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
exports.LogTraceNotification = exports.SetTraceNotification = void 0;
|
|
8
|
+
const messages_1 = require("./messages");
|
|
9
|
+
// This file is used to define the $ notification partly specified in JSON-RPC
|
|
10
|
+
// so that we generate proper data for them in the meta model.
|
|
11
|
+
var SetTraceNotification;
|
|
12
|
+
(function (SetTraceNotification) {
|
|
13
|
+
SetTraceNotification.type = new messages_1.ProtocolNotificationType('$/setTrace');
|
|
14
|
+
})(SetTraceNotification = exports.SetTraceNotification || (exports.SetTraceNotification = {}));
|
|
15
|
+
var LogTraceNotification;
|
|
16
|
+
(function (LogTraceNotification) {
|
|
17
|
+
LogTraceNotification.type = new messages_1.ProtocolNotificationType('$/logTrace');
|
|
18
|
+
})(LogTraceNotification = exports.LogTraceNotification || (exports.LogTraceNotification = {}));
|
|
19
|
+
//# 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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* --------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) TypeFox and others. All rights reserved.
|
|
3
|
+
* Copyright (c) TypeFox, Microsoft and others. All rights reserved.
|
|
4
4
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
5
|
* ------------------------------------------------------------------------------------------ */
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -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.
|
|
@@ -24,9 +12,9 @@ export interface ConfigurationClientCapabilities {
|
|
|
24
12
|
* change event and empty the cache if such an event is received.
|
|
25
13
|
*/
|
|
26
14
|
export declare namespace ConfigurationRequest {
|
|
27
|
-
const type: ProtocolRequestType<ConfigurationParams & PartialResultParams,
|
|
28
|
-
type HandlerSignature = RequestHandler<ConfigurationParams,
|
|
29
|
-
type MiddlewareSignature = (params: ConfigurationParams, token: CancellationToken, next: HandlerSignature) => HandlerResult<
|
|
15
|
+
const type: ProtocolRequestType<ConfigurationParams & PartialResultParams, LSPAny[], never, void, void>;
|
|
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.
|