vscode-languageserver-protocol 3.17.0-next.15 → 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 +1 -1
- package/lib/common/{proposed.notebooks.d.ts → proposed.notebook.d.ts} +23 -16
- package/lib/common/{proposed.notebooks.js → proposed.notebook.js} +1 -1
- 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} +20 -20
- 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} +1 -1
- 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 +2 -2
- package/lib/common/proposed.inlineValue.js +0 -29
package/lib/common/api.d.ts
CHANGED
|
@@ -54,9 +54,7 @@ export declare namespace LSPErrorCodes {
|
|
|
54
54
|
const lspReservedErrorRangeEnd: integer;
|
|
55
55
|
}
|
|
56
56
|
import * as diag from './proposed.diagnostic';
|
|
57
|
-
import * as
|
|
58
|
-
import * as iv from './proposed.inlineValue';
|
|
59
|
-
import * as nb from './proposed.notebooks';
|
|
57
|
+
import * as nb from './proposed.notebook';
|
|
60
58
|
export declare namespace Proposed {
|
|
61
59
|
type DiagnosticClientCapabilities = diag.DiagnosticClientCapabilities;
|
|
62
60
|
type $DiagnosticClientCapabilities = diag.$DiagnosticClientCapabilities;
|
|
@@ -84,21 +82,6 @@ export declare namespace Proposed {
|
|
|
84
82
|
type WorkspaceDiagnosticReportPartialResult = diag.WorkspaceDiagnosticReportPartialResult;
|
|
85
83
|
const WorkspaceDiagnosticRequest: typeof diag.WorkspaceDiagnosticRequest;
|
|
86
84
|
const DiagnosticRefreshRequest: typeof diag.DiagnosticRefreshRequest;
|
|
87
|
-
type TypeHierarchyClientCapabilities = typeh.TypeHierarchyClientCapabilities;
|
|
88
|
-
type TypeHierarchyOptions = typeh.TypeHierarchyOptions;
|
|
89
|
-
type TypeHierarchyRegistrationOptions = typeh.TypeHierarchyRegistrationOptions;
|
|
90
|
-
type TypeHierarchyPrepareParams = typeh.TypeHierarchyPrepareParams;
|
|
91
|
-
type TypeHierarchySupertypesParams = typeh.TypeHierarchySupertypesParams;
|
|
92
|
-
type TypeHierarchySubtypesParams = typeh.TypeHierarchySubtypesParams;
|
|
93
|
-
const TypeHierarchyPrepareRequest: typeof typeh.TypeHierarchyPrepareRequest;
|
|
94
|
-
const TypeHierarchySupertypesRequest: typeof typeh.TypeHierarchySupertypesRequest;
|
|
95
|
-
const TypeHierarchySubtypesRequest: typeof typeh.TypeHierarchySubtypesRequest;
|
|
96
|
-
type InlineValuesClientCapabilities = iv.InlineValuesClientCapabilities;
|
|
97
|
-
type InlineValuesOptions = iv.InlineValuesOptions;
|
|
98
|
-
type InlineValuesRegistrationOptions = iv.InlineValuesRegistrationOptions;
|
|
99
|
-
type InlineValuesParams = iv.InlineValuesParams;
|
|
100
|
-
const InlineValuesRequest: typeof iv.InlineValuesRequest;
|
|
101
|
-
const InlineValuesRefreshRequest: typeof iv.InlineValuesRefreshRequest;
|
|
102
85
|
type $NotebookDocumentClientCapabilities = nb.$NotebookDocumentClientCapabilities;
|
|
103
86
|
type NotebookDocumentSyncClientCapabilities = nb.NotebookDocumentSyncClientCapabilities;
|
|
104
87
|
type $NotebookDocumentSyncServerCapabilities = nb.$NotebookDocumentSyncServerCapabilities;
|
package/lib/common/api.js
CHANGED
|
@@ -72,9 +72,7 @@ var LSPErrorCodes;
|
|
|
72
72
|
LSPErrorCodes.lspReservedErrorRangeEnd = -32800;
|
|
73
73
|
})(LSPErrorCodes = exports.LSPErrorCodes || (exports.LSPErrorCodes = {}));
|
|
74
74
|
const diag = require("./proposed.diagnostic");
|
|
75
|
-
const
|
|
76
|
-
const iv = require("./proposed.inlineValue");
|
|
77
|
-
const nb = require("./proposed.notebooks");
|
|
75
|
+
const nb = require("./proposed.notebook");
|
|
78
76
|
var Proposed;
|
|
79
77
|
(function (Proposed) {
|
|
80
78
|
Proposed.DiagnosticServerCancellationData = diag.DiagnosticServerCancellationData;
|
|
@@ -82,11 +80,6 @@ var Proposed;
|
|
|
82
80
|
Proposed.DocumentDiagnosticRequest = diag.DocumentDiagnosticRequest;
|
|
83
81
|
Proposed.WorkspaceDiagnosticRequest = diag.WorkspaceDiagnosticRequest;
|
|
84
82
|
Proposed.DiagnosticRefreshRequest = diag.DiagnosticRefreshRequest;
|
|
85
|
-
Proposed.TypeHierarchyPrepareRequest = typeh.TypeHierarchyPrepareRequest;
|
|
86
|
-
Proposed.TypeHierarchySupertypesRequest = typeh.TypeHierarchySupertypesRequest;
|
|
87
|
-
Proposed.TypeHierarchySubtypesRequest = typeh.TypeHierarchySubtypesRequest;
|
|
88
|
-
Proposed.InlineValuesRequest = iv.InlineValuesRequest;
|
|
89
|
-
Proposed.InlineValuesRefreshRequest = iv.InlineValuesRefreshRequest;
|
|
90
83
|
Proposed.NotebookCellKind = nb.NotebookCellKind;
|
|
91
84
|
Proposed.NotebookCell = nb.NotebookCell;
|
|
92
85
|
Proposed.NotebookDocument = nb.NotebookDocument;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler0, RequestHandler, ProgressType } from 'vscode-jsonrpc';
|
|
2
2
|
import { TextDocumentIdentifier, Diagnostic, DocumentUri, integer } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType0, ProtocolRequestType } from './messages';
|
|
4
|
-
import { PartialResultParams, StaticRegistrationOptions, WorkDoneProgressParams, TextDocumentRegistrationOptions, WorkDoneProgressOptions, TextDocumentClientCapabilities } from './protocol';
|
|
4
|
+
import type { PartialResultParams, StaticRegistrationOptions, WorkDoneProgressParams, TextDocumentRegistrationOptions, WorkDoneProgressOptions, TextDocumentClientCapabilities } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* @since 3.17.0 - proposed state
|
|
7
7
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { URI, integer, DocumentUri, uinteger, LSPObject, TextDocumentItem, TextDocumentIdentifier, VersionedTextDocumentIdentifier } from 'vscode-languageserver-types';
|
|
2
2
|
import { ProtocolNotificationType, RegistrationType } from './messages';
|
|
3
|
-
import { StaticRegistrationOptions, NotebookDocumentFilter, TextDocumentContentChangeEvent } from './protocol';
|
|
3
|
+
import type { StaticRegistrationOptions, NotebookDocumentFilter, TextDocumentContentChangeEvent } from './protocol';
|
|
4
4
|
/**
|
|
5
5
|
* Notebook specific client capabilities.
|
|
6
6
|
*
|
|
@@ -18,11 +18,6 @@ export declare type NotebookDocumentSyncClientCapabilities = {
|
|
|
18
18
|
* The client supports sending execution summary data per cell.
|
|
19
19
|
*/
|
|
20
20
|
executionSummarySupport?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* The client has support for notebook controllers and might
|
|
23
|
-
* send `DidSelectNotebookController` notifications.
|
|
24
|
-
*/
|
|
25
|
-
notebookControllerSupport?: boolean;
|
|
26
21
|
};
|
|
27
22
|
export declare type $NotebookDocumentClientCapabilities = {
|
|
28
23
|
notebookDocument?: {
|
|
@@ -174,20 +169,32 @@ export declare type VersionedNotebookDocumentIdentifier = {
|
|
|
174
169
|
*/
|
|
175
170
|
export declare type NotebookDocumentSyncOptions = {
|
|
176
171
|
/**
|
|
177
|
-
* The
|
|
172
|
+
* The notebooks to be synced
|
|
178
173
|
*/
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
174
|
+
notebookSelector: ({
|
|
175
|
+
/**
|
|
176
|
+
* The notebook to be synced If a string
|
|
177
|
+
* value is provided it matches against the
|
|
178
|
+
* notebook type. '*' matches every notebook.
|
|
179
|
+
*/
|
|
180
|
+
notebook: string | NotebookDocumentFilter;
|
|
181
|
+
/**
|
|
182
|
+
* The cells of the matching notebook to be synced.
|
|
183
|
+
*/
|
|
184
|
+
cells?: {
|
|
184
185
|
language: string;
|
|
185
186
|
}[];
|
|
186
187
|
} | {
|
|
187
|
-
/**
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
/**
|
|
189
|
+
* The notebook to be synced If a string
|
|
190
|
+
* value is provided it matches against the
|
|
191
|
+
* notebook type. '*' matches every notebook.
|
|
192
|
+
*/
|
|
193
|
+
notebook?: string | NotebookDocumentFilter;
|
|
194
|
+
/**
|
|
195
|
+
* The cells of the matching notebook to be synced.
|
|
196
|
+
*/
|
|
197
|
+
cells: {
|
|
191
198
|
language: string;
|
|
192
199
|
}[];
|
|
193
200
|
})[];
|
|
@@ -203,4 +203,4 @@ var DidCloseNotebookDocumentNotification;
|
|
|
203
203
|
DidCloseNotebookDocumentNotification.method = 'notebookDocument/didClose';
|
|
204
204
|
DidCloseNotebookDocumentNotification.type = new messages_1.ProtocolNotificationType(DidCloseNotebookDocumentNotification.method);
|
|
205
205
|
})(DidCloseNotebookDocumentNotification = exports.DidCloseNotebookDocumentNotification || (exports.DidCloseNotebookDocumentNotification = {}));
|
|
206
|
-
//# 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
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TextDocumentIdentifier, Range, InlineValue,
|
|
1
|
+
import { TextDocumentIdentifier, Range, InlineValue, InlineValueContext } from 'vscode-languageserver-types';
|
|
2
2
|
import { RequestHandler, RequestHandler0 } from 'vscode-jsonrpc';
|
|
3
3
|
import { ProtocolRequestType, ProtocolRequestType0 } from './messages';
|
|
4
|
-
import { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRegistrationOptions, WorkDoneProgressParams } from './protocol';
|
|
4
|
+
import type { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRegistrationOptions, WorkDoneProgressParams } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* Client capabilities specific to inline values.
|
|
7
7
|
*
|
|
8
8
|
* @since 3.17.0 - proposed state
|
|
9
9
|
*/
|
|
10
|
-
export declare type
|
|
10
|
+
export declare type InlineValueClientCapabilities = {
|
|
11
11
|
/**
|
|
12
12
|
* Whether implementation supports dynamic registration for inline value providers.
|
|
13
13
|
*/
|
|
@@ -18,67 +18,67 @@ export declare type InlineValuesClientCapabilities = {
|
|
|
18
18
|
*
|
|
19
19
|
* @since 3.17.0 - proposed state
|
|
20
20
|
*/
|
|
21
|
-
export declare type
|
|
21
|
+
export declare type InlineValueWorkspaceClientCapabilities = {
|
|
22
22
|
/**
|
|
23
23
|
* Whether the client implementation supports a refresh request sent from the
|
|
24
24
|
* server to the client.
|
|
25
25
|
*
|
|
26
26
|
* Note that this event is global and will force the client to refresh all
|
|
27
27
|
* inline values currently shown. It should be used with absolute care and is
|
|
28
|
-
* useful for situation where a server for example
|
|
28
|
+
* useful for situation where a server for example detects a project wide
|
|
29
29
|
* change that requires such a calculation.
|
|
30
30
|
*/
|
|
31
31
|
refreshSupport?: boolean;
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
|
-
* Inline
|
|
34
|
+
* Inline value options used during static registration.
|
|
35
35
|
*
|
|
36
36
|
* @since 3.17.0 - proposed state
|
|
37
37
|
*/
|
|
38
|
-
export declare type
|
|
38
|
+
export declare type InlineValueOptions = WorkDoneProgressOptions;
|
|
39
39
|
/**
|
|
40
40
|
* Inline value options used during static or dynamic registration.
|
|
41
41
|
*
|
|
42
42
|
* @since 3.17.0 - proposed state
|
|
43
43
|
*/
|
|
44
|
-
export declare type
|
|
44
|
+
export declare type InlineValueRegistrationOptions = InlineValueOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions;
|
|
45
45
|
/**
|
|
46
|
-
* A parameter literal used in inline
|
|
46
|
+
* A parameter literal used in inline value requests.
|
|
47
47
|
*
|
|
48
48
|
* @since 3.17.0 - proposed state
|
|
49
49
|
*/
|
|
50
|
-
export declare type
|
|
50
|
+
export declare type InlineValueParams = WorkDoneProgressParams & {
|
|
51
51
|
/**
|
|
52
52
|
* The text document.
|
|
53
53
|
*/
|
|
54
54
|
textDocument: TextDocumentIdentifier;
|
|
55
55
|
/**
|
|
56
|
-
* The
|
|
56
|
+
* The document range for which inline values should be computed.
|
|
57
57
|
*/
|
|
58
|
-
|
|
58
|
+
range: Range;
|
|
59
59
|
/**
|
|
60
60
|
* Additional information about the context in which inline values were
|
|
61
61
|
* requested.
|
|
62
62
|
*/
|
|
63
|
-
context:
|
|
63
|
+
context: InlineValueContext;
|
|
64
64
|
};
|
|
65
65
|
/**
|
|
66
66
|
* A request to provide inline values in a document. The request's parameter is of
|
|
67
|
-
* type [
|
|
67
|
+
* type [InlineValueParams](#InlineValueParams), the response is of type
|
|
68
68
|
* [InlineValue[]](#InlineValue[]) or a Thenable that resolves to such.
|
|
69
69
|
*
|
|
70
70
|
* @since 3.17.0 - proposed state
|
|
71
71
|
*/
|
|
72
|
-
export declare namespace
|
|
73
|
-
const method: 'textDocument/
|
|
74
|
-
const type: ProtocolRequestType<
|
|
75
|
-
type HandlerSignature = RequestHandler<
|
|
72
|
+
export declare namespace InlineValueRequest {
|
|
73
|
+
const method: 'textDocument/inlineValue';
|
|
74
|
+
const type: ProtocolRequestType<InlineValueParams, InlineValue[] | null, InlineValue[], any, InlineValueRegistrationOptions>;
|
|
75
|
+
type HandlerSignature = RequestHandler<InlineValueParams, InlineValue[] | null, void>;
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
78
|
* @since 3.17.0 - proposed state
|
|
79
79
|
*/
|
|
80
|
-
export declare namespace
|
|
81
|
-
const method: `workspace/
|
|
80
|
+
export declare namespace InlineValueRefreshRequest {
|
|
81
|
+
const method: `workspace/inlineValue/refresh`;
|
|
82
82
|
const type: ProtocolRequestType0<void, void, void, void>;
|
|
83
83
|
type HandlerSignature = RequestHandler0<void, void>;
|
|
84
84
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.InlineValueRefreshRequest = exports.InlineValueRequest = void 0;
|
|
8
|
+
const messages_1 = require("./messages");
|
|
9
|
+
/**
|
|
10
|
+
* A request to provide inline values in a document. The request's parameter is of
|
|
11
|
+
* type [InlineValueParams](#InlineValueParams), the response is of type
|
|
12
|
+
* [InlineValue[]](#InlineValue[]) or a Thenable that resolves to such.
|
|
13
|
+
*
|
|
14
|
+
* @since 3.17.0 - proposed state
|
|
15
|
+
*/
|
|
16
|
+
var InlineValueRequest;
|
|
17
|
+
(function (InlineValueRequest) {
|
|
18
|
+
InlineValueRequest.method = 'textDocument/inlineValue';
|
|
19
|
+
InlineValueRequest.type = new messages_1.ProtocolRequestType(InlineValueRequest.method);
|
|
20
|
+
})(InlineValueRequest = exports.InlineValueRequest || (exports.InlineValueRequest = {}));
|
|
21
|
+
/**
|
|
22
|
+
* @since 3.17.0 - proposed state
|
|
23
|
+
*/
|
|
24
|
+
var InlineValueRefreshRequest;
|
|
25
|
+
(function (InlineValueRefreshRequest) {
|
|
26
|
+
InlineValueRefreshRequest.method = `workspace/inlineValue/refresh`;
|
|
27
|
+
InlineValueRefreshRequest.type = new messages_1.ProtocolRequestType0(InlineValueRefreshRequest.method);
|
|
28
|
+
})(InlineValueRefreshRequest = exports.InlineValueRefreshRequest || (exports.InlineValueRefreshRequest = {}));
|
|
29
|
+
//# sourceMappingURL=protocol.inlineValue.js.map
|
package/lib/common/protocol.js
CHANGED
|
@@ -5,16 +5,17 @@
|
|
|
5
5
|
* ------------------------------------------------------------------------------------------ */
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
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.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;
|
|
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;
|
|
9
10
|
const messages_1 = require("./messages");
|
|
10
11
|
const Is = require("./utils/is");
|
|
11
12
|
const protocol_implementation_1 = require("./protocol.implementation");
|
|
12
13
|
Object.defineProperty(exports, "ImplementationRequest", { enumerable: true, get: function () { return protocol_implementation_1.ImplementationRequest; } });
|
|
13
14
|
const protocol_typeDefinition_1 = require("./protocol.typeDefinition");
|
|
14
15
|
Object.defineProperty(exports, "TypeDefinitionRequest", { enumerable: true, get: function () { return protocol_typeDefinition_1.TypeDefinitionRequest; } });
|
|
15
|
-
const
|
|
16
|
-
Object.defineProperty(exports, "WorkspaceFoldersRequest", { enumerable: true, get: function () { return
|
|
17
|
-
Object.defineProperty(exports, "DidChangeWorkspaceFoldersNotification", { enumerable: true, get: function () { return
|
|
16
|
+
const protocol_workspaceFolder_1 = require("./protocol.workspaceFolder");
|
|
17
|
+
Object.defineProperty(exports, "WorkspaceFoldersRequest", { enumerable: true, get: function () { return protocol_workspaceFolder_1.WorkspaceFoldersRequest; } });
|
|
18
|
+
Object.defineProperty(exports, "DidChangeWorkspaceFoldersNotification", { enumerable: true, get: function () { return protocol_workspaceFolder_1.DidChangeWorkspaceFoldersNotification; } });
|
|
18
19
|
const protocol_configuration_1 = require("./protocol.configuration");
|
|
19
20
|
Object.defineProperty(exports, "ConfigurationRequest", { enumerable: true, get: function () { return protocol_configuration_1.ConfigurationRequest; } });
|
|
20
21
|
const protocol_colorProvider_1 = require("./protocol.colorProvider");
|
|
@@ -57,6 +58,17 @@ const protocol_moniker_1 = require("./protocol.moniker");
|
|
|
57
58
|
Object.defineProperty(exports, "UniquenessLevel", { enumerable: true, get: function () { return protocol_moniker_1.UniquenessLevel; } });
|
|
58
59
|
Object.defineProperty(exports, "MonikerKind", { enumerable: true, get: function () { return protocol_moniker_1.MonikerKind; } });
|
|
59
60
|
Object.defineProperty(exports, "MonikerRequest", { enumerable: true, get: function () { return protocol_moniker_1.MonikerRequest; } });
|
|
61
|
+
const protocol_typeHierarchy_1 = require("./protocol.typeHierarchy");
|
|
62
|
+
Object.defineProperty(exports, "TypeHierarchyPrepareRequest", { enumerable: true, get: function () { return protocol_typeHierarchy_1.TypeHierarchyPrepareRequest; } });
|
|
63
|
+
Object.defineProperty(exports, "TypeHierarchySubtypesRequest", { enumerable: true, get: function () { return protocol_typeHierarchy_1.TypeHierarchySubtypesRequest; } });
|
|
64
|
+
Object.defineProperty(exports, "TypeHierarchySupertypesRequest", { enumerable: true, get: function () { return protocol_typeHierarchy_1.TypeHierarchySupertypesRequest; } });
|
|
65
|
+
const protocol_inlineValue_1 = require("./protocol.inlineValue");
|
|
66
|
+
Object.defineProperty(exports, "InlineValueRequest", { enumerable: true, get: function () { return protocol_inlineValue_1.InlineValueRequest; } });
|
|
67
|
+
Object.defineProperty(exports, "InlineValueRefreshRequest", { enumerable: true, get: function () { return protocol_inlineValue_1.InlineValueRefreshRequest; } });
|
|
68
|
+
const protocol_inlayHint_1 = require("./protocol.inlayHint");
|
|
69
|
+
Object.defineProperty(exports, "InlayHintRequest", { enumerable: true, get: function () { return protocol_inlayHint_1.InlayHintRequest; } });
|
|
70
|
+
Object.defineProperty(exports, "InlayHintResolveRequest", { enumerable: true, get: function () { return protocol_inlayHint_1.InlayHintResolveRequest; } });
|
|
71
|
+
Object.defineProperty(exports, "InlayHintRefreshRequest", { enumerable: true, get: function () { return protocol_inlayHint_1.InlayHintRefreshRequest; } });
|
|
60
72
|
// @ts-ignore: to avoid inlining LocationLink as dynamic import
|
|
61
73
|
let __noDynamicImport;
|
|
62
74
|
/**
|
|
@@ -97,7 +109,9 @@ var NotebookCellTextDocumentFilter;
|
|
|
97
109
|
(function (NotebookCellTextDocumentFilter) {
|
|
98
110
|
function is(value) {
|
|
99
111
|
const candidate = value;
|
|
100
|
-
return Is.objectLiteral(candidate)
|
|
112
|
+
return Is.objectLiteral(candidate)
|
|
113
|
+
&& (Is.string(candidate.notebook) || NotebookDocumentFilter.is(candidate.notebook))
|
|
114
|
+
&& (candidate.language === undefined || Is.string(candidate.language));
|
|
101
115
|
}
|
|
102
116
|
NotebookCellTextDocumentFilter.is = is;
|
|
103
117
|
})(NotebookCellTextDocumentFilter = exports.NotebookCellTextDocumentFilter || (exports.NotebookCellTextDocumentFilter = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { Range } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType } from './messages';
|
|
4
|
-
import { StaticRegistrationOptions, TextDocumentPositionParams, TextDocumentRegistrationOptions, WorkDoneProgressOptions, WorkDoneProgressParams } from './protocol';
|
|
4
|
+
import type { StaticRegistrationOptions, TextDocumentPositionParams, TextDocumentRegistrationOptions, WorkDoneProgressOptions, WorkDoneProgressParams } from './protocol';
|
|
5
5
|
/**
|
|
6
6
|
* Client capabilities for the linked editing range request.
|
|
7
7
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProtocolRequestType } from './messages';
|
|
2
|
-
import { WorkDoneProgressOptions, WorkDoneProgressParams, PartialResultParams, TextDocumentRegistrationOptions, TextDocumentPositionParams } from './protocol';
|
|
2
|
+
import type { WorkDoneProgressOptions, WorkDoneProgressParams, PartialResultParams, TextDocumentRegistrationOptions, TextDocumentPositionParams } from './protocol';
|
|
3
3
|
/**
|
|
4
4
|
* Moniker uniqueness level to define scope of the moniker.
|
|
5
5
|
*
|
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
import { NotificationHandler, RequestHandler, ProgressType, ProgressToken } from 'vscode-jsonrpc';
|
|
2
2
|
import { uinteger } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType, ProtocolNotificationType } from './messages';
|
|
4
|
-
export interface WorkDoneProgressClientCapabilities {
|
|
5
|
-
/**
|
|
6
|
-
* Window specific client capabilities.
|
|
7
|
-
*/
|
|
8
|
-
window?: {
|
|
9
|
-
/**
|
|
10
|
-
* Whether client supports server initiated progress using the
|
|
11
|
-
* `window/workDoneProgress/create` request.
|
|
12
|
-
*
|
|
13
|
-
* Since 3.15.0
|
|
14
|
-
*/
|
|
15
|
-
workDoneProgress?: boolean;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
4
|
export interface WorkDoneProgressBegin {
|
|
19
5
|
kind: 'begin';
|
|
20
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { TextDocumentIdentifier, Position, SelectionRange } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType } from './messages';
|
|
4
|
-
import { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRegistrationOptions, WorkDoneProgressParams, PartialResultParams } from './protocol';
|
|
4
|
+
import type { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRegistrationOptions, WorkDoneProgressParams, PartialResultParams } from './protocol';
|
|
5
5
|
export interface SelectionRangeClientCapabilities {
|
|
6
6
|
/**
|
|
7
7
|
* Whether implementation supports dynamic registration for selection range providers. If this is set to `true`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TextDocumentIdentifier, Range, uinteger, SemanticTokensEdit, SemanticTokensLegend, SemanticTokens, SemanticTokensDelta } from 'vscode-languageserver-types';
|
|
2
2
|
import { RequestHandler0, RequestHandler } from 'vscode-jsonrpc';
|
|
3
3
|
import { ProtocolRequestType, ProtocolRequestType0, RegistrationType } from './messages';
|
|
4
|
-
import { PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions, TextDocumentRegistrationOptions, StaticRegistrationOptions } from './protocol';
|
|
4
|
+
import type { PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions, TextDocumentRegistrationOptions, StaticRegistrationOptions } 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 { Definition, DefinitionLink, LocationLink, Location } 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
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { TypeHierarchyItem } 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.17.0 - proposed state
|
|
7
7
|
*/
|
|
@@ -37,4 +37,4 @@ var TypeHierarchySubtypesRequest;
|
|
|
37
37
|
TypeHierarchySubtypesRequest.method = 'typeHierarchy/subtypes';
|
|
38
38
|
TypeHierarchySubtypesRequest.type = new messages_1.ProtocolRequestType(TypeHierarchySubtypesRequest.method);
|
|
39
39
|
})(TypeHierarchySubtypesRequest = exports.TypeHierarchySubtypesRequest || (exports.TypeHierarchySubtypesRequest = {}));
|
|
40
|
-
//# sourceMappingURL=
|
|
40
|
+
//# sourceMappingURL=protocol.typeHierarchy.js.map
|
|
@@ -6,41 +6,21 @@ export interface WorkspaceFoldersInitializeParams {
|
|
|
6
6
|
*/
|
|
7
7
|
workspaceFolders: WorkspaceFolder[] | null;
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
9
|
+
export interface WorkspaceFoldersServerCapabilities {
|
|
10
10
|
/**
|
|
11
|
-
* The workspace
|
|
11
|
+
* The Server has support for workspace folders
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* The client has support for workspace folders
|
|
16
|
-
*
|
|
17
|
-
* @since 3.6.0
|
|
18
|
-
*/
|
|
19
|
-
workspaceFolders?: boolean;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export interface WorkspaceFoldersServerCapabilities {
|
|
13
|
+
supported?: boolean;
|
|
23
14
|
/**
|
|
24
|
-
*
|
|
15
|
+
* Whether the server wants to receive workspace folder
|
|
16
|
+
* change notifications.
|
|
17
|
+
*
|
|
18
|
+
* If a strings is provided the string is treated as a ID
|
|
19
|
+
* under which the notification is registered on the client
|
|
20
|
+
* side. The ID can be used to unregister for these events
|
|
21
|
+
* using the `client/unregisterCapability` request.
|
|
25
22
|
*/
|
|
26
|
-
|
|
27
|
-
workspaceFolders?: {
|
|
28
|
-
/**
|
|
29
|
-
* The Server has support for workspace folders
|
|
30
|
-
*/
|
|
31
|
-
supported?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Whether the server wants to receive workspace folder
|
|
34
|
-
* change notifications.
|
|
35
|
-
*
|
|
36
|
-
* If a strings is provided the string is treated as a ID
|
|
37
|
-
* under which the notification is registered on the client
|
|
38
|
-
* side. The ID can be used to unregister for these events
|
|
39
|
-
* using the `client/unregisterCapability` request.
|
|
40
|
-
*/
|
|
41
|
-
changeNotifications?: string | boolean;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
23
|
+
changeNotifications?: string | boolean;
|
|
44
24
|
}
|
|
45
25
|
export interface WorkspaceFolder {
|
|
46
26
|
/**
|
|
@@ -21,4 +21,4 @@ var DidChangeWorkspaceFoldersNotification;
|
|
|
21
21
|
(function (DidChangeWorkspaceFoldersNotification) {
|
|
22
22
|
DidChangeWorkspaceFoldersNotification.type = new messages_1.ProtocolNotificationType('workspace/didChangeWorkspaceFolders');
|
|
23
23
|
})(DidChangeWorkspaceFoldersNotification = exports.DidChangeWorkspaceFoldersNotification || (exports.DidChangeWorkspaceFoldersNotification = {}));
|
|
24
|
-
//# sourceMappingURL=protocol.
|
|
24
|
+
//# sourceMappingURL=protocol.workspaceFolder.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vscode-languageserver-protocol",
|
|
3
3
|
"description": "VSCode Language Server Protocol implementation",
|
|
4
|
-
"version": "3.17.0-next.
|
|
4
|
+
"version": "3.17.0-next.16",
|
|
5
5
|
"author": "Microsoft Corporation",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"typings": "./lib/common/api.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"vscode-jsonrpc": "8.0.0-next.7",
|
|
22
|
-
"vscode-languageserver-types": "3.17.0-next.
|
|
22
|
+
"vscode-languageserver-types": "3.17.0-next.9"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"prepublishOnly": "git clean -xfd . && npm install && npm run clean && npm run compile && npm test",
|
|
@@ -1,29 +0,0 @@
|
|
|
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.InlineValuesRefreshRequest = exports.InlineValuesRequest = void 0;
|
|
8
|
-
const messages_1 = require("./messages");
|
|
9
|
-
/**
|
|
10
|
-
* A request to provide inline values in a document. The request's parameter is of
|
|
11
|
-
* type [InlineValuesParams](#InlineValuesParams), the response is of type
|
|
12
|
-
* [InlineValue[]](#InlineValue[]) or a Thenable that resolves to such.
|
|
13
|
-
*
|
|
14
|
-
* @since 3.17.0 - proposed state
|
|
15
|
-
*/
|
|
16
|
-
var InlineValuesRequest;
|
|
17
|
-
(function (InlineValuesRequest) {
|
|
18
|
-
InlineValuesRequest.method = 'textDocument/inlineValues';
|
|
19
|
-
InlineValuesRequest.type = new messages_1.ProtocolRequestType(InlineValuesRequest.method);
|
|
20
|
-
})(InlineValuesRequest = exports.InlineValuesRequest || (exports.InlineValuesRequest = {}));
|
|
21
|
-
/**
|
|
22
|
-
* @since 3.17.0 - proposed state
|
|
23
|
-
*/
|
|
24
|
-
var InlineValuesRefreshRequest;
|
|
25
|
-
(function (InlineValuesRefreshRequest) {
|
|
26
|
-
InlineValuesRefreshRequest.method = `workspace/inlineValues/refresh`;
|
|
27
|
-
InlineValuesRefreshRequest.type = new messages_1.ProtocolRequestType0(InlineValuesRefreshRequest.method);
|
|
28
|
-
})(InlineValuesRefreshRequest = exports.InlineValuesRefreshRequest || (exports.InlineValuesRefreshRequest = {}));
|
|
29
|
-
//# sourceMappingURL=proposed.inlineValue.js.map
|