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.
Files changed (30) hide show
  1. package/lib/common/api.d.ts +0 -52
  2. package/lib/common/api.js +1 -19
  3. package/lib/common/connection.d.ts +26 -2
  4. package/lib/common/protocol.$.d.ts +8 -0
  5. package/lib/common/protocol.$.js +19 -0
  6. package/lib/common/protocol.d.ts +250 -50
  7. package/lib/common/{proposed.diagnostic.d.ts → protocol.diagnostic.d.ts} +79 -38
  8. package/lib/common/{proposed.diagnostic.js → protocol.diagnostic.js} +13 -8
  9. package/lib/common/protocol.foldingRange.d.ts +42 -26
  10. package/lib/common/protocol.foldingRange.js +1 -19
  11. package/lib/common/protocol.implementation.d.ts +1 -1
  12. package/lib/common/protocol.implementation.js +2 -2
  13. package/lib/common/protocol.inlayHint.d.ts +17 -9
  14. package/lib/common/protocol.inlayHint.js +6 -3
  15. package/lib/common/protocol.inlineValue.d.ts +15 -8
  16. package/lib/common/protocol.inlineValue.js +4 -2
  17. package/lib/common/protocol.js +71 -12
  18. package/lib/common/protocol.linkedEditingRange.d.ts +1 -1
  19. package/lib/common/protocol.moniker.d.ts +12 -10
  20. package/lib/common/protocol.moniker.js +8 -8
  21. package/lib/common/{proposed.notebook.d.ts → protocol.notebook.d.ts} +34 -37
  22. package/lib/common/{proposed.notebook.js → protocol.notebook.js} +9 -5
  23. package/lib/common/protocol.progress.d.ts +2 -0
  24. package/lib/common/protocol.progress.js +4 -2
  25. package/lib/common/protocol.selectionRange.d.ts +1 -1
  26. package/lib/common/protocol.typeHierarchy.d.ts +18 -9
  27. package/lib/common/protocol.typeHierarchy.js +6 -3
  28. package/lib/common/protocol.workspaceFolder.d.ts +1 -11
  29. package/metaModel.schema.json +705 -0
  30. package/package.json +3 -3
@@ -5,7 +5,8 @@ import type { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRe
5
5
  /**
6
6
  * Client capabilities specific to inline values.
7
7
  *
8
- * @since 3.17.0 - proposed state
8
+ * @since 3.17.0
9
+ * @proposed
9
10
  */
10
11
  export declare type InlineValueClientCapabilities = {
11
12
  /**
@@ -16,7 +17,8 @@ export declare type InlineValueClientCapabilities = {
16
17
  /**
17
18
  * Client workspace capabilities specific to inline values.
18
19
  *
19
- * @since 3.17.0 - proposed state
20
+ * @since 3.17.0
21
+ * @proposed
20
22
  */
21
23
  export declare type InlineValueWorkspaceClientCapabilities = {
22
24
  /**
@@ -33,19 +35,22 @@ export declare type InlineValueWorkspaceClientCapabilities = {
33
35
  /**
34
36
  * Inline value options used during static registration.
35
37
  *
36
- * @since 3.17.0 - proposed state
38
+ * @since 3.17.0
39
+ * @proposed
37
40
  */
38
41
  export declare type InlineValueOptions = WorkDoneProgressOptions;
39
42
  /**
40
43
  * Inline value options used during static or dynamic registration.
41
44
  *
42
- * @since 3.17.0 - proposed state
45
+ * @since 3.17.0
46
+ * @proposed
43
47
  */
44
48
  export declare type InlineValueRegistrationOptions = InlineValueOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions;
45
49
  /**
46
50
  * A parameter literal used in inline value requests.
47
51
  *
48
- * @since 3.17.0 - proposed state
52
+ * @since 3.17.0
53
+ * @proposed
49
54
  */
50
55
  export declare type InlineValueParams = WorkDoneProgressParams & {
51
56
  /**
@@ -67,15 +72,17 @@ export declare type InlineValueParams = WorkDoneProgressParams & {
67
72
  * type [InlineValueParams](#InlineValueParams), the response is of type
68
73
  * [InlineValue[]](#InlineValue[]) or a Thenable that resolves to such.
69
74
  *
70
- * @since 3.17.0 - proposed state
75
+ * @since 3.17.0
76
+ * @proposed
71
77
  */
72
78
  export declare namespace InlineValueRequest {
73
79
  const method: 'textDocument/inlineValue';
74
- const type: ProtocolRequestType<InlineValueParams, InlineValue[] | null, InlineValue[], any, InlineValueRegistrationOptions>;
80
+ const type: ProtocolRequestType<InlineValueParams, InlineValue[] | null, InlineValue[], void, InlineValueRegistrationOptions>;
75
81
  type HandlerSignature = RequestHandler<InlineValueParams, InlineValue[] | null, void>;
76
82
  }
77
83
  /**
78
- * @since 3.17.0 - proposed state
84
+ * @since 3.17.0
85
+ * @proposed
79
86
  */
80
87
  export declare namespace InlineValueRefreshRequest {
81
88
  const method: `workspace/inlineValue/refresh`;
@@ -11,7 +11,8 @@ const messages_1 = require("./messages");
11
11
  * type [InlineValueParams](#InlineValueParams), the response is of type
12
12
  * [InlineValue[]](#InlineValue[]) or a Thenable that resolves to such.
13
13
  *
14
- * @since 3.17.0 - proposed state
14
+ * @since 3.17.0
15
+ * @proposed
15
16
  */
16
17
  var InlineValueRequest;
17
18
  (function (InlineValueRequest) {
@@ -19,7 +20,8 @@ var InlineValueRequest;
19
20
  InlineValueRequest.type = new messages_1.ProtocolRequestType(InlineValueRequest.method);
20
21
  })(InlineValueRequest = exports.InlineValueRequest || (exports.InlineValueRequest = {}));
21
22
  /**
22
- * @since 3.17.0 - proposed state
23
+ * @since 3.17.0
24
+ * @proposed
23
25
  */
24
26
  var InlineValueRefreshRequest;
25
27
  (function (InlineValueRefreshRequest) {
@@ -4,10 +4,11 @@
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 });
7
- exports.CodeLensRequest = exports.WorkspaceSymbolResolveRequest = exports.WorkspaceSymbolRequest = exports.CodeActionResolveRequest = exports.CodeActionRequest = exports.DocumentSymbolRequest = exports.DocumentHighlightRequest = exports.ReferencesRequest = exports.DefinitionRequest = exports.SignatureHelpRequest = exports.SignatureHelpTriggerKind = exports.HoverRequest = exports.CompletionResolveRequest = exports.CompletionRequest = exports.CompletionTriggerKind = exports.PublishDiagnosticsNotification = exports.WatchKind = exports.FileChangeType = exports.DidChangeWatchedFilesNotification = exports.WillSaveTextDocumentWaitUntilRequest = exports.WillSaveTextDocumentNotification = exports.TextDocumentSaveReason = exports.DidSaveTextDocumentNotification = exports.DidCloseTextDocumentNotification = exports.DidChangeTextDocumentNotification = exports.TextDocumentContentChangeEvent = exports.DidOpenTextDocumentNotification = exports.TextDocumentSyncKind = exports.TelemetryEventNotification = exports.LogMessageNotification = exports.ShowMessageRequest = exports.ShowMessageNotification = exports.MessageType = exports.DidChangeConfigurationNotification = exports.ExitNotification = exports.ShutdownRequest = exports.InitializedNotification = exports.InitializeError = exports.InitializeRequest = exports.WorkDoneProgressOptions = exports.TextDocumentRegistrationOptions = exports.StaticRegistrationOptions = exports.FailureHandlingKind = exports.ResourceOperationKind = exports.UnregistrationRequest = exports.RegistrationRequest = exports.DocumentSelector = exports.NotebookCellTextDocumentFilter = exports.NotebookDocumentFilter = exports.TextDocumentFilter = void 0;
8
- exports.InlineValueRequest = exports.TypeHierarchySupertypesRequest = exports.TypeHierarchySubtypesRequest = exports.TypeHierarchyPrepareRequest = exports.MonikerRequest = exports.MonikerKind = exports.UniquenessLevel = exports.WillDeleteFilesRequest = exports.DidDeleteFilesNotification = exports.WillRenameFilesRequest = exports.DidRenameFilesNotification = exports.WillCreateFilesRequest = exports.DidCreateFilesNotification = exports.FileOperationPatternKind = exports.LinkedEditingRangeRequest = exports.ShowDocumentRequest = exports.SemanticTokensRegistrationType = exports.SemanticTokensRefreshRequest = exports.SemanticTokensRangeRequest = exports.SemanticTokensDeltaRequest = exports.SemanticTokensRequest = exports.TokenFormat = exports.CallHierarchyPrepareRequest = exports.CallHierarchyOutgoingCallsRequest = exports.CallHierarchyIncomingCallsRequest = exports.WorkDoneProgressCancelNotification = exports.WorkDoneProgressCreateRequest = exports.WorkDoneProgress = exports.SelectionRangeRequest = exports.DeclarationRequest = exports.FoldingRangeRequest = exports.ColorPresentationRequest = exports.DocumentColorRequest = exports.ConfigurationRequest = exports.DidChangeWorkspaceFoldersNotification = exports.WorkspaceFoldersRequest = exports.TypeDefinitionRequest = exports.ImplementationRequest = exports.ApplyWorkspaceEditRequest = exports.ExecuteCommandRequest = exports.PrepareRenameRequest = exports.RenameRequest = exports.PrepareSupportDefaultBehavior = exports.DocumentOnTypeFormattingRequest = exports.DocumentRangeFormattingRequest = exports.DocumentFormattingRequest = exports.DocumentLinkResolveRequest = exports.DocumentLinkRequest = exports.CodeLensRefreshRequest = exports.CodeLensResolveRequest = void 0;
9
- exports.InlayHintRefreshRequest = exports.InlayHintResolveRequest = exports.InlayHintRequest = exports.InlineValueRefreshRequest = void 0;
7
+ exports.WorkspaceSymbolRequest = exports.CodeActionResolveRequest = exports.CodeActionRequest = exports.DocumentSymbolRequest = exports.DocumentHighlightRequest = exports.ReferencesRequest = exports.DefinitionRequest = exports.SignatureHelpRequest = exports.SignatureHelpTriggerKind = exports.HoverRequest = exports.CompletionResolveRequest = exports.CompletionRequest = exports.CompletionTriggerKind = exports.PublishDiagnosticsNotification = exports.WatchKind = exports.RelativePattern = exports.FileChangeType = exports.DidChangeWatchedFilesNotification = exports.WillSaveTextDocumentWaitUntilRequest = exports.WillSaveTextDocumentNotification = exports.TextDocumentSaveReason = exports.DidSaveTextDocumentNotification = exports.DidCloseTextDocumentNotification = exports.DidChangeTextDocumentNotification = exports.TextDocumentContentChangeEvent = exports.DidOpenTextDocumentNotification = exports.TextDocumentSyncKind = exports.TelemetryEventNotification = exports.LogMessageNotification = exports.ShowMessageRequest = exports.ShowMessageNotification = exports.MessageType = exports.DidChangeConfigurationNotification = exports.ExitNotification = exports.ShutdownRequest = exports.InitializedNotification = exports.InitializeErrorCodes = exports.InitializeRequest = exports.WorkDoneProgressOptions = exports.TextDocumentRegistrationOptions = exports.StaticRegistrationOptions = exports.PositionEncodingKind = exports.FailureHandlingKind = exports.ResourceOperationKind = exports.UnregistrationRequest = exports.RegistrationRequest = exports.DocumentSelector = exports.NotebookCellTextDocumentFilter = exports.NotebookDocumentFilter = exports.TextDocumentFilter = void 0;
8
+ exports.TypeHierarchySubtypesRequest = exports.TypeHierarchyPrepareRequest = exports.MonikerRequest = exports.MonikerKind = exports.UniquenessLevel = exports.WillDeleteFilesRequest = exports.DidDeleteFilesNotification = exports.WillRenameFilesRequest = exports.DidRenameFilesNotification = exports.WillCreateFilesRequest = exports.DidCreateFilesNotification = exports.FileOperationPatternKind = exports.LinkedEditingRangeRequest = exports.ShowDocumentRequest = exports.SemanticTokensRegistrationType = exports.SemanticTokensRefreshRequest = exports.SemanticTokensRangeRequest = exports.SemanticTokensDeltaRequest = exports.SemanticTokensRequest = exports.TokenFormat = exports.CallHierarchyPrepareRequest = exports.CallHierarchyOutgoingCallsRequest = exports.CallHierarchyIncomingCallsRequest = exports.WorkDoneProgressCancelNotification = exports.WorkDoneProgressCreateRequest = exports.WorkDoneProgress = exports.SelectionRangeRequest = exports.DeclarationRequest = exports.FoldingRangeRequest = exports.ColorPresentationRequest = exports.DocumentColorRequest = exports.ConfigurationRequest = exports.DidChangeWorkspaceFoldersNotification = exports.WorkspaceFoldersRequest = exports.TypeDefinitionRequest = exports.ImplementationRequest = exports.ApplyWorkspaceEditRequest = exports.ExecuteCommandRequest = exports.PrepareRenameRequest = exports.RenameRequest = exports.PrepareSupportDefaultBehavior = exports.DocumentOnTypeFormattingRequest = exports.DocumentRangeFormattingRequest = exports.DocumentFormattingRequest = exports.DocumentLinkResolveRequest = exports.DocumentLinkRequest = exports.CodeLensRefreshRequest = exports.CodeLensResolveRequest = exports.CodeLensRequest = exports.WorkspaceSymbolResolveRequest = void 0;
9
+ exports.DidCloseNotebookDocumentNotification = exports.DidSaveNotebookDocumentNotification = exports.DidChangeNotebookDocumentNotification = exports.NotebookCellArrayChange = exports.DidOpenNotebookDocumentNotification = exports.NotebookDocumentSyncRegistrationType = exports.NotebookDocument = exports.NotebookCell = exports.ExecutionSummary = exports.NotebookCellKind = exports.DiagnosticRefreshRequest = exports.WorkspaceDiagnosticRequest = exports.DocumentDiagnosticRequest = exports.DocumentDiagnosticReportKind = exports.DiagnosticServerCancellationData = exports.InlayHintRefreshRequest = exports.InlayHintResolveRequest = exports.InlayHintRequest = exports.InlineValueRefreshRequest = exports.InlineValueRequest = exports.TypeHierarchySupertypesRequest = void 0;
10
10
  const messages_1 = require("./messages");
11
+ const vscode_languageserver_types_1 = require("vscode-languageserver-types");
11
12
  const Is = require("./utils/is");
12
13
  const protocol_implementation_1 = require("./protocol.implementation");
13
14
  Object.defineProperty(exports, "ImplementationRequest", { enumerable: true, get: function () { return protocol_implementation_1.ImplementationRequest; } });
@@ -69,13 +70,31 @@ const protocol_inlayHint_1 = require("./protocol.inlayHint");
69
70
  Object.defineProperty(exports, "InlayHintRequest", { enumerable: true, get: function () { return protocol_inlayHint_1.InlayHintRequest; } });
70
71
  Object.defineProperty(exports, "InlayHintResolveRequest", { enumerable: true, get: function () { return protocol_inlayHint_1.InlayHintResolveRequest; } });
71
72
  Object.defineProperty(exports, "InlayHintRefreshRequest", { enumerable: true, get: function () { return protocol_inlayHint_1.InlayHintRefreshRequest; } });
73
+ const protocol_diagnostic_1 = require("./protocol.diagnostic");
74
+ Object.defineProperty(exports, "DiagnosticServerCancellationData", { enumerable: true, get: function () { return protocol_diagnostic_1.DiagnosticServerCancellationData; } });
75
+ Object.defineProperty(exports, "DocumentDiagnosticReportKind", { enumerable: true, get: function () { return protocol_diagnostic_1.DocumentDiagnosticReportKind; } });
76
+ Object.defineProperty(exports, "DocumentDiagnosticRequest", { enumerable: true, get: function () { return protocol_diagnostic_1.DocumentDiagnosticRequest; } });
77
+ Object.defineProperty(exports, "WorkspaceDiagnosticRequest", { enumerable: true, get: function () { return protocol_diagnostic_1.WorkspaceDiagnosticRequest; } });
78
+ Object.defineProperty(exports, "DiagnosticRefreshRequest", { enumerable: true, get: function () { return protocol_diagnostic_1.DiagnosticRefreshRequest; } });
79
+ const protocol_notebook_1 = require("./protocol.notebook");
80
+ Object.defineProperty(exports, "NotebookCellKind", { enumerable: true, get: function () { return protocol_notebook_1.NotebookCellKind; } });
81
+ Object.defineProperty(exports, "ExecutionSummary", { enumerable: true, get: function () { return protocol_notebook_1.ExecutionSummary; } });
82
+ Object.defineProperty(exports, "NotebookCell", { enumerable: true, get: function () { return protocol_notebook_1.NotebookCell; } });
83
+ Object.defineProperty(exports, "NotebookDocument", { enumerable: true, get: function () { return protocol_notebook_1.NotebookDocument; } });
84
+ Object.defineProperty(exports, "NotebookDocumentSyncRegistrationType", { enumerable: true, get: function () { return protocol_notebook_1.NotebookDocumentSyncRegistrationType; } });
85
+ Object.defineProperty(exports, "DidOpenNotebookDocumentNotification", { enumerable: true, get: function () { return protocol_notebook_1.DidOpenNotebookDocumentNotification; } });
86
+ Object.defineProperty(exports, "NotebookCellArrayChange", { enumerable: true, get: function () { return protocol_notebook_1.NotebookCellArrayChange; } });
87
+ Object.defineProperty(exports, "DidChangeNotebookDocumentNotification", { enumerable: true, get: function () { return protocol_notebook_1.DidChangeNotebookDocumentNotification; } });
88
+ Object.defineProperty(exports, "DidSaveNotebookDocumentNotification", { enumerable: true, get: function () { return protocol_notebook_1.DidSaveNotebookDocumentNotification; } });
89
+ Object.defineProperty(exports, "DidCloseNotebookDocumentNotification", { enumerable: true, get: function () { return protocol_notebook_1.DidCloseNotebookDocumentNotification; } });
72
90
  // @ts-ignore: to avoid inlining LocationLink as dynamic import
73
91
  let __noDynamicImport;
74
92
  /**
75
93
  * The TextDocumentFilter namespace provides helper functions to work with
76
94
  * [TextDocumentFilter](#TextDocumentFilter) literals.
77
95
  *
78
- * @since 3.17.0 - proposed state.
96
+ * @since 3.17.0
97
+ * @proposed
79
98
  */
80
99
  var TextDocumentFilter;
81
100
  (function (TextDocumentFilter) {
@@ -89,7 +108,8 @@ var TextDocumentFilter;
89
108
  * The NotebookDocumentFilter namespace provides helper functions to work with
90
109
  * [NotebookDocumentFilter](#NotebookDocumentFilter) literals.
91
110
  *
92
- * @since 3.17.0 - proposed state.
111
+ * @since 3.17.0
112
+ * @proposed
93
113
  */
94
114
  var NotebookDocumentFilter;
95
115
  (function (NotebookDocumentFilter) {
@@ -103,7 +123,8 @@ var NotebookDocumentFilter;
103
123
  * The NotebookCellTextDocumentFilter namespace provides helper functions to work with
104
124
  * [NotebookCellTextDocumentFilter](#NotebookCellTextDocumentFilter) literals.
105
125
  *
106
- * @since 3.17.0 - proposed state.
126
+ * @since 3.17.0
127
+ * @proposed
107
128
  */
108
129
  var NotebookCellTextDocumentFilter;
109
130
  (function (NotebookCellTextDocumentFilter) {
@@ -189,6 +210,34 @@ var FailureHandlingKind;
189
210
  */
190
211
  FailureHandlingKind.Undo = 'undo';
191
212
  })(FailureHandlingKind = exports.FailureHandlingKind || (exports.FailureHandlingKind = {}));
213
+ /**
214
+ * A set of predefined position encoding kinds.
215
+ *
216
+ * @since 3.17.0
217
+ * @proposed
218
+ */
219
+ var PositionEncodingKind;
220
+ (function (PositionEncodingKind) {
221
+ /**
222
+ * Character offsets count UTF-8 code units.
223
+ */
224
+ PositionEncodingKind.UTF8 = 'utf-8';
225
+ /**
226
+ * Character offsets count UTF-16 code units.
227
+ *
228
+ * This is the default and must always be supported
229
+ * by servers
230
+ */
231
+ PositionEncodingKind.UTF16 = 'utf-16';
232
+ /**
233
+ * Character offsets count UTF-32 code units.
234
+ *
235
+ * Implementation note: these are the same as Unicode code points,
236
+ * so this `PositionEncodingKind` may also be used for an
237
+ * encoding-agnostic representation of character offsets.
238
+ */
239
+ PositionEncodingKind.UTF32 = 'utf-32';
240
+ })(PositionEncodingKind = exports.PositionEncodingKind || (exports.PositionEncodingKind = {}));
192
241
  /**
193
242
  * The StaticRegistrationOptions namespace provides helper functions to work with
194
243
  * [StaticRegistrationOptions](#StaticRegistrationOptions) literals.
@@ -242,17 +291,18 @@ var InitializeRequest;
242
291
  InitializeRequest.type = new messages_1.ProtocolRequestType('initialize');
243
292
  })(InitializeRequest = exports.InitializeRequest || (exports.InitializeRequest = {}));
244
293
  /**
245
- * Known error codes for an `InitializeError`;
294
+ * Known error codes for an `InitializeErrorCodes`;
246
295
  */
247
- var InitializeError;
248
- (function (InitializeError) {
296
+ var InitializeErrorCodes;
297
+ (function (InitializeErrorCodes) {
249
298
  /**
250
299
  * If the protocol version provided by the client can't be handled by the server.
300
+ *
251
301
  * @deprecated This initialize error got replaced by client capabilities. There is
252
302
  * no version handshake in version 3.0x
253
303
  */
254
- InitializeError.unknownProtocolVersion = 1;
255
- })(InitializeError = exports.InitializeError || (exports.InitializeError = {}));
304
+ InitializeErrorCodes.unknownProtocolVersion = 1;
305
+ })(InitializeErrorCodes = exports.InitializeErrorCodes || (exports.InitializeErrorCodes = {}));
256
306
  /**
257
307
  * The initialized notification is sent from the client to the
258
308
  * server after the client is fully initialized and the server
@@ -505,6 +555,14 @@ var FileChangeType;
505
555
  */
506
556
  FileChangeType.Deleted = 3;
507
557
  })(FileChangeType = exports.FileChangeType || (exports.FileChangeType = {}));
558
+ var RelativePattern;
559
+ (function (RelativePattern) {
560
+ function is(value) {
561
+ const candidate = value;
562
+ return Is.objectLiteral(candidate) && (vscode_languageserver_types_1.URI.is(candidate.baseUri) || vscode_languageserver_types_1.WorkspaceFolder.is(candidate.baseUri)) && Is.string(candidate.pattern);
563
+ }
564
+ RelativePattern.is = is;
565
+ })(RelativePattern = exports.RelativePattern || (exports.RelativePattern = {}));
508
566
  var WatchKind;
509
567
  (function (WatchKind) {
510
568
  /**
@@ -692,7 +750,8 @@ var WorkspaceSymbolRequest;
692
750
  * A request to resolve the range inside the workspace
693
751
  * symbol's location.
694
752
  *
695
- * @since 3.17.0 - proposed state
753
+ * @since 3.17.0
754
+ * @proposed
696
755
  */
697
756
  var WorkspaceSymbolResolveRequest;
698
757
  (function (WorkspaceSymbolResolveRequest) {
@@ -46,6 +46,6 @@ export interface LinkedEditingRanges {
46
46
  */
47
47
  export declare namespace LinkedEditingRangeRequest {
48
48
  const method: 'textDocument/linkedEditingRange';
49
- const type: ProtocolRequestType<LinkedEditingRangeParams, LinkedEditingRanges | null, void, any, LinkedEditingRangeRegistrationOptions>;
49
+ const type: ProtocolRequestType<LinkedEditingRangeParams, LinkedEditingRanges | null, void, void, LinkedEditingRangeRegistrationOptions>;
50
50
  type HandlerSignature = RequestHandler<LinkedEditingRangeParams, LinkedEditingRanges | null, void>;
51
51
  }
@@ -5,48 +5,50 @@ import type { WorkDoneProgressOptions, WorkDoneProgressParams, PartialResultPara
5
5
  *
6
6
  * @since 3.16.0
7
7
  */
8
- export declare enum UniquenessLevel {
8
+ export declare namespace UniquenessLevel {
9
9
  /**
10
10
  * The moniker is only unique inside a document
11
11
  */
12
- document = "document",
12
+ const document = "document";
13
13
  /**
14
14
  * The moniker is unique inside a project for which a dump got created
15
15
  */
16
- project = "project",
16
+ const project = "project";
17
17
  /**
18
18
  * The moniker is unique inside the group to which a project belongs
19
19
  */
20
- group = "group",
20
+ const group = "group";
21
21
  /**
22
22
  * The moniker is unique inside the moniker scheme.
23
23
  */
24
- scheme = "scheme",
24
+ const scheme = "scheme";
25
25
  /**
26
26
  * The moniker is globally unique
27
27
  */
28
- global = "global"
28
+ const global = "global";
29
29
  }
30
+ export declare type UniquenessLevel = 'document' | 'project' | 'group' | 'scheme' | 'global';
30
31
  /**
31
32
  * The moniker kind.
32
33
  *
33
34
  * @since 3.16.0
34
35
  */
35
- export declare enum MonikerKind {
36
+ export declare namespace MonikerKind {
36
37
  /**
37
38
  * The moniker represent a symbol that is imported into a project
38
39
  */
39
- import = "import",
40
+ const $import = "import";
40
41
  /**
41
42
  * The moniker represents a symbol that is exported from a project
42
43
  */
43
- export = "export",
44
+ const $export = "export";
44
45
  /**
45
46
  * The moniker represents a symbol that is local to a project (e.g. a local
46
47
  * variable of a function, a class not visible outside the project, ...)
47
48
  */
48
- local = "local"
49
+ const local = "local";
49
50
  }
51
+ export declare type MonikerKind = 'import' | 'export' | 'local';
50
52
  /**
51
53
  * Moniker definition to match LSIF 0.5 moniker definition.
52
54
  *
@@ -16,23 +16,23 @@ var UniquenessLevel;
16
16
  /**
17
17
  * The moniker is only unique inside a document
18
18
  */
19
- UniquenessLevel["document"] = "document";
19
+ UniquenessLevel.document = 'document';
20
20
  /**
21
21
  * The moniker is unique inside a project for which a dump got created
22
22
  */
23
- UniquenessLevel["project"] = "project";
23
+ UniquenessLevel.project = 'project';
24
24
  /**
25
25
  * The moniker is unique inside the group to which a project belongs
26
26
  */
27
- UniquenessLevel["group"] = "group";
27
+ UniquenessLevel.group = 'group';
28
28
  /**
29
29
  * The moniker is unique inside the moniker scheme.
30
30
  */
31
- UniquenessLevel["scheme"] = "scheme";
31
+ UniquenessLevel.scheme = 'scheme';
32
32
  /**
33
33
  * The moniker is globally unique
34
34
  */
35
- UniquenessLevel["global"] = "global";
35
+ UniquenessLevel.global = 'global';
36
36
  })(UniquenessLevel = exports.UniquenessLevel || (exports.UniquenessLevel = {}));
37
37
  /**
38
38
  * The moniker kind.
@@ -44,16 +44,16 @@ var MonikerKind;
44
44
  /**
45
45
  * The moniker represent a symbol that is imported into a project
46
46
  */
47
- MonikerKind["import"] = "import";
47
+ MonikerKind.$import = 'import';
48
48
  /**
49
49
  * The moniker represents a symbol that is exported from a project
50
50
  */
51
- MonikerKind["export"] = "export";
51
+ MonikerKind.$export = 'export';
52
52
  /**
53
53
  * The moniker represents a symbol that is local to a project (e.g. a local
54
54
  * variable of a function, a class not visible outside the project, ...)
55
55
  */
56
- MonikerKind["local"] = "local";
56
+ MonikerKind.local = 'local';
57
57
  })(MonikerKind = exports.MonikerKind || (exports.MonikerKind = {}));
58
58
  /**
59
59
  * A request to get the moniker of a symbol at a given text document position.
@@ -4,7 +4,8 @@ import type { StaticRegistrationOptions, NotebookDocumentFilter, TextDocumentCon
4
4
  /**
5
5
  * Notebook specific client capabilities.
6
6
  *
7
- * @since 3.17.0 - proposed state
7
+ * @since 3.17.0
8
+ * @proposed
8
9
  */
9
10
  export declare type NotebookDocumentSyncClientCapabilities = {
10
11
  /**
@@ -19,15 +20,11 @@ export declare type NotebookDocumentSyncClientCapabilities = {
19
20
  */
20
21
  executionSummarySupport?: boolean;
21
22
  };
22
- export declare type $NotebookDocumentClientCapabilities = {
23
- notebookDocument?: {
24
- synchronization: NotebookDocumentSyncClientCapabilities;
25
- };
26
- };
27
23
  /**
28
24
  * A notebook cell kind.
29
25
  *
30
- * @since 3.17.0 - proposed state
26
+ * @since 3.17.0
27
+ * @proposed
31
28
  */
32
29
  export declare namespace NotebookCellKind {
33
30
  /**
@@ -66,7 +63,8 @@ export declare namespace ExecutionSummary {
66
63
  * cells and can therefore be used to uniquely identify a
67
64
  * notebook cell or the cell's text document.
68
65
  *
69
- * @since 3.17.0 - proposed state
66
+ * @since 3.17.0
67
+ * @proposed
70
68
  */
71
69
  export declare type NotebookCell = {
72
70
  /**
@@ -96,7 +94,8 @@ export declare namespace NotebookCell {
96
94
  /**
97
95
  * A notebook document.
98
96
  *
99
- * @since 3.17.0 - proposed state
97
+ * @since 3.17.0
98
+ * @proposed
100
99
  */
101
100
  export declare type NotebookDocument = {
102
101
  /**
@@ -129,7 +128,8 @@ export declare namespace NotebookDocument {
129
128
  /**
130
129
  * A literal to identify a notebook document in the client.
131
130
  *
132
- * @since 3.17.0 - proposed state
131
+ * @since 3.17.0
132
+ * @proposed
133
133
  */
134
134
  export declare type NotebookDocumentIdentifier = {
135
135
  /**
@@ -140,7 +140,8 @@ export declare type NotebookDocumentIdentifier = {
140
140
  /**
141
141
  * A versioned notebook document identifier.
142
142
  *
143
- * @since 3.17.0 - proposed state
143
+ * @since 3.17.0
144
+ * @proposed
144
145
  */
145
146
  export declare type VersionedNotebookDocumentIdentifier = {
146
147
  /**
@@ -165,7 +166,8 @@ export declare type VersionedNotebookDocumentIdentifier = {
165
166
  * document that contain at least one matching
166
167
  * cell will be synced.
167
168
  *
168
- * @since 3.17.0 - proposed state
169
+ * @since 3.17.0
170
+ * @proposed
169
171
  */
170
172
  export declare type NotebookDocumentSyncOptions = {
171
173
  /**
@@ -198,18 +200,6 @@ export declare type NotebookDocumentSyncOptions = {
198
200
  language: string;
199
201
  }[];
200
202
  })[];
201
- /**
202
- * Determines how the notebook is synchronized.
203
- *
204
- * If set to 'notebook' the notebook document,
205
- * its meta data, cell structure and the cell's
206
- * text documents are synchronized.
207
- *
208
- * If set to 'cellContent' only the cell content
209
- * is synchronized using the available
210
- * `textDocument/did*` notifications.
211
- */
212
- mode: 'notebook' | 'cellContent';
213
203
  /**
214
204
  * Whether save notification should be forwarded to
215
205
  * the server. Will only be honored if mode === `notebook`.
@@ -219,12 +209,10 @@ export declare type NotebookDocumentSyncOptions = {
219
209
  /**
220
210
  * Registration options specific to a notebook.
221
211
  *
222
- * @since 3.17.0 - proposed state
212
+ * @since 3.17.0
213
+ * @proposed
223
214
  */
224
215
  export declare type NotebookDocumentSyncRegistrationOptions = NotebookDocumentSyncOptions & StaticRegistrationOptions;
225
- export interface $NotebookDocumentSyncServerCapabilities {
226
- notebookDocumentSync?: NotebookDocumentSyncOptions | NotebookDocumentSyncRegistrationOptions;
227
- }
228
216
  export declare namespace NotebookDocumentSyncRegistrationType {
229
217
  const method: 'notebookDocument/sync';
230
218
  const type: RegistrationType<NotebookDocumentSyncRegistrationOptions>;
@@ -232,7 +220,8 @@ export declare namespace NotebookDocumentSyncRegistrationType {
232
220
  /**
233
221
  * The params sent in a open notebook document notification.
234
222
  *
235
- * @since 3.17.0 - proposed state
223
+ * @since 3.17.0
224
+ * @proposed
236
225
  */
237
226
  export declare type DidOpenNotebookDocumentParams = {
238
227
  /**
@@ -248,7 +237,8 @@ export declare type DidOpenNotebookDocumentParams = {
248
237
  /**
249
238
  * A notification sent when a notebook opens.
250
239
  *
251
- * @since 3.17.0 - proposed state
240
+ * @since 3.17.0
241
+ * @proposed
252
242
  */
253
243
  export declare namespace DidOpenNotebookDocumentNotification {
254
244
  const method: 'notebookDocument/didOpen';
@@ -258,7 +248,8 @@ export declare namespace DidOpenNotebookDocumentNotification {
258
248
  * A change describing how to move a `NotebookCell`
259
249
  * array from state S to S'.
260
250
  *
261
- * @since 3.17.0 - proposed state
251
+ * @since 3.17.0
252
+ * @proposed
262
253
  */
263
254
  export declare type NotebookCellArrayChange = {
264
255
  /**
@@ -281,7 +272,8 @@ export declare namespace NotebookCellArrayChange {
281
272
  /**
282
273
  * A change event for a notebook document.
283
274
  *
284
- * @since 3.17.0 - proposed state
275
+ * @since 3.17.0
276
+ * @proposed
285
277
  */
286
278
  export declare type NotebookDocumentChangeEvent = {
287
279
  /**
@@ -327,7 +319,8 @@ export declare type NotebookDocumentChangeEvent = {
327
319
  /**
328
320
  * The params sent in a change notebook document notification.
329
321
  *
330
- * @since 3.17.0 - proposed state
322
+ * @since 3.17.0
323
+ * @proposed
331
324
  */
332
325
  export declare type DidChangeNotebookDocumentParams = {
333
326
  /**
@@ -361,7 +354,8 @@ export declare namespace DidChangeNotebookDocumentNotification {
361
354
  /**
362
355
  * The params sent in a save notebook document notification.
363
356
  *
364
- * @since 3.17.0 - proposed state
357
+ * @since 3.17.0
358
+ * @proposed
365
359
  */
366
360
  export declare type DidSaveNotebookDocumentParams = {
367
361
  /**
@@ -372,7 +366,8 @@ export declare type DidSaveNotebookDocumentParams = {
372
366
  /**
373
367
  * A notification sent when a notebook document is saved.
374
368
  *
375
- * @since 3.17.0 - proposed state
369
+ * @since 3.17.0
370
+ * @proposed
376
371
  */
377
372
  export declare namespace DidSaveNotebookDocumentNotification {
378
373
  const method: 'notebookDocument/didSave';
@@ -381,7 +376,8 @@ export declare namespace DidSaveNotebookDocumentNotification {
381
376
  /**
382
377
  * The params sent in a close notebook document notification.
383
378
  *
384
- * @since 3.17.0 - proposed state
379
+ * @since 3.17.0
380
+ * @proposed
385
381
  */
386
382
  export declare type DidCloseNotebookDocumentParams = {
387
383
  /**
@@ -397,7 +393,8 @@ export declare type DidCloseNotebookDocumentParams = {
397
393
  /**
398
394
  * A notification sent when a notebook closes.
399
395
  *
400
- * @since 3.17.0 - proposed state
396
+ * @since 3.17.0
397
+ * @proposed
401
398
  */
402
399
  export declare namespace DidCloseNotebookDocumentNotification {
403
400
  const method: 'notebookDocument/didClose';
@@ -11,7 +11,8 @@ const messages_1 = require("./messages");
11
11
  /**
12
12
  * A notebook cell kind.
13
13
  *
14
- * @since 3.17.0 - proposed state
14
+ * @since 3.17.0
15
+ * @proposed
15
16
  */
16
17
  var NotebookCellKind;
17
18
  (function (NotebookCellKind) {
@@ -155,7 +156,8 @@ var NotebookDocumentSyncRegistrationType;
155
156
  /**
156
157
  * A notification sent when a notebook opens.
157
158
  *
158
- * @since 3.17.0 - proposed state
159
+ * @since 3.17.0
160
+ * @proposed
159
161
  */
160
162
  var DidOpenNotebookDocumentNotification;
161
163
  (function (DidOpenNotebookDocumentNotification) {
@@ -186,7 +188,8 @@ var DidChangeNotebookDocumentNotification;
186
188
  /**
187
189
  * A notification sent when a notebook document is saved.
188
190
  *
189
- * @since 3.17.0 - proposed state
191
+ * @since 3.17.0
192
+ * @proposed
190
193
  */
191
194
  var DidSaveNotebookDocumentNotification;
192
195
  (function (DidSaveNotebookDocumentNotification) {
@@ -196,11 +199,12 @@ var DidSaveNotebookDocumentNotification;
196
199
  /**
197
200
  * A notification sent when a notebook closes.
198
201
  *
199
- * @since 3.17.0 - proposed state
202
+ * @since 3.17.0
203
+ * @proposed
200
204
  */
201
205
  var DidCloseNotebookDocumentNotification;
202
206
  (function (DidCloseNotebookDocumentNotification) {
203
207
  DidCloseNotebookDocumentNotification.method = 'notebookDocument/didClose';
204
208
  DidCloseNotebookDocumentNotification.type = new messages_1.ProtocolNotificationType(DidCloseNotebookDocumentNotification.method);
205
209
  })(DidCloseNotebookDocumentNotification = exports.DidCloseNotebookDocumentNotification || (exports.DidCloseNotebookDocumentNotification = {}));
206
- //# sourceMappingURL=proposed.notebook.js.map
210
+ //# sourceMappingURL=protocol.notebook.js.map
@@ -84,6 +84,7 @@ export interface WorkDoneProgressCreateParams {
84
84
  * reporting from the server.
85
85
  */
86
86
  export declare namespace WorkDoneProgressCreateRequest {
87
+ const method: 'window/workDoneProgress/create';
87
88
  const type: ProtocolRequestType<WorkDoneProgressCreateParams, void, never, void, void>;
88
89
  type HandlerSignature = RequestHandler<WorkDoneProgressCreateParams, void, void>;
89
90
  }
@@ -98,6 +99,7 @@ export interface WorkDoneProgressCancelParams {
98
99
  * initiated on the server side.
99
100
  */
100
101
  export declare namespace WorkDoneProgressCancelNotification {
102
+ const method: 'window/workDoneProgress/cancel';
101
103
  const type: ProtocolNotificationType<WorkDoneProgressCancelParams, void>;
102
104
  type HandlerSignature = NotificationHandler<WorkDoneProgressCancelParams>;
103
105
  }
@@ -21,7 +21,8 @@ var WorkDoneProgress;
21
21
  */
22
22
  var WorkDoneProgressCreateRequest;
23
23
  (function (WorkDoneProgressCreateRequest) {
24
- WorkDoneProgressCreateRequest.type = new messages_1.ProtocolRequestType('window/workDoneProgress/create');
24
+ WorkDoneProgressCreateRequest.method = 'window/workDoneProgress/create';
25
+ WorkDoneProgressCreateRequest.type = new messages_1.ProtocolRequestType(WorkDoneProgressCreateRequest.method);
25
26
  })(WorkDoneProgressCreateRequest = exports.WorkDoneProgressCreateRequest || (exports.WorkDoneProgressCreateRequest = {}));
26
27
  /**
27
28
  * The `window/workDoneProgress/cancel` notification is sent from the client to the server to cancel a progress
@@ -29,6 +30,7 @@ var WorkDoneProgressCreateRequest;
29
30
  */
30
31
  var WorkDoneProgressCancelNotification;
31
32
  (function (WorkDoneProgressCancelNotification) {
32
- WorkDoneProgressCancelNotification.type = new messages_1.ProtocolNotificationType('window/workDoneProgress/cancel');
33
+ WorkDoneProgressCancelNotification.method = 'window/workDoneProgress/cancel';
34
+ WorkDoneProgressCancelNotification.type = new messages_1.ProtocolNotificationType(WorkDoneProgressCancelNotification.method);
33
35
  })(WorkDoneProgressCancelNotification = exports.WorkDoneProgressCancelNotification || (exports.WorkDoneProgressCancelNotification = {}));
34
36
  //# sourceMappingURL=protocol.progress.js.map
@@ -35,6 +35,6 @@ export interface SelectionRangeParams extends WorkDoneProgressParams, PartialRes
35
35
  */
36
36
  export declare namespace SelectionRangeRequest {
37
37
  const method: 'textDocument/selectionRange';
38
- const type: ProtocolRequestType<SelectionRangeParams, SelectionRange[] | null, SelectionRange[], any, SelectionRangeRegistrationOptions>;
38
+ const type: ProtocolRequestType<SelectionRangeParams, SelectionRange[] | null, SelectionRange[], void, SelectionRangeRegistrationOptions>;
39
39
  type HandlerSignature = RequestHandler<SelectionRangeParams, SelectionRange[] | null, void>;
40
40
  }