vscode-languageserver-protocol 3.17.0-next.7 → 3.17.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/lib/browser/main.js +6 -2
- package/lib/common/api.d.ts +10 -27
- package/lib/common/api.js +15 -11
- package/lib/common/connection.d.ts +41 -17
- package/lib/common/connection.js +1 -1
- package/lib/common/messages.js +0 -3
- 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 +453 -69
- 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/protocol.typeHierarchy.d.ts +80 -0
- package/lib/common/protocol.typeHierarchy.js +40 -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 +6 -2
- package/metaModel.schema.json +705 -0
- package/package.json +4 -4
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];
|
|
@@ -19,7 +23,7 @@ const browser_1 = require("vscode-jsonrpc/browser");
|
|
|
19
23
|
__exportStar(require("vscode-jsonrpc/browser"), exports);
|
|
20
24
|
__exportStar(require("../common/api"), exports);
|
|
21
25
|
function createProtocolConnection(reader, writer, logger, options) {
|
|
22
|
-
return browser_1.createMessageConnection(reader, writer, logger, options);
|
|
26
|
+
return (0, browser_1.createMessageConnection)(reader, writer, logger, options);
|
|
23
27
|
}
|
|
24
28
|
exports.createProtocolConnection = createProtocolConnection;
|
|
25
29
|
//# sourceMappingURL=main.js.map
|
package/lib/common/api.d.ts
CHANGED
|
@@ -12,6 +12,15 @@ 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;
|
|
15
24
|
/**
|
|
16
25
|
* The server cancelled the request. This error code should
|
|
17
26
|
* only be used for requests that explicitly support being
|
|
@@ -44,32 +53,6 @@ export declare namespace LSPErrorCodes {
|
|
|
44
53
|
*/
|
|
45
54
|
const lspReservedErrorRangeEnd: integer;
|
|
46
55
|
}
|
|
47
|
-
|
|
56
|
+
export declare type LSPErrorCodes = integer;
|
|
48
57
|
export declare namespace Proposed {
|
|
49
|
-
type DiagnosticClientCapabilities = diag.DiagnosticClientCapabilities;
|
|
50
|
-
type $DiagnosticClientCapabilities = diag.$DiagnosticClientCapabilities;
|
|
51
|
-
type DiagnosticOptions = diag.DiagnosticOptions;
|
|
52
|
-
type DiagnosticRegistrationOptions = diag.DiagnosticRegistrationOptions;
|
|
53
|
-
type $DiagnosticServerCapabilities = diag.$DiagnosticServerCapabilities;
|
|
54
|
-
type DocumentDiagnosticParams = diag.DocumentDiagnosticParams;
|
|
55
|
-
type DiagnosticServerCancellationData = diag.DiagnosticServerCancellationData;
|
|
56
|
-
const DiagnosticServerCancellationData: typeof diag.DiagnosticServerCancellationData;
|
|
57
|
-
type DocumentDiagnosticReportKind = diag.DocumentDiagnosticReportKind;
|
|
58
|
-
const DocumentDiagnosticReportKind: typeof diag.DocumentDiagnosticReportKind;
|
|
59
|
-
type FullDocumentDiagnosticReport = diag.FullDocumentDiagnosticReport;
|
|
60
|
-
type RelatedFullDocumentDiagnosticReport = diag.RelatedFullDocumentDiagnosticReport;
|
|
61
|
-
type UnchangedDocumentDiagnosticReport = diag.UnchangedDocumentDiagnosticReport;
|
|
62
|
-
type RelatedUnchangedDocumentDiagnosticReport = diag.RelatedUnchangedDocumentDiagnosticReport;
|
|
63
|
-
type DocumentDiagnosticReport = diag.DocumentDiagnosticReport;
|
|
64
|
-
type DocumentDiagnosticReportPartialResult = diag.DocumentDiagnosticReportPartialResult;
|
|
65
|
-
const DocumentDiagnosticRequest: typeof diag.DocumentDiagnosticRequest;
|
|
66
|
-
type PreviousResultId = diag.PreviousResultId;
|
|
67
|
-
type WorkspaceDiagnosticParams = diag.WorkspaceDiagnosticParams;
|
|
68
|
-
type WorkspaceFullDocumentDiagnosticReport = diag.WorkspaceFullDocumentDiagnosticReport;
|
|
69
|
-
type WorkspaceUnchangedDocumentDiagnosticReport = diag.WorkspaceUnchangedDocumentDiagnosticReport;
|
|
70
|
-
type WorkspaceDocumentDiagnosticReport = diag.WorkspaceDocumentDiagnosticReport;
|
|
71
|
-
type WorkspaceDiagnosticReport = diag.WorkspaceDiagnosticReport;
|
|
72
|
-
type WorkspaceDiagnosticReportPartialResult = diag.WorkspaceDiagnosticReportPartialResult;
|
|
73
|
-
const WorkspaceDiagnosticRequest: typeof diag.WorkspaceDiagnosticRequest;
|
|
74
|
-
const DiagnosticRefreshRequest: typeof diag.DiagnosticRefreshRequest;
|
|
75
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);
|
|
@@ -30,6 +34,15 @@ var LSPErrorCodes;
|
|
|
30
34
|
* @since 3.16.0
|
|
31
35
|
*/
|
|
32
36
|
LSPErrorCodes.lspReservedErrorRangeStart = -32899;
|
|
37
|
+
/**
|
|
38
|
+
* A request failed but it was syntactically correct, e.g the
|
|
39
|
+
* method name was known and the parameters were valid. The error
|
|
40
|
+
* message should contain human readable information about why
|
|
41
|
+
* the request failed.
|
|
42
|
+
*
|
|
43
|
+
* @since 3.17.0
|
|
44
|
+
*/
|
|
45
|
+
LSPErrorCodes.RequestFailed = -32803;
|
|
33
46
|
/**
|
|
34
47
|
* The server cancelled the request. This error code should
|
|
35
48
|
* only be used for requests that explicitly support being
|
|
@@ -62,13 +75,4 @@ var LSPErrorCodes;
|
|
|
62
75
|
*/
|
|
63
76
|
LSPErrorCodes.lspReservedErrorRangeEnd = -32800;
|
|
64
77
|
})(LSPErrorCodes = exports.LSPErrorCodes || (exports.LSPErrorCodes = {}));
|
|
65
|
-
const diag = require("./proposed.diagnostic");
|
|
66
|
-
var Proposed;
|
|
67
|
-
(function (Proposed) {
|
|
68
|
-
Proposed.DiagnosticServerCancellationData = diag.DiagnosticServerCancellationData;
|
|
69
|
-
Proposed.DocumentDiagnosticReportKind = diag.DocumentDiagnosticReportKind;
|
|
70
|
-
Proposed.DocumentDiagnosticRequest = diag.DocumentDiagnosticRequest;
|
|
71
|
-
Proposed.WorkspaceDiagnosticRequest = diag.WorkspaceDiagnosticRequest;
|
|
72
|
-
Proposed.DiagnosticRefreshRequest = diag.DiagnosticRefreshRequest;
|
|
73
|
-
})(Proposed = exports.Proposed || (exports.Proposed = {}));
|
|
74
78
|
//# 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,20 +51,29 @@ 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
78
|
sendNotification(type: NotificationType0): Promise<void>;
|
|
69
79
|
sendNotification<RO>(type: ProtocolNotificationType0<RO>): Promise<void>;
|
|
@@ -72,27 +82,34 @@ 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>;
|
|
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): Promise<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): Promise<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 @@
|
|
|
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.
|