vscode-languageserver-protocol 3.17.0-next.13 → 3.17.0-next.16
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 +1 -18
- package/lib/common/api.js +1 -8
- package/lib/common/proposed.diagnostic.d.ts +34 -35
- package/lib/common/{proposed.notebooks.d.ts → proposed.notebook.d.ts} +101 -57
- package/lib/common/{proposed.notebooks.js → proposed.notebook.js} +46 -7
- 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 +1 -14
- package/lib/common/protocol.configuration.js +1 -0
- package/lib/common/protocol.d.ts +82 -61
- package/lib/common/protocol.declaration.d.ts +2 -2
- package/lib/common/protocol.declaration.js +2 -2
- package/lib/common/protocol.foldingRange.d.ts +1 -1
- package/lib/common/protocol.implementation.d.ts +1 -1
- package/lib/common/protocol.inlayHint.d.ts +107 -0
- package/lib/common/protocol.inlayHint.js +41 -0
- package/lib/common/{proposed.inlineValue.d.ts → protocol.inlineValue.d.ts} +23 -25
- package/lib/common/protocol.inlineValue.js +29 -0
- package/lib/common/protocol.js +19 -5
- package/lib/common/protocol.linkedEditingRange.d.ts +1 -1
- package/lib/common/protocol.moniker.d.ts +1 -1
- package/lib/common/protocol.progress.d.ts +0 -14
- package/lib/common/protocol.selectionRange.d.ts +1 -1
- package/lib/common/protocol.semanticTokens.d.ts +1 -1
- package/lib/common/protocol.typeDefinition.d.ts +1 -1
- package/lib/common/{proposed.typeHierarchy.d.ts → protocol.typeHierarchy.d.ts} +10 -13
- package/lib/common/{proposed.typeHierarchy.js → protocol.typeHierarchy.js} +1 -1
- package/lib/common/{protocol.workspaceFolders.d.ts → protocol.workspaceFolder.d.ts} +11 -31
- package/lib/common/{protocol.workspaceFolders.js → protocol.workspaceFolder.js} +1 -1
- package/package.json +3 -3
- package/lib/common/proposed.inlineValue.js +0 -29
|
@@ -4,7 +4,7 @@
|
|
|
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.DidCloseNotebookDocumentNotification = exports.DidSaveNotebookDocumentNotification = exports.DidChangeNotebookDocumentNotification = exports.NotebookCellArrayChange = exports.DidOpenNotebookDocumentNotification = exports.NotebookDocumentSyncRegistrationType = exports.NotebookDocument = exports.NotebookCell = exports.NotebookCellKind = void 0;
|
|
7
|
+
exports.DidCloseNotebookDocumentNotification = exports.DidSaveNotebookDocumentNotification = exports.DidChangeNotebookDocumentNotification = exports.NotebookCellArrayChange = exports.DidOpenNotebookDocumentNotification = exports.NotebookDocumentSyncRegistrationType = exports.NotebookDocument = exports.NotebookCell = exports.ExecutionSummary = exports.NotebookCellKind = void 0;
|
|
8
8
|
const vscode_languageserver_types_1 = require("vscode-languageserver-types");
|
|
9
9
|
const Is = require("./utils/is");
|
|
10
10
|
const messages_1 = require("./messages");
|
|
@@ -28,6 +28,32 @@ var NotebookCellKind;
|
|
|
28
28
|
}
|
|
29
29
|
NotebookCellKind.is = is;
|
|
30
30
|
})(NotebookCellKind = exports.NotebookCellKind || (exports.NotebookCellKind = {}));
|
|
31
|
+
var ExecutionSummary;
|
|
32
|
+
(function (ExecutionSummary) {
|
|
33
|
+
function create(executionOrder, success) {
|
|
34
|
+
const result = { executionOrder };
|
|
35
|
+
if (success === true || success === false) {
|
|
36
|
+
result.success = success;
|
|
37
|
+
}
|
|
38
|
+
return result;
|
|
39
|
+
}
|
|
40
|
+
ExecutionSummary.create = create;
|
|
41
|
+
function is(value) {
|
|
42
|
+
const candidate = value;
|
|
43
|
+
return Is.objectLiteral(candidate) && vscode_languageserver_types_1.uinteger.is(candidate.executionOrder) && (candidate.success === undefined || Is.boolean(candidate.success));
|
|
44
|
+
}
|
|
45
|
+
ExecutionSummary.is = is;
|
|
46
|
+
function equals(one, other) {
|
|
47
|
+
if (one === other) {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
if (one === null || one === undefined || other === null || other === undefined) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
return one.executionOrder === other.executionOrder && one.success === other.success;
|
|
54
|
+
}
|
|
55
|
+
ExecutionSummary.equals = equals;
|
|
56
|
+
})(ExecutionSummary = exports.ExecutionSummary || (exports.ExecutionSummary = {}));
|
|
31
57
|
var NotebookCell;
|
|
32
58
|
(function (NotebookCell) {
|
|
33
59
|
function create(kind, document) {
|
|
@@ -40,13 +66,26 @@ var NotebookCell;
|
|
|
40
66
|
(candidate.metadata === undefined || Is.objectLiteral(candidate.metadata));
|
|
41
67
|
}
|
|
42
68
|
NotebookCell.is = is;
|
|
43
|
-
function
|
|
44
|
-
|
|
45
|
-
|
|
69
|
+
function diff(one, two) {
|
|
70
|
+
const result = new Set();
|
|
71
|
+
if (one.document !== two.document) {
|
|
72
|
+
result.add('document');
|
|
73
|
+
}
|
|
74
|
+
if (one.kind !== two.kind) {
|
|
75
|
+
result.add('kind');
|
|
46
76
|
}
|
|
47
|
-
|
|
77
|
+
if (one.executionSummary !== two.executionSummary) {
|
|
78
|
+
result.add('executionSummary');
|
|
79
|
+
}
|
|
80
|
+
if ((one.metadata !== undefined || two.metadata !== undefined) && !equalsMetadata(one.metadata, two.metadata)) {
|
|
81
|
+
result.add('metadata');
|
|
82
|
+
}
|
|
83
|
+
if ((one.executionSummary !== undefined || two.executionSummary !== undefined) && !ExecutionSummary.equals(one.executionSummary, two.executionSummary)) {
|
|
84
|
+
result.add('executionSummary');
|
|
85
|
+
}
|
|
86
|
+
return result;
|
|
48
87
|
}
|
|
49
|
-
NotebookCell.
|
|
88
|
+
NotebookCell.diff = diff;
|
|
50
89
|
function equalsMetadata(one, other) {
|
|
51
90
|
if (one === other) {
|
|
52
91
|
return true;
|
|
@@ -164,4 +203,4 @@ var DidCloseNotebookDocumentNotification;
|
|
|
164
203
|
DidCloseNotebookDocumentNotification.method = 'notebookDocument/didClose';
|
|
165
204
|
DidCloseNotebookDocumentNotification.type = new messages_1.ProtocolNotificationType(DidCloseNotebookDocumentNotification.method);
|
|
166
205
|
})(DidCloseNotebookDocumentNotification = exports.DidCloseNotebookDocumentNotification || (exports.DidCloseNotebookDocumentNotification = {}));
|
|
167
|
-
//# sourceMappingURL=proposed.
|
|
206
|
+
//# sourceMappingURL=proposed.notebook.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,20 +1,7 @@
|
|
|
1
1
|
import { RequestHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
|
|
2
2
|
import { LSPAny } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType } from './messages';
|
|
4
|
-
import { PartialResultParams } from './protocol';
|
|
5
|
-
export interface ConfigurationClientCapabilities {
|
|
6
|
-
/**
|
|
7
|
-
* The workspace client capabilities
|
|
8
|
-
*/
|
|
9
|
-
workspace?: {
|
|
10
|
-
/**
|
|
11
|
-
* The client supports `workspace/configuration` requests.
|
|
12
|
-
*
|
|
13
|
-
* @since 3.6.0
|
|
14
|
-
*/
|
|
15
|
-
configuration?: boolean;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
4
|
+
import type { PartialResultParams } from './protocol';
|
|
18
5
|
/**
|
|
19
6
|
* The 'workspace/configuration' request is sent from the server to the client to fetch a certain
|
|
20
7
|
* configuration setting.
|
|
@@ -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.
|
package/lib/common/protocol.d.ts
CHANGED
|
@@ -3,21 +3,22 @@ import { ProtocolRequestType, ProtocolRequestType0, ProtocolNotificationType, Pr
|
|
|
3
3
|
import { Position, Range, Location, LocationLink, Diagnostic, Command, TextEdit, WorkspaceEdit, DocumentUri, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, CompletionItem, CompletionList, Hover, SignatureHelp, Definition, ReferenceContext, DocumentHighlight, SymbolInformation, CodeLens, CodeActionContext, FormattingOptions, DocumentLink, MarkupKind, SymbolKind, CompletionItemKind, CodeAction, CodeActionKind, DocumentSymbol, CompletionItemTag, DiagnosticTag, SymbolTag, uinteger, integer, InsertTextMode, LSPAny, WorkspaceSymbol } from 'vscode-languageserver-types';
|
|
4
4
|
import { ImplementationRequest, ImplementationClientCapabilities, ImplementationOptions, ImplementationRegistrationOptions, ImplementationParams } from './protocol.implementation';
|
|
5
5
|
import { TypeDefinitionRequest, TypeDefinitionClientCapabilities, TypeDefinitionOptions, TypeDefinitionRegistrationOptions, TypeDefinitionParams } from './protocol.typeDefinition';
|
|
6
|
-
import { WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFolder, WorkspaceFoldersChangeEvent, WorkspaceFoldersInitializeParams,
|
|
7
|
-
import { ConfigurationRequest, ConfigurationParams, ConfigurationItem
|
|
6
|
+
import { WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFolder, WorkspaceFoldersChangeEvent, WorkspaceFoldersInitializeParams, WorkspaceFoldersServerCapabilities } from './protocol.workspaceFolder';
|
|
7
|
+
import { ConfigurationRequest, ConfigurationParams, ConfigurationItem } from './protocol.configuration';
|
|
8
8
|
import { DocumentColorRequest, ColorPresentationRequest, DocumentColorOptions, DocumentColorParams, ColorPresentationParams, DocumentColorClientCapabilities, DocumentColorRegistrationOptions } from './protocol.colorProvider';
|
|
9
9
|
import { FoldingRangeClientCapabilities, FoldingRangeOptions, FoldingRangeRequest, FoldingRangeParams, FoldingRangeRegistrationOptions } from './protocol.foldingRange';
|
|
10
10
|
import { DeclarationClientCapabilities, DeclarationRequest, DeclarationOptions, DeclarationRegistrationOptions, DeclarationParams } from './protocol.declaration';
|
|
11
11
|
import { SelectionRangeClientCapabilities, SelectionRangeOptions, SelectionRangeRequest, SelectionRangeParams, SelectionRangeRegistrationOptions } from './protocol.selectionRange';
|
|
12
|
-
import {
|
|
12
|
+
import { WorkDoneProgressBegin, WorkDoneProgressReport, WorkDoneProgressEnd, WorkDoneProgress, WorkDoneProgressCreateParams, WorkDoneProgressCreateRequest, WorkDoneProgressCancelParams, WorkDoneProgressCancelNotification } from './protocol.progress';
|
|
13
13
|
import { CallHierarchyClientCapabilities, CallHierarchyOptions, CallHierarchyRegistrationOptions, CallHierarchyIncomingCallsParams, CallHierarchyIncomingCallsRequest, CallHierarchyOutgoingCallsParams, CallHierarchyOutgoingCallsRequest, CallHierarchyPrepareParams, CallHierarchyPrepareRequest } from './protocol.callHierarchy';
|
|
14
14
|
import { SemanticTokensPartialResult, SemanticTokensDeltaPartialResult, TokenFormat, SemanticTokensClientCapabilities, SemanticTokensOptions, SemanticTokensRegistrationOptions, SemanticTokensParams, SemanticTokensRequest, SemanticTokensDeltaParams, SemanticTokensDeltaRequest, SemanticTokensRangeParams, SemanticTokensRangeRequest, SemanticTokensRefreshRequest, SemanticTokensWorkspaceClientCapabilities, SemanticTokensRegistrationType } from './protocol.semanticTokens';
|
|
15
15
|
import { ShowDocumentParams, ShowDocumentResult, ShowDocumentRequest, ShowDocumentClientCapabilities } from './protocol.showDocument';
|
|
16
16
|
import { LinkedEditingRangeClientCapabilities, LinkedEditingRanges, LinkedEditingRangeOptions, LinkedEditingRangeParams, LinkedEditingRangeRegistrationOptions, LinkedEditingRangeRequest } from './protocol.linkedEditingRange';
|
|
17
17
|
import { FileOperationOptions, FileOperationClientCapabilities, FileOperationRegistrationOptions, FileOperationPatternOptions, FileOperationPatternKind, DidCreateFilesNotification, CreateFilesParams, FileCreate, WillCreateFilesRequest, DidRenameFilesNotification, RenameFilesParams, FileRename, WillRenameFilesRequest, DidDeleteFilesNotification, DeleteFilesParams, FileDelete, WillDeleteFilesRequest } from './protocol.fileOperations';
|
|
18
18
|
import { UniquenessLevel, MonikerKind, Moniker, MonikerClientCapabilities, MonikerOptions, MonikerRegistrationOptions, MonikerParams, MonikerRequest } from './protocol.moniker';
|
|
19
|
-
import { TypeHierarchyClientCapabilities, TypeHierarchyOptions, TypeHierarchyRegistrationOptions } from './
|
|
20
|
-
import {
|
|
19
|
+
import { TypeHierarchyClientCapabilities, TypeHierarchyOptions, TypeHierarchyRegistrationOptions, TypeHierarchyPrepareParams, TypeHierarchyPrepareRequest, TypeHierarchySubtypesParams, TypeHierarchySubtypesRequest, TypeHierarchySupertypesParams, TypeHierarchySupertypesRequest } from './protocol.typeHierarchy';
|
|
20
|
+
import { InlineValueClientCapabilities, InlineValueOptions, InlineValueRegistrationOptions, InlineValueWorkspaceClientCapabilities, InlineValueParams, InlineValueRequest, InlineValueRefreshRequest } from './protocol.inlineValue';
|
|
21
|
+
import { InlayHintClientCapabilities, InlayHintOptions, InlayHintRegistrationOptions, InlayHintWorkspaceClientCapabilities, InlayHintParams, InlayHintRequest, InlayHintResolveRequest, InlayHintRefreshRequest } from './protocol.inlayHint';
|
|
21
22
|
/**
|
|
22
23
|
* A document filter denotes a document by different properties like
|
|
23
24
|
* the [language](#TextDocument.languageId), the [scheme](#Uri.scheme) of
|
|
@@ -69,36 +70,31 @@ export declare namespace TextDocumentFilter {
|
|
|
69
70
|
}
|
|
70
71
|
/**
|
|
71
72
|
* A notebook document filter denotes a notebook document by
|
|
72
|
-
* different properties.
|
|
73
|
+
* different properties. The properties will be match
|
|
74
|
+
* against the notebook's URI (same as with documents)
|
|
73
75
|
*
|
|
74
76
|
* @since 3.17.0 - proposed state.
|
|
75
77
|
*/
|
|
76
78
|
export declare type NotebookDocumentFilter = {
|
|
77
79
|
/** The type of the enclosing notebook. */
|
|
78
80
|
notebookType: string;
|
|
79
|
-
/** A Uri [scheme](#Uri.scheme), like `file` or `untitled`.
|
|
80
|
-
* Will be matched against the URI of the notebook. */
|
|
81
|
+
/** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */
|
|
81
82
|
scheme?: string;
|
|
82
|
-
/** A glob pattern
|
|
83
|
-
* Will be matched against the notebooks` URI path section.*/
|
|
83
|
+
/** A glob pattern. */
|
|
84
84
|
pattern?: string;
|
|
85
85
|
} | {
|
|
86
86
|
/** The type of the enclosing notebook. */
|
|
87
87
|
notebookType?: string;
|
|
88
|
-
/** A Uri [scheme](#Uri.scheme), like `file` or `untitled
|
|
89
|
-
* Will be matched against the URI of the notebook. */
|
|
88
|
+
/** A Uri [scheme](#Uri.scheme), like `file` or `untitled`.*/
|
|
90
89
|
scheme: string;
|
|
91
|
-
/** A glob pattern
|
|
92
|
-
* Will be matched against the notebooks` URI path section.*/
|
|
90
|
+
/** A glob pattern. */
|
|
93
91
|
pattern?: string;
|
|
94
92
|
} | {
|
|
95
93
|
/** The type of the enclosing notebook. */
|
|
96
94
|
notebookType?: string;
|
|
97
|
-
/** A Uri [scheme](#Uri.scheme), like `file` or `untitled`.
|
|
98
|
-
* Will be matched against the URI of the notebook. */
|
|
95
|
+
/** A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */
|
|
99
96
|
scheme?: string;
|
|
100
|
-
/** A glob pattern
|
|
101
|
-
* Will be matched against the notebooks` URI path section.*/
|
|
97
|
+
/** A glob pattern. */
|
|
102
98
|
pattern: string;
|
|
103
99
|
};
|
|
104
100
|
/**
|
|
@@ -119,29 +115,18 @@ export declare namespace NotebookDocumentFilter {
|
|
|
119
115
|
export declare type NotebookCellTextDocumentFilter = {
|
|
120
116
|
/**
|
|
121
117
|
* A filter that matches against the notebook
|
|
122
|
-
* containing the notebook cell.
|
|
118
|
+
* containing the notebook cell. If a string
|
|
119
|
+
* value is provided it matches against the
|
|
120
|
+
* notebook type. '*' matches every notebook.
|
|
123
121
|
*/
|
|
124
|
-
|
|
122
|
+
notebook: string | NotebookDocumentFilter;
|
|
125
123
|
/**
|
|
126
124
|
* A language id like `python`.
|
|
127
125
|
*
|
|
128
126
|
* Will be matched against the language id of the
|
|
129
|
-
* notebook cell document.
|
|
130
|
-
*/
|
|
131
|
-
cellLanguage?: string;
|
|
132
|
-
} | {
|
|
133
|
-
/**
|
|
134
|
-
* A filter that matches against the notebook
|
|
135
|
-
* containing the notebook cell.
|
|
127
|
+
* notebook cell document. '*' matches every language.
|
|
136
128
|
*/
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* A language id like `python`.
|
|
140
|
-
*
|
|
141
|
-
* Will be matched against the language id of the
|
|
142
|
-
* notebook cell document.
|
|
143
|
-
*/
|
|
144
|
-
cellLanguage: string;
|
|
129
|
+
language?: string;
|
|
145
130
|
};
|
|
146
131
|
/**
|
|
147
132
|
* The NotebookCellTextDocumentFilter namespace provides helper functions to work with
|
|
@@ -325,6 +310,18 @@ export interface WorkspaceClientCapabilities {
|
|
|
325
310
|
* Capabilities specific to the `workspace/executeCommand` request.
|
|
326
311
|
*/
|
|
327
312
|
executeCommand?: ExecuteCommandClientCapabilities;
|
|
313
|
+
/**
|
|
314
|
+
* The client has support for workspace folders
|
|
315
|
+
*
|
|
316
|
+
* @since 3.6.0
|
|
317
|
+
*/
|
|
318
|
+
workspaceFolders?: boolean;
|
|
319
|
+
/**
|
|
320
|
+
* The client supports `workspace/configuration` requests.
|
|
321
|
+
*
|
|
322
|
+
* @since 3.6.0
|
|
323
|
+
*/
|
|
324
|
+
configuration?: boolean;
|
|
328
325
|
/**
|
|
329
326
|
* Capabilities specific to the semantic token requests scoped to the
|
|
330
327
|
* workspace.
|
|
@@ -351,7 +348,14 @@ export interface WorkspaceClientCapabilities {
|
|
|
351
348
|
*
|
|
352
349
|
* @since 3.17.0.
|
|
353
350
|
*/
|
|
354
|
-
|
|
351
|
+
inlineValue?: InlineValueWorkspaceClientCapabilities;
|
|
352
|
+
/**
|
|
353
|
+
* Capabilities specific to the inlay hints requests scoped to the
|
|
354
|
+
* workspace.
|
|
355
|
+
*
|
|
356
|
+
* @since 3.17.0.
|
|
357
|
+
*/
|
|
358
|
+
inlayHint?: InlayHintWorkspaceClientCapabilities;
|
|
355
359
|
}
|
|
356
360
|
/**
|
|
357
361
|
* Text document specific client capabilities.
|
|
@@ -486,17 +490,27 @@ export interface TextDocumentClientCapabilities {
|
|
|
486
490
|
*/
|
|
487
491
|
typeHierarchy?: TypeHierarchyClientCapabilities;
|
|
488
492
|
/**
|
|
489
|
-
* Capabilities specific to the `textDocument/
|
|
493
|
+
* Capabilities specific to the `textDocument/inlineValue` request.
|
|
490
494
|
*
|
|
491
495
|
* @since 3.17.0 - proposed state
|
|
492
496
|
*/
|
|
493
|
-
|
|
497
|
+
inlineValue?: InlineValueClientCapabilities;
|
|
498
|
+
/**
|
|
499
|
+
* Capabilities specific to the `textDocument/inlayHint` request.
|
|
500
|
+
*
|
|
501
|
+
* @since 3.17.0 - proposed state
|
|
502
|
+
*/
|
|
503
|
+
inlayHint?: InlayHintClientCapabilities;
|
|
494
504
|
}
|
|
495
505
|
export interface WindowClientCapabilities {
|
|
496
506
|
/**
|
|
497
|
-
*
|
|
498
|
-
*
|
|
499
|
-
*
|
|
507
|
+
* It indicates whether the client supports server initiated
|
|
508
|
+
* progress using the `window/workDoneProgress/create` request.
|
|
509
|
+
*
|
|
510
|
+
* The capability also controls Whether client supports handling
|
|
511
|
+
* of progress notifications. If set servers are allowed to report a
|
|
512
|
+
* `workDoneProgress` property in the request specific server
|
|
513
|
+
* capabilities.
|
|
500
514
|
*
|
|
501
515
|
* @since 3.15.0
|
|
502
516
|
*/
|
|
@@ -593,7 +607,7 @@ export interface GeneralClientCapabilities {
|
|
|
593
607
|
/**
|
|
594
608
|
* Defines the capabilities provided by the client.
|
|
595
609
|
*/
|
|
596
|
-
export interface
|
|
610
|
+
export interface ClientCapabilities {
|
|
597
611
|
/**
|
|
598
612
|
* Workspace specific client capabilities.
|
|
599
613
|
*/
|
|
@@ -617,7 +631,6 @@ export interface _ClientCapabilities {
|
|
|
617
631
|
*/
|
|
618
632
|
experimental?: object;
|
|
619
633
|
}
|
|
620
|
-
export declare type ClientCapabilities = _ClientCapabilities & WorkspaceFoldersClientCapabilities & ConfigurationClientCapabilities & WorkDoneProgressClientCapabilities;
|
|
621
634
|
/**
|
|
622
635
|
* Static registration options to be returned in the initialize
|
|
623
636
|
* request.
|
|
@@ -681,7 +694,7 @@ export declare namespace WorkDoneProgressOptions {
|
|
|
681
694
|
* Defines the capabilities provided by a language
|
|
682
695
|
* server.
|
|
683
696
|
*/
|
|
684
|
-
export interface
|
|
697
|
+
export interface ServerCapabilities<T = any> {
|
|
685
698
|
/**
|
|
686
699
|
* Defines how text documents are synced. Is either a detailed structure defining each notification or
|
|
687
700
|
* for backwards compatibility the TextDocumentSyncKind number.
|
|
@@ -797,17 +810,6 @@ export interface _ServerCapabilities<T = any> {
|
|
|
797
810
|
* @since 3.16.0
|
|
798
811
|
*/
|
|
799
812
|
semanticTokensProvider?: SemanticTokensOptions | SemanticTokensRegistrationOptions;
|
|
800
|
-
/**
|
|
801
|
-
* Window specific server capabilities.
|
|
802
|
-
*/
|
|
803
|
-
workspace?: {
|
|
804
|
-
/**
|
|
805
|
-
* The server is interested in notifications/requests for operations on files.
|
|
806
|
-
*
|
|
807
|
-
* @since 3.16.0
|
|
808
|
-
*/
|
|
809
|
-
fileOperations?: FileOperationOptions;
|
|
810
|
-
};
|
|
811
813
|
/**
|
|
812
814
|
* The server provides moniker support.
|
|
813
815
|
*
|
|
@@ -825,13 +827,35 @@ export interface _ServerCapabilities<T = any> {
|
|
|
825
827
|
*
|
|
826
828
|
* @since 3.17.0 - proposed state
|
|
827
829
|
*/
|
|
828
|
-
|
|
830
|
+
inlineValueProvider?: boolean | InlineValueOptions | InlineValueRegistrationOptions;
|
|
831
|
+
/**
|
|
832
|
+
* The server provides inlay hints.
|
|
833
|
+
*
|
|
834
|
+
* @since 3.17.0 - proposed state
|
|
835
|
+
*/
|
|
836
|
+
inlayHintProvider?: boolean | InlayHintOptions | InlayHintRegistrationOptions;
|
|
837
|
+
/**
|
|
838
|
+
* Workspace specific server capabilities.
|
|
839
|
+
*/
|
|
840
|
+
workspace?: {
|
|
841
|
+
/**
|
|
842
|
+
* The server supports workspace folder.
|
|
843
|
+
*
|
|
844
|
+
* @since 3.6.0
|
|
845
|
+
*/
|
|
846
|
+
workspaceFolders?: WorkspaceFoldersServerCapabilities;
|
|
847
|
+
/**
|
|
848
|
+
* The server is interested in notifications/requests for operations on files.
|
|
849
|
+
*
|
|
850
|
+
* @since 3.16.0
|
|
851
|
+
*/
|
|
852
|
+
fileOperations?: FileOperationOptions;
|
|
853
|
+
};
|
|
829
854
|
/**
|
|
830
855
|
* Experimental server capabilities.
|
|
831
856
|
*/
|
|
832
857
|
experimental?: T;
|
|
833
858
|
}
|
|
834
|
-
export declare type ServerCapabilities<T = any> = _ServerCapabilities<T> & WorkspaceFoldersServerCapabilities;
|
|
835
859
|
/**
|
|
836
860
|
* The initialize request is sent from the client to the server.
|
|
837
861
|
* It is sent once as the request after starting up the server.
|
|
@@ -1607,9 +1631,6 @@ export interface CompletionClientCapabilities {
|
|
|
1607
1631
|
* Client supports the preselect property on a completion item.
|
|
1608
1632
|
*/
|
|
1609
1633
|
preselectSupport?: boolean;
|
|
1610
|
-
/**
|
|
1611
|
-
* Client supports to kee
|
|
1612
|
-
*/
|
|
1613
1634
|
/**
|
|
1614
1635
|
* Client supports the tag property on a completion item. Clients supporting
|
|
1615
1636
|
* tags have to handle unknown tags gracefully. Clients especially need to
|
|
@@ -2924,5 +2945,5 @@ export declare type ApplyWorkspaceEditResponse = ApplyWorkspaceEditResult;
|
|
|
2924
2945
|
export declare namespace ApplyWorkspaceEditRequest {
|
|
2925
2946
|
const type: ProtocolRequestType<ApplyWorkspaceEditParams, ApplyWorkspaceEditResult, never, void, void>;
|
|
2926
2947
|
}
|
|
2927
|
-
export { ImplementationRequest, ImplementationParams, ImplementationRegistrationOptions, ImplementationOptions, TypeDefinitionRequest, TypeDefinitionParams, TypeDefinitionRegistrationOptions, TypeDefinitionOptions, WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFolder, WorkspaceFoldersChangeEvent, ConfigurationRequest, ConfigurationParams, ConfigurationItem, DocumentColorRequest, ColorPresentationRequest, DocumentColorOptions, DocumentColorParams, ColorPresentationParams, DocumentColorRegistrationOptions, FoldingRangeClientCapabilities, FoldingRangeOptions, FoldingRangeRequest, FoldingRangeParams, FoldingRangeRegistrationOptions, DeclarationClientCapabilities, DeclarationRequest, DeclarationParams, DeclarationRegistrationOptions, DeclarationOptions, SelectionRangeClientCapabilities, SelectionRangeOptions, SelectionRangeParams, SelectionRangeRequest, SelectionRangeRegistrationOptions, WorkDoneProgressBegin, WorkDoneProgressReport, WorkDoneProgressEnd, WorkDoneProgress, WorkDoneProgressCreateParams, WorkDoneProgressCreateRequest, WorkDoneProgressCancelParams, WorkDoneProgressCancelNotification, CallHierarchyClientCapabilities, CallHierarchyOptions, CallHierarchyRegistrationOptions, CallHierarchyIncomingCallsParams, CallHierarchyIncomingCallsRequest, CallHierarchyOutgoingCallsParams, CallHierarchyOutgoingCallsRequest, CallHierarchyPrepareParams, CallHierarchyPrepareRequest, SemanticTokensPartialResult, SemanticTokensDeltaPartialResult, TokenFormat, SemanticTokensClientCapabilities, SemanticTokensOptions, SemanticTokensRegistrationOptions, SemanticTokensParams, SemanticTokensRequest, SemanticTokensDeltaParams, SemanticTokensDeltaRequest, SemanticTokensRangeParams, SemanticTokensRangeRequest, SemanticTokensRefreshRequest, SemanticTokensRegistrationType, ShowDocumentParams, ShowDocumentRequest, ShowDocumentResult, ShowDocumentClientCapabilities, LinkedEditingRangeClientCapabilities, LinkedEditingRanges, LinkedEditingRangeOptions, LinkedEditingRangeParams, LinkedEditingRangeRegistrationOptions, LinkedEditingRangeRequest, FileOperationOptions, FileOperationClientCapabilities, FileOperationRegistrationOptions, FileOperationPatternOptions, FileOperationPatternKind, DidCreateFilesNotification, CreateFilesParams, FileCreate, WillCreateFilesRequest, DidRenameFilesNotification, RenameFilesParams, FileRename, WillRenameFilesRequest, DidDeleteFilesNotification, DeleteFilesParams, FileDelete, WillDeleteFilesRequest, UniquenessLevel, MonikerKind, Moniker, MonikerClientCapabilities, MonikerOptions, MonikerRegistrationOptions, MonikerParams, MonikerRequest, };
|
|
2948
|
+
export { ImplementationRequest, ImplementationParams, ImplementationRegistrationOptions, ImplementationOptions, TypeDefinitionRequest, TypeDefinitionParams, TypeDefinitionRegistrationOptions, TypeDefinitionOptions, WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFolder, WorkspaceFoldersChangeEvent, ConfigurationRequest, ConfigurationParams, ConfigurationItem, DocumentColorRequest, ColorPresentationRequest, DocumentColorOptions, DocumentColorParams, ColorPresentationParams, DocumentColorRegistrationOptions, FoldingRangeClientCapabilities, FoldingRangeOptions, FoldingRangeRequest, FoldingRangeParams, FoldingRangeRegistrationOptions, DeclarationClientCapabilities, DeclarationRequest, DeclarationParams, DeclarationRegistrationOptions, DeclarationOptions, SelectionRangeClientCapabilities, SelectionRangeOptions, SelectionRangeParams, SelectionRangeRequest, SelectionRangeRegistrationOptions, WorkDoneProgressBegin, WorkDoneProgressReport, WorkDoneProgressEnd, WorkDoneProgress, WorkDoneProgressCreateParams, WorkDoneProgressCreateRequest, WorkDoneProgressCancelParams, WorkDoneProgressCancelNotification, CallHierarchyClientCapabilities, CallHierarchyOptions, CallHierarchyRegistrationOptions, CallHierarchyIncomingCallsParams, CallHierarchyIncomingCallsRequest, CallHierarchyOutgoingCallsParams, CallHierarchyOutgoingCallsRequest, CallHierarchyPrepareParams, CallHierarchyPrepareRequest, SemanticTokensPartialResult, SemanticTokensDeltaPartialResult, TokenFormat, SemanticTokensClientCapabilities, SemanticTokensOptions, SemanticTokensRegistrationOptions, SemanticTokensParams, SemanticTokensRequest, SemanticTokensDeltaParams, SemanticTokensDeltaRequest, SemanticTokensRangeParams, SemanticTokensRangeRequest, SemanticTokensRefreshRequest, SemanticTokensRegistrationType, ShowDocumentParams, ShowDocumentRequest, ShowDocumentResult, ShowDocumentClientCapabilities, LinkedEditingRangeClientCapabilities, LinkedEditingRanges, LinkedEditingRangeOptions, LinkedEditingRangeParams, LinkedEditingRangeRegistrationOptions, LinkedEditingRangeRequest, FileOperationOptions, FileOperationClientCapabilities, FileOperationRegistrationOptions, FileOperationPatternOptions, FileOperationPatternKind, DidCreateFilesNotification, CreateFilesParams, FileCreate, WillCreateFilesRequest, DidRenameFilesNotification, RenameFilesParams, FileRename, WillRenameFilesRequest, DidDeleteFilesNotification, DeleteFilesParams, FileDelete, WillDeleteFilesRequest, UniquenessLevel, MonikerKind, Moniker, MonikerClientCapabilities, MonikerOptions, MonikerRegistrationOptions, MonikerParams, MonikerRequest, TypeHierarchyClientCapabilities, TypeHierarchyOptions, TypeHierarchyRegistrationOptions, TypeHierarchyPrepareParams, TypeHierarchyPrepareRequest, TypeHierarchySubtypesParams, TypeHierarchySubtypesRequest, TypeHierarchySupertypesParams, TypeHierarchySupertypesRequest, InlineValueClientCapabilities, InlineValueOptions, InlineValueRegistrationOptions, InlineValueWorkspaceClientCapabilities, InlineValueParams, InlineValueRequest, InlineValueRefreshRequest, InlayHintClientCapabilities, InlayHintOptions, InlayHintRegistrationOptions, InlayHintWorkspaceClientCapabilities, InlayHintParams, InlayHintRequest, InlayHintResolveRequest, InlayHintRefreshRequest, };
|
|
2928
2949
|
export { DocumentColorOptions as ColorProviderOptions, DocumentColorOptions as ColorOptions, FoldingRangeOptions as FoldingRangeProviderOptions, SelectionRangeOptions as SelectionRangeProviderOptions, DocumentColorRegistrationOptions as ColorRegistrationOptions };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { Declaration, DeclarationLink, Location, LocationLink } 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.14.0
|
|
7
7
|
*/
|
|
@@ -25,7 +25,7 @@ export interface DeclarationParams extends TextDocumentPositionParams, WorkDoneP
|
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* A request to resolve the type definition locations of a symbol at a given text
|
|
28
|
-
* document position. The request's parameter is of type [
|
|
28
|
+
* document position. The request's parameter is of type [TextDocumentPositionParams]
|
|
29
29
|
* (#TextDocumentPositionParams) the response is of type [Declaration](#Declaration)
|
|
30
30
|
* or a typed array of [DeclarationLink](#DeclarationLink) or a Thenable that resolves
|
|
31
31
|
* to such.
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.DeclarationRequest = void 0;
|
|
8
8
|
const messages_1 = require("./messages");
|
|
9
|
-
// @ts-ignore: to avoid inlining
|
|
9
|
+
// @ts-ignore: to avoid inlining LocationLink as dynamic import
|
|
10
10
|
let __noDynamicImport;
|
|
11
11
|
/**
|
|
12
12
|
* A request to resolve the type definition locations of a symbol at a given text
|
|
13
|
-
* document position. The request's parameter is of type [
|
|
13
|
+
* document position. The request's parameter is of type [TextDocumentPositionParams]
|
|
14
14
|
* (#TextDocumentPositionParams) the response is of type [Declaration](#Declaration)
|
|
15
15
|
* or a typed array of [DeclarationLink](#DeclarationLink) or a Thenable that resolves
|
|
16
16
|
* to such.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { TextDocumentIdentifier, uinteger, FoldingRange } 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 FoldingRangeClientCapabilities {
|
|
6
6
|
/**
|
|
7
7
|
* Whether implementation supports dynamic registration for folding range providers. If this is set to `true`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { Definition, DefinitionLink, Location, LocationLink } 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.6.0
|
|
7
7
|
*/
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { RequestHandler, RequestHandler0 } from 'vscode-jsonrpc';
|
|
2
|
+
import { Range, TextDocumentIdentifier, InlayHint } from 'vscode-languageserver-types';
|
|
3
|
+
import { ProtocolRequestType, ProtocolRequestType0 } from './messages';
|
|
4
|
+
import type { StaticRegistrationOptions, TextDocumentRegistrationOptions, WorkDoneProgressOptions, WorkDoneProgressParams } from './protocol';
|
|
5
|
+
/**
|
|
6
|
+
* Inlay hint client capabilities
|
|
7
|
+
*
|
|
8
|
+
* @since 3.17.0 - proposed state
|
|
9
|
+
*/
|
|
10
|
+
export declare type InlayHintClientCapabilities = {
|
|
11
|
+
/**
|
|
12
|
+
* Whether inlay hints support dynamic registration.
|
|
13
|
+
*/
|
|
14
|
+
dynamicRegistration?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Indicates which properties a client can resolve lazily on a inlay
|
|
17
|
+
* hint.
|
|
18
|
+
*/
|
|
19
|
+
resolveSupport?: {
|
|
20
|
+
/**
|
|
21
|
+
* The properties that a client can resolve lazily.
|
|
22
|
+
*/
|
|
23
|
+
properties: string[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Client workspace capabilities specific to inlay hints.
|
|
28
|
+
*
|
|
29
|
+
* @since 3.17.0 - proposed state
|
|
30
|
+
*/
|
|
31
|
+
export declare type InlayHintWorkspaceClientCapabilities = {
|
|
32
|
+
/**
|
|
33
|
+
* Whether the client implementation supports a refresh request sent from
|
|
34
|
+
* the server to the client.
|
|
35
|
+
*
|
|
36
|
+
* Note that this event is global and will force the client to refresh all
|
|
37
|
+
* inlay hints currently shown. It should be used with absolute care and
|
|
38
|
+
* is useful for situation where a server for example detects a project wide
|
|
39
|
+
* change that requires such a calculation.
|
|
40
|
+
*/
|
|
41
|
+
refreshSupport?: boolean;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Inlay hint options used during static registration.
|
|
45
|
+
*
|
|
46
|
+
* @since 3.17.0 - proposed state
|
|
47
|
+
*/
|
|
48
|
+
export declare type InlayHintOptions = WorkDoneProgressOptions & {
|
|
49
|
+
/**
|
|
50
|
+
* The server provides support to resolve additional
|
|
51
|
+
* information for an inlay hint item.
|
|
52
|
+
*/
|
|
53
|
+
resolveProvider?: boolean;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Inlay hint options used during static or dynamic registration.
|
|
57
|
+
*
|
|
58
|
+
* @since 3.17.0 - proposed state
|
|
59
|
+
*/
|
|
60
|
+
export declare type InlayHintRegistrationOptions = InlayHintOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions;
|
|
61
|
+
/**
|
|
62
|
+
* A parameter literal used in inlay hints requests.
|
|
63
|
+
*
|
|
64
|
+
* @since 3.17.0 - proposed state
|
|
65
|
+
*/
|
|
66
|
+
export declare type InlayHintParams = WorkDoneProgressParams & {
|
|
67
|
+
/**
|
|
68
|
+
* The text document.
|
|
69
|
+
*/
|
|
70
|
+
textDocument: TextDocumentIdentifier;
|
|
71
|
+
/**
|
|
72
|
+
* The document range for which inlay hints should be computed.
|
|
73
|
+
*/
|
|
74
|
+
range: Range;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* A request to provide inlay hints in a document. The request's parameter is of
|
|
78
|
+
* type [InlayHintsParams](#InlayHintsParams), the response is of type
|
|
79
|
+
* [InlayHint[]](#InlayHint[]) or a Thenable that resolves to such.
|
|
80
|
+
*
|
|
81
|
+
* @since 3.17.0 - proposed state
|
|
82
|
+
*/
|
|
83
|
+
export declare namespace InlayHintRequest {
|
|
84
|
+
const method: 'textDocument/inlayHint';
|
|
85
|
+
const type: ProtocolRequestType<InlayHintParams, InlayHint[] | null, InlayHint[], any, InlayHintRegistrationOptions>;
|
|
86
|
+
type HandlerSignature = RequestHandler<InlayHintParams, InlayHint[] | null, void>;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* A request to resolve additional properties for a inlay hint.
|
|
90
|
+
* The request's parameter is of type [InlayHint](#InlayHint), the response is
|
|
91
|
+
* of type [InlayHint](#InlayHint) or a Thenable that resolves to such.
|
|
92
|
+
*
|
|
93
|
+
* @since 3.17.0 - proposed state
|
|
94
|
+
*/
|
|
95
|
+
export declare namespace InlayHintResolveRequest {
|
|
96
|
+
const method: 'inlayHint/resolve';
|
|
97
|
+
const type: ProtocolRequestType<InlayHint, InlayHint, never, void, void>;
|
|
98
|
+
type HandlerSignature = RequestHandler<InlayHint, InlayHint, void>;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* @since 3.17.0 - proposed state
|
|
102
|
+
*/
|
|
103
|
+
export declare namespace InlayHintRefreshRequest {
|
|
104
|
+
const method: `workspace/inlayHint/refresh`;
|
|
105
|
+
const type: ProtocolRequestType0<void, void, void, void>;
|
|
106
|
+
type HandlerSignature = RequestHandler0<void, void>;
|
|
107
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*---------------------------------------------------------------------------------------------
|
|
3
|
+
* Copyright (c) Microsoft Corporation. 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.InlayHintRefreshRequest = exports.InlayHintResolveRequest = exports.InlayHintRequest = void 0;
|
|
8
|
+
const messages_1 = require("./messages");
|
|
9
|
+
/**
|
|
10
|
+
* A request to provide inlay hints in a document. The request's parameter is of
|
|
11
|
+
* type [InlayHintsParams](#InlayHintsParams), the response is of type
|
|
12
|
+
* [InlayHint[]](#InlayHint[]) or a Thenable that resolves to such.
|
|
13
|
+
*
|
|
14
|
+
* @since 3.17.0 - proposed state
|
|
15
|
+
*/
|
|
16
|
+
var InlayHintRequest;
|
|
17
|
+
(function (InlayHintRequest) {
|
|
18
|
+
InlayHintRequest.method = 'textDocument/inlayHint';
|
|
19
|
+
InlayHintRequest.type = new messages_1.ProtocolRequestType(InlayHintRequest.method);
|
|
20
|
+
})(InlayHintRequest = exports.InlayHintRequest || (exports.InlayHintRequest = {}));
|
|
21
|
+
/**
|
|
22
|
+
* A request to resolve additional properties for a inlay hint.
|
|
23
|
+
* The request's parameter is of type [InlayHint](#InlayHint), the response is
|
|
24
|
+
* of type [InlayHint](#InlayHint) or a Thenable that resolves to such.
|
|
25
|
+
*
|
|
26
|
+
* @since 3.17.0 - proposed state
|
|
27
|
+
*/
|
|
28
|
+
var InlayHintResolveRequest;
|
|
29
|
+
(function (InlayHintResolveRequest) {
|
|
30
|
+
InlayHintResolveRequest.method = 'inlayHint/resolve';
|
|
31
|
+
InlayHintResolveRequest.type = new messages_1.ProtocolRequestType(InlayHintResolveRequest.method);
|
|
32
|
+
})(InlayHintResolveRequest = exports.InlayHintResolveRequest || (exports.InlayHintResolveRequest = {}));
|
|
33
|
+
/**
|
|
34
|
+
* @since 3.17.0 - proposed state
|
|
35
|
+
*/
|
|
36
|
+
var InlayHintRefreshRequest;
|
|
37
|
+
(function (InlayHintRefreshRequest) {
|
|
38
|
+
InlayHintRefreshRequest.method = `workspace/inlayHint/refresh`;
|
|
39
|
+
InlayHintRefreshRequest.type = new messages_1.ProtocolRequestType0(InlayHintRefreshRequest.method);
|
|
40
|
+
})(InlayHintRefreshRequest = exports.InlayHintRefreshRequest || (exports.InlayHintRefreshRequest = {}));
|
|
41
|
+
//# sourceMappingURL=protocol.inlayHint.js.map
|