vscode-languageserver-protocol 3.17.0-next.16 → 3.17.0-next.19
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/common/api.d.ts +0 -52
- package/lib/common/api.js +1 -19
- package/lib/common/connection.d.ts +26 -2
- package/lib/common/protocol.$.d.ts +8 -0
- package/lib/common/protocol.$.js +19 -0
- package/lib/common/protocol.d.ts +250 -50
- package/lib/common/{proposed.diagnostic.d.ts → protocol.diagnostic.d.ts} +79 -38
- package/lib/common/{proposed.diagnostic.js → protocol.diagnostic.js} +13 -8
- package/lib/common/protocol.foldingRange.d.ts +42 -26
- package/lib/common/protocol.foldingRange.js +1 -19
- package/lib/common/protocol.implementation.d.ts +1 -1
- package/lib/common/protocol.implementation.js +2 -2
- package/lib/common/protocol.inlayHint.d.ts +17 -9
- package/lib/common/protocol.inlayHint.js +6 -3
- package/lib/common/protocol.inlineValue.d.ts +15 -8
- package/lib/common/protocol.inlineValue.js +4 -2
- package/lib/common/protocol.js +71 -12
- package/lib/common/protocol.linkedEditingRange.d.ts +1 -1
- package/lib/common/protocol.moniker.d.ts +12 -10
- package/lib/common/protocol.moniker.js +8 -8
- package/lib/common/{proposed.notebook.d.ts → protocol.notebook.d.ts} +34 -37
- package/lib/common/{proposed.notebook.js → protocol.notebook.js} +9 -5
- package/lib/common/protocol.progress.d.ts +2 -0
- package/lib/common/protocol.progress.js +4 -2
- package/lib/common/protocol.selectionRange.d.ts +1 -1
- package/lib/common/protocol.typeHierarchy.d.ts +18 -9
- package/lib/common/protocol.typeHierarchy.js +6 -3
- package/lib/common/protocol.workspaceFolder.d.ts +1 -11
- package/metaModel.schema.json +705 -0
- package/package.json +3 -3
package/lib/common/api.d.ts
CHANGED
|
@@ -53,57 +53,5 @@ export declare namespace LSPErrorCodes {
|
|
|
53
53
|
*/
|
|
54
54
|
const lspReservedErrorRangeEnd: integer;
|
|
55
55
|
}
|
|
56
|
-
import * as diag from './proposed.diagnostic';
|
|
57
|
-
import * as nb from './proposed.notebook';
|
|
58
56
|
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 $NotebookDocumentClientCapabilities = nb.$NotebookDocumentClientCapabilities;
|
|
86
|
-
type NotebookDocumentSyncClientCapabilities = nb.NotebookDocumentSyncClientCapabilities;
|
|
87
|
-
type $NotebookDocumentSyncServerCapabilities = nb.$NotebookDocumentSyncServerCapabilities;
|
|
88
|
-
type NotebookCellKind = nb.NotebookCellKind;
|
|
89
|
-
const NotebookCellKind: typeof nb.NotebookCellKind;
|
|
90
|
-
type NotebookCell = nb.NotebookCell;
|
|
91
|
-
const NotebookCell: typeof nb.NotebookCell;
|
|
92
|
-
type NotebookCellArrayChange = nb.NotebookCellArrayChange;
|
|
93
|
-
type NotebookDocument = nb.NotebookDocument;
|
|
94
|
-
const NotebookDocument: typeof nb.NotebookDocument;
|
|
95
|
-
type NotebookDocumentChangeEvent = nb.NotebookDocumentChangeEvent;
|
|
96
|
-
type NotebookDocumentIdentifier = nb.NotebookDocumentIdentifier;
|
|
97
|
-
type VersionedNotebookDocumentIdentifier = nb.VersionedNotebookDocumentIdentifier;
|
|
98
|
-
type NotebookDocumentSyncOptions = nb.NotebookDocumentSyncOptions;
|
|
99
|
-
type NotebookDocumentSyncRegistrationOptions = nb.NotebookDocumentSyncRegistrationOptions;
|
|
100
|
-
const NotebookDocumentSyncRegistrationType: typeof nb.NotebookDocumentSyncRegistrationType;
|
|
101
|
-
type DidOpenNotebookDocumentParams = nb.DidOpenNotebookDocumentParams;
|
|
102
|
-
const DidOpenNotebookDocumentNotification: typeof nb.DidOpenNotebookDocumentNotification;
|
|
103
|
-
type DidChangeNotebookDocumentParams = nb.DidChangeNotebookDocumentParams;
|
|
104
|
-
const DidChangeNotebookDocumentNotification: typeof nb.DidChangeNotebookDocumentNotification;
|
|
105
|
-
type DidSaveNotebookDocumentParams = nb.DidSaveNotebookDocumentParams;
|
|
106
|
-
const DidSaveNotebookDocumentNotification: typeof nb.DidSaveNotebookDocumentNotification;
|
|
107
|
-
type DidCloseNotebookDocumentParams = nb.DidCloseNotebookDocumentParams;
|
|
108
|
-
const DidCloseNotebookDocumentNotification: typeof nb.DidCloseNotebookDocumentNotification;
|
|
109
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);
|
|
@@ -71,22 +71,4 @@ var LSPErrorCodes;
|
|
|
71
71
|
*/
|
|
72
72
|
LSPErrorCodes.lspReservedErrorRangeEnd = -32800;
|
|
73
73
|
})(LSPErrorCodes = exports.LSPErrorCodes || (exports.LSPErrorCodes = {}));
|
|
74
|
-
const diag = require("./proposed.diagnostic");
|
|
75
|
-
const nb = require("./proposed.notebook");
|
|
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.NotebookCellKind = nb.NotebookCellKind;
|
|
84
|
-
Proposed.NotebookCell = nb.NotebookCell;
|
|
85
|
-
Proposed.NotebookDocument = nb.NotebookDocument;
|
|
86
|
-
Proposed.NotebookDocumentSyncRegistrationType = nb.NotebookDocumentSyncRegistrationType;
|
|
87
|
-
Proposed.DidOpenNotebookDocumentNotification = nb.DidOpenNotebookDocumentNotification;
|
|
88
|
-
Proposed.DidChangeNotebookDocumentNotification = nb.DidChangeNotebookDocumentNotification;
|
|
89
|
-
Proposed.DidSaveNotebookDocumentNotification = nb.DidSaveNotebookDocumentNotification;
|
|
90
|
-
Proposed.DidCloseNotebookDocumentNotification = nb.DidCloseNotebookDocumentNotification;
|
|
91
|
-
})(Proposed = exports.Proposed || (exports.Proposed = {}));
|
|
92
74
|
//# 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,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
|