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
|
@@ -1,86 +1,84 @@
|
|
|
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
|
|
10
|
+
export declare type InlineValueClientCapabilities = {
|
|
11
11
|
/**
|
|
12
12
|
* Whether implementation supports dynamic registration for inline value providers.
|
|
13
13
|
*/
|
|
14
14
|
dynamicRegistration?: boolean;
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
/**
|
|
17
17
|
* Client workspace capabilities specific to inline values.
|
|
18
18
|
*
|
|
19
19
|
* @since 3.17.0 - proposed state
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
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
|
|
39
|
-
}
|
|
38
|
+
export declare type InlineValueOptions = WorkDoneProgressOptions;
|
|
40
39
|
/**
|
|
41
40
|
* Inline value options used during static or dynamic registration.
|
|
42
41
|
*
|
|
43
42
|
* @since 3.17.0 - proposed state
|
|
44
43
|
*/
|
|
45
|
-
export
|
|
46
|
-
}
|
|
44
|
+
export declare type InlineValueRegistrationOptions = InlineValueOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions;
|
|
47
45
|
/**
|
|
48
|
-
* A parameter literal used in inline
|
|
46
|
+
* A parameter literal used in inline value requests.
|
|
49
47
|
*
|
|
50
48
|
* @since 3.17.0 - proposed state
|
|
51
49
|
*/
|
|
52
|
-
export
|
|
50
|
+
export declare type InlineValueParams = WorkDoneProgressParams & {
|
|
53
51
|
/**
|
|
54
52
|
* The text document.
|
|
55
53
|
*/
|
|
56
54
|
textDocument: TextDocumentIdentifier;
|
|
57
55
|
/**
|
|
58
|
-
* The
|
|
56
|
+
* The document range for which inline values should be computed.
|
|
59
57
|
*/
|
|
60
|
-
|
|
58
|
+
range: Range;
|
|
61
59
|
/**
|
|
62
60
|
* Additional information about the context in which inline values were
|
|
63
61
|
* requested.
|
|
64
62
|
*/
|
|
65
|
-
context:
|
|
66
|
-
}
|
|
63
|
+
context: InlineValueContext;
|
|
64
|
+
};
|
|
67
65
|
/**
|
|
68
66
|
* A request to provide inline values in a document. The request's parameter is of
|
|
69
|
-
* type [
|
|
67
|
+
* type [InlineValueParams](#InlineValueParams), the response is of type
|
|
70
68
|
* [InlineValue[]](#InlineValue[]) or a Thenable that resolves to such.
|
|
71
69
|
*
|
|
72
70
|
* @since 3.17.0 - proposed state
|
|
73
71
|
*/
|
|
74
|
-
export declare namespace
|
|
75
|
-
const method: 'textDocument/
|
|
76
|
-
const type: ProtocolRequestType<
|
|
77
|
-
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>;
|
|
78
76
|
}
|
|
79
77
|
/**
|
|
80
78
|
* @since 3.17.0 - proposed state
|
|
81
79
|
*/
|
|
82
|
-
export declare namespace
|
|
83
|
-
const method: `workspace/
|
|
80
|
+
export declare namespace InlineValueRefreshRequest {
|
|
81
|
+
const method: `workspace/inlineValue/refresh`;
|
|
84
82
|
const type: ProtocolRequestType0<void, void, void, void>;
|
|
85
83
|
type HandlerSignature = RequestHandler0<void, void>;
|
|
86
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,39 +1,36 @@
|
|
|
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
|
*/
|
|
8
|
-
export
|
|
8
|
+
export declare type TypeHierarchyClientCapabilities = {
|
|
9
9
|
/**
|
|
10
10
|
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
11
11
|
* the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
|
12
12
|
* return value for the corresponding server capability as well.
|
|
13
13
|
*/
|
|
14
14
|
dynamicRegistration?: boolean;
|
|
15
|
-
}
|
|
15
|
+
};
|
|
16
16
|
/**
|
|
17
17
|
* Type hierarchy options used during static registration.
|
|
18
18
|
*
|
|
19
19
|
* @since 3.17.0 - proposed state
|
|
20
20
|
*/
|
|
21
|
-
export
|
|
22
|
-
}
|
|
21
|
+
export declare type TypeHierarchyOptions = WorkDoneProgressOptions;
|
|
23
22
|
/**
|
|
24
23
|
* Type hierarchy options used during static or dynamic registration.
|
|
25
24
|
*
|
|
26
25
|
* @since 3.17.0 - proposed state
|
|
27
26
|
*/
|
|
28
|
-
export
|
|
29
|
-
}
|
|
27
|
+
export declare type TypeHierarchyRegistrationOptions = TextDocumentRegistrationOptions & TypeHierarchyOptions & StaticRegistrationOptions;
|
|
30
28
|
/**
|
|
31
29
|
* The parameter of a `textDocument/prepareTypeHierarchy` request.
|
|
32
30
|
*
|
|
33
31
|
* @since 3.17.0 - proposed state
|
|
34
32
|
*/
|
|
35
|
-
export
|
|
36
|
-
}
|
|
33
|
+
export declare type TypeHierarchyPrepareParams = TextDocumentPositionParams & WorkDoneProgressParams;
|
|
37
34
|
/**
|
|
38
35
|
* A request to result a `TypeHierarchyItem` in a document at a given position.
|
|
39
36
|
* Can be used as an input to a subtypes or supertypes type hierarchy.
|
|
@@ -50,9 +47,9 @@ export declare namespace TypeHierarchyPrepareRequest {
|
|
|
50
47
|
*
|
|
51
48
|
* @since 3.17.0 - proposed state
|
|
52
49
|
*/
|
|
53
|
-
export
|
|
50
|
+
export declare type TypeHierarchySupertypesParams = WorkDoneProgressParams & PartialResultParams & {
|
|
54
51
|
item: TypeHierarchyItem;
|
|
55
|
-
}
|
|
52
|
+
};
|
|
56
53
|
/**
|
|
57
54
|
* A request to resolve the supertypes for a given `TypeHierarchyItem`.
|
|
58
55
|
*
|
|
@@ -68,9 +65,9 @@ export declare namespace TypeHierarchySupertypesRequest {
|
|
|
68
65
|
*
|
|
69
66
|
* @since 3.17.0 - proposed state
|
|
70
67
|
*/
|
|
71
|
-
export
|
|
68
|
+
export declare type TypeHierarchySubtypesParams = WorkDoneProgressParams & PartialResultParams & {
|
|
72
69
|
item: TypeHierarchyItem;
|
|
73
|
-
}
|
|
70
|
+
};
|
|
74
71
|
/**
|
|
75
72
|
* A request to resolve the subtypes for a given `TypeHierarchyItem`.
|
|
76
73
|
*
|
|
@@ -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": {
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
},
|
|
19
19
|
"typings": "./lib/common/api.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode-jsonrpc": "8.0.0-next.
|
|
22
|
-
"vscode-languageserver-types": "3.17.0-next.
|
|
21
|
+
"vscode-jsonrpc": "8.0.0-next.7",
|
|
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
|