vscode-languageserver-protocol 3.17.0-next.15 → 3.17.0-next.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/common/api.d.ts +0 -69
- package/lib/common/api.js +1 -26
- package/lib/common/connection.d.ts +26 -2
- 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 +326 -105
- package/lib/common/protocol.declaration.d.ts +2 -2
- package/lib/common/protocol.declaration.js +2 -2
- package/lib/common/{proposed.diagnostic.d.ts → protocol.diagnostic.d.ts} +79 -38
- package/lib/common/{proposed.diagnostic.js → protocol.diagnostic.js} +13 -8
- package/lib/common/protocol.foldingRange.d.ts +20 -26
- package/lib/common/protocol.foldingRange.js +1 -19
- package/lib/common/protocol.implementation.d.ts +2 -2
- package/lib/common/protocol.implementation.js +2 -2
- package/lib/common/protocol.inlayHint.d.ts +115 -0
- package/lib/common/protocol.inlayHint.js +44 -0
- package/lib/common/protocol.inlineValue.d.ts +91 -0
- package/lib/common/protocol.inlineValue.js +31 -0
- package/lib/common/protocol.js +88 -15
- package/lib/common/protocol.linkedEditingRange.d.ts +2 -2
- package/lib/common/protocol.moniker.d.ts +13 -11
- package/lib/common/protocol.moniker.js +8 -8
- package/lib/common/{proposed.notebooks.d.ts → protocol.notebook.d.ts} +57 -53
- package/lib/common/{proposed.notebooks.js → protocol.notebook.js} +9 -5
- package/lib/common/protocol.progress.d.ts +2 -14
- package/lib/common/protocol.progress.js +4 -2
- package/lib/common/protocol.selectionRange.d.ts +2 -2
- 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} +19 -10
- package/lib/common/{proposed.typeHierarchy.js → protocol.typeHierarchy.js} +7 -4
- package/lib/common/{protocol.workspaceFolders.d.ts → protocol.workspaceFolder.d.ts} +11 -41
- package/lib/common/{protocol.workspaceFolders.js → protocol.workspaceFolder.js} +1 -1
- package/metaModel.schema.json +686 -0
- package/package.json +3 -3
- package/lib/common/proposed.inlineValue.d.ts +0 -84
- package/lib/common/proposed.inlineValue.js +0 -29
|
@@ -0,0 +1,44 @@
|
|
|
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
|
|
15
|
+
* @proposed
|
|
16
|
+
*/
|
|
17
|
+
var InlayHintRequest;
|
|
18
|
+
(function (InlayHintRequest) {
|
|
19
|
+
InlayHintRequest.method = 'textDocument/inlayHint';
|
|
20
|
+
InlayHintRequest.type = new messages_1.ProtocolRequestType(InlayHintRequest.method);
|
|
21
|
+
})(InlayHintRequest = exports.InlayHintRequest || (exports.InlayHintRequest = {}));
|
|
22
|
+
/**
|
|
23
|
+
* A request to resolve additional properties for a inlay hint.
|
|
24
|
+
* The request's parameter is of type [InlayHint](#InlayHint), the response is
|
|
25
|
+
* of type [InlayHint](#InlayHint) or a Thenable that resolves to such.
|
|
26
|
+
*
|
|
27
|
+
* @since 3.17.0
|
|
28
|
+
* @proposed
|
|
29
|
+
*/
|
|
30
|
+
var InlayHintResolveRequest;
|
|
31
|
+
(function (InlayHintResolveRequest) {
|
|
32
|
+
InlayHintResolveRequest.method = 'inlayHint/resolve';
|
|
33
|
+
InlayHintResolveRequest.type = new messages_1.ProtocolRequestType(InlayHintResolveRequest.method);
|
|
34
|
+
})(InlayHintResolveRequest = exports.InlayHintResolveRequest || (exports.InlayHintResolveRequest = {}));
|
|
35
|
+
/**
|
|
36
|
+
* @since 3.17.0
|
|
37
|
+
* @proposed
|
|
38
|
+
*/
|
|
39
|
+
var InlayHintRefreshRequest;
|
|
40
|
+
(function (InlayHintRefreshRequest) {
|
|
41
|
+
InlayHintRefreshRequest.method = `workspace/inlayHint/refresh`;
|
|
42
|
+
InlayHintRefreshRequest.type = new messages_1.ProtocolRequestType0(InlayHintRefreshRequest.method);
|
|
43
|
+
})(InlayHintRefreshRequest = exports.InlayHintRefreshRequest || (exports.InlayHintRefreshRequest = {}));
|
|
44
|
+
//# sourceMappingURL=protocol.inlayHint.js.map
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { TextDocumentIdentifier, Range, InlineValue, InlineValueContext } from 'vscode-languageserver-types';
|
|
2
|
+
import { RequestHandler, RequestHandler0 } from 'vscode-jsonrpc';
|
|
3
|
+
import { ProtocolRequestType, ProtocolRequestType0 } from './messages';
|
|
4
|
+
import type { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRegistrationOptions, WorkDoneProgressParams } from './protocol';
|
|
5
|
+
/**
|
|
6
|
+
* Client capabilities specific to inline values.
|
|
7
|
+
*
|
|
8
|
+
* @since 3.17.0
|
|
9
|
+
* @proposed
|
|
10
|
+
*/
|
|
11
|
+
export declare type InlineValueClientCapabilities = {
|
|
12
|
+
/**
|
|
13
|
+
* Whether implementation supports dynamic registration for inline value providers.
|
|
14
|
+
*/
|
|
15
|
+
dynamicRegistration?: boolean;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Client workspace capabilities specific to inline values.
|
|
19
|
+
*
|
|
20
|
+
* @since 3.17.0
|
|
21
|
+
* @proposed
|
|
22
|
+
*/
|
|
23
|
+
export declare type InlineValueWorkspaceClientCapabilities = {
|
|
24
|
+
/**
|
|
25
|
+
* Whether the client implementation supports a refresh request sent from the
|
|
26
|
+
* server to the client.
|
|
27
|
+
*
|
|
28
|
+
* Note that this event is global and will force the client to refresh all
|
|
29
|
+
* inline values currently shown. It should be used with absolute care and is
|
|
30
|
+
* useful for situation where a server for example detects a project wide
|
|
31
|
+
* change that requires such a calculation.
|
|
32
|
+
*/
|
|
33
|
+
refreshSupport?: boolean;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Inline value options used during static registration.
|
|
37
|
+
*
|
|
38
|
+
* @since 3.17.0
|
|
39
|
+
* @proposed
|
|
40
|
+
*/
|
|
41
|
+
export declare type InlineValueOptions = WorkDoneProgressOptions;
|
|
42
|
+
/**
|
|
43
|
+
* Inline value options used during static or dynamic registration.
|
|
44
|
+
*
|
|
45
|
+
* @since 3.17.0
|
|
46
|
+
* @proposed
|
|
47
|
+
*/
|
|
48
|
+
export declare type InlineValueRegistrationOptions = InlineValueOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions;
|
|
49
|
+
/**
|
|
50
|
+
* A parameter literal used in inline value requests.
|
|
51
|
+
*
|
|
52
|
+
* @since 3.17.0
|
|
53
|
+
* @proposed
|
|
54
|
+
*/
|
|
55
|
+
export declare type InlineValueParams = WorkDoneProgressParams & {
|
|
56
|
+
/**
|
|
57
|
+
* The text document.
|
|
58
|
+
*/
|
|
59
|
+
textDocument: TextDocumentIdentifier;
|
|
60
|
+
/**
|
|
61
|
+
* The document range for which inline values should be computed.
|
|
62
|
+
*/
|
|
63
|
+
range: Range;
|
|
64
|
+
/**
|
|
65
|
+
* Additional information about the context in which inline values were
|
|
66
|
+
* requested.
|
|
67
|
+
*/
|
|
68
|
+
context: InlineValueContext;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* A request to provide inline values in a document. The request's parameter is of
|
|
72
|
+
* type [InlineValueParams](#InlineValueParams), the response is of type
|
|
73
|
+
* [InlineValue[]](#InlineValue[]) or a Thenable that resolves to such.
|
|
74
|
+
*
|
|
75
|
+
* @since 3.17.0
|
|
76
|
+
* @proposed
|
|
77
|
+
*/
|
|
78
|
+
export declare namespace InlineValueRequest {
|
|
79
|
+
const method: 'textDocument/inlineValue';
|
|
80
|
+
const type: ProtocolRequestType<InlineValueParams, InlineValue[] | null, InlineValue[], void, InlineValueRegistrationOptions>;
|
|
81
|
+
type HandlerSignature = RequestHandler<InlineValueParams, InlineValue[] | null, void>;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* @since 3.17.0
|
|
85
|
+
* @proposed
|
|
86
|
+
*/
|
|
87
|
+
export declare namespace InlineValueRefreshRequest {
|
|
88
|
+
const method: `workspace/inlineValue/refresh`;
|
|
89
|
+
const type: ProtocolRequestType0<void, void, void, void>;
|
|
90
|
+
type HandlerSignature = RequestHandler0<void, void>;
|
|
91
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
|
15
|
+
* @proposed
|
|
16
|
+
*/
|
|
17
|
+
var InlineValueRequest;
|
|
18
|
+
(function (InlineValueRequest) {
|
|
19
|
+
InlineValueRequest.method = 'textDocument/inlineValue';
|
|
20
|
+
InlineValueRequest.type = new messages_1.ProtocolRequestType(InlineValueRequest.method);
|
|
21
|
+
})(InlineValueRequest = exports.InlineValueRequest || (exports.InlineValueRequest = {}));
|
|
22
|
+
/**
|
|
23
|
+
* @since 3.17.0
|
|
24
|
+
* @proposed
|
|
25
|
+
*/
|
|
26
|
+
var InlineValueRefreshRequest;
|
|
27
|
+
(function (InlineValueRefreshRequest) {
|
|
28
|
+
InlineValueRefreshRequest.method = `workspace/inlineValue/refresh`;
|
|
29
|
+
InlineValueRefreshRequest.type = new messages_1.ProtocolRequestType0(InlineValueRefreshRequest.method);
|
|
30
|
+
})(InlineValueRefreshRequest = exports.InlineValueRefreshRequest || (exports.InlineValueRefreshRequest = {}));
|
|
31
|
+
//# sourceMappingURL=protocol.inlineValue.js.map
|
package/lib/common/protocol.js
CHANGED
|
@@ -4,17 +4,19 @@
|
|
|
4
4
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
5
5
|
* ------------------------------------------------------------------------------------------ */
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.
|
|
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;
|
|
7
|
+
exports.WorkspaceSymbolRequest = exports.CodeActionResolveRequest = exports.CodeActionRequest = exports.DocumentSymbolRequest = exports.DocumentHighlightRequest = exports.ReferencesRequest = exports.DefinitionRequest = exports.SignatureHelpRequest = exports.SignatureHelpTriggerKind = exports.HoverRequest = exports.CompletionResolveRequest = exports.CompletionRequest = exports.CompletionTriggerKind = exports.PublishDiagnosticsNotification = exports.WatchKind = exports.RelativePattern = exports.FileChangeType = exports.DidChangeWatchedFilesNotification = exports.WillSaveTextDocumentWaitUntilRequest = exports.WillSaveTextDocumentNotification = exports.TextDocumentSaveReason = exports.DidSaveTextDocumentNotification = exports.DidCloseTextDocumentNotification = exports.DidChangeTextDocumentNotification = exports.TextDocumentContentChangeEvent = exports.DidOpenTextDocumentNotification = exports.TextDocumentSyncKind = exports.TelemetryEventNotification = exports.LogMessageNotification = exports.ShowMessageRequest = exports.ShowMessageNotification = exports.MessageType = exports.DidChangeConfigurationNotification = exports.ExitNotification = exports.ShutdownRequest = exports.InitializedNotification = exports.InitializeErrorCodes = exports.InitializeRequest = exports.WorkDoneProgressOptions = exports.TextDocumentRegistrationOptions = exports.StaticRegistrationOptions = exports.PositionEncodingKind = exports.FailureHandlingKind = exports.ResourceOperationKind = exports.UnregistrationRequest = exports.RegistrationRequest = exports.DocumentSelector = exports.NotebookCellTextDocumentFilter = exports.NotebookDocumentFilter = exports.TextDocumentFilter = void 0;
|
|
8
|
+
exports.TypeHierarchySubtypesRequest = exports.TypeHierarchyPrepareRequest = exports.MonikerRequest = exports.MonikerKind = exports.UniquenessLevel = exports.WillDeleteFilesRequest = exports.DidDeleteFilesNotification = exports.WillRenameFilesRequest = exports.DidRenameFilesNotification = exports.WillCreateFilesRequest = exports.DidCreateFilesNotification = exports.FileOperationPatternKind = exports.LinkedEditingRangeRequest = exports.ShowDocumentRequest = exports.SemanticTokensRegistrationType = exports.SemanticTokensRefreshRequest = exports.SemanticTokensRangeRequest = exports.SemanticTokensDeltaRequest = exports.SemanticTokensRequest = exports.TokenFormat = exports.CallHierarchyPrepareRequest = exports.CallHierarchyOutgoingCallsRequest = exports.CallHierarchyIncomingCallsRequest = exports.WorkDoneProgressCancelNotification = exports.WorkDoneProgressCreateRequest = exports.WorkDoneProgress = exports.SelectionRangeRequest = exports.DeclarationRequest = exports.FoldingRangeRequest = exports.ColorPresentationRequest = exports.DocumentColorRequest = exports.ConfigurationRequest = exports.DidChangeWorkspaceFoldersNotification = exports.WorkspaceFoldersRequest = exports.TypeDefinitionRequest = exports.ImplementationRequest = exports.ApplyWorkspaceEditRequest = exports.ExecuteCommandRequest = exports.PrepareRenameRequest = exports.RenameRequest = exports.PrepareSupportDefaultBehavior = exports.DocumentOnTypeFormattingRequest = exports.DocumentRangeFormattingRequest = exports.DocumentFormattingRequest = exports.DocumentLinkResolveRequest = exports.DocumentLinkRequest = exports.CodeLensRefreshRequest = exports.CodeLensResolveRequest = exports.CodeLensRequest = exports.WorkspaceSymbolResolveRequest = void 0;
|
|
9
|
+
exports.DidCloseNotebookDocumentNotification = exports.DidSaveNotebookDocumentNotification = exports.DidChangeNotebookDocumentNotification = exports.NotebookCellArrayChange = exports.DidOpenNotebookDocumentNotification = exports.NotebookDocumentSyncRegistrationType = exports.NotebookDocument = exports.NotebookCell = exports.ExecutionSummary = exports.NotebookCellKind = exports.DiagnosticRefreshRequest = exports.WorkspaceDiagnosticRequest = exports.DocumentDiagnosticRequest = exports.DocumentDiagnosticReportKind = exports.DiagnosticServerCancellationData = exports.InlayHintRefreshRequest = exports.InlayHintResolveRequest = exports.InlayHintRequest = exports.InlineValueRefreshRequest = exports.InlineValueRequest = exports.TypeHierarchySupertypesRequest = void 0;
|
|
9
10
|
const messages_1 = require("./messages");
|
|
11
|
+
const vscode_languageserver_types_1 = require("vscode-languageserver-types");
|
|
10
12
|
const Is = require("./utils/is");
|
|
11
13
|
const protocol_implementation_1 = require("./protocol.implementation");
|
|
12
14
|
Object.defineProperty(exports, "ImplementationRequest", { enumerable: true, get: function () { return protocol_implementation_1.ImplementationRequest; } });
|
|
13
15
|
const protocol_typeDefinition_1 = require("./protocol.typeDefinition");
|
|
14
16
|
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
|
|
17
|
+
const protocol_workspaceFolder_1 = require("./protocol.workspaceFolder");
|
|
18
|
+
Object.defineProperty(exports, "WorkspaceFoldersRequest", { enumerable: true, get: function () { return protocol_workspaceFolder_1.WorkspaceFoldersRequest; } });
|
|
19
|
+
Object.defineProperty(exports, "DidChangeWorkspaceFoldersNotification", { enumerable: true, get: function () { return protocol_workspaceFolder_1.DidChangeWorkspaceFoldersNotification; } });
|
|
18
20
|
const protocol_configuration_1 = require("./protocol.configuration");
|
|
19
21
|
Object.defineProperty(exports, "ConfigurationRequest", { enumerable: true, get: function () { return protocol_configuration_1.ConfigurationRequest; } });
|
|
20
22
|
const protocol_colorProvider_1 = require("./protocol.colorProvider");
|
|
@@ -57,13 +59,42 @@ const protocol_moniker_1 = require("./protocol.moniker");
|
|
|
57
59
|
Object.defineProperty(exports, "UniquenessLevel", { enumerable: true, get: function () { return protocol_moniker_1.UniquenessLevel; } });
|
|
58
60
|
Object.defineProperty(exports, "MonikerKind", { enumerable: true, get: function () { return protocol_moniker_1.MonikerKind; } });
|
|
59
61
|
Object.defineProperty(exports, "MonikerRequest", { enumerable: true, get: function () { return protocol_moniker_1.MonikerRequest; } });
|
|
62
|
+
const protocol_typeHierarchy_1 = require("./protocol.typeHierarchy");
|
|
63
|
+
Object.defineProperty(exports, "TypeHierarchyPrepareRequest", { enumerable: true, get: function () { return protocol_typeHierarchy_1.TypeHierarchyPrepareRequest; } });
|
|
64
|
+
Object.defineProperty(exports, "TypeHierarchySubtypesRequest", { enumerable: true, get: function () { return protocol_typeHierarchy_1.TypeHierarchySubtypesRequest; } });
|
|
65
|
+
Object.defineProperty(exports, "TypeHierarchySupertypesRequest", { enumerable: true, get: function () { return protocol_typeHierarchy_1.TypeHierarchySupertypesRequest; } });
|
|
66
|
+
const protocol_inlineValue_1 = require("./protocol.inlineValue");
|
|
67
|
+
Object.defineProperty(exports, "InlineValueRequest", { enumerable: true, get: function () { return protocol_inlineValue_1.InlineValueRequest; } });
|
|
68
|
+
Object.defineProperty(exports, "InlineValueRefreshRequest", { enumerable: true, get: function () { return protocol_inlineValue_1.InlineValueRefreshRequest; } });
|
|
69
|
+
const protocol_inlayHint_1 = require("./protocol.inlayHint");
|
|
70
|
+
Object.defineProperty(exports, "InlayHintRequest", { enumerable: true, get: function () { return protocol_inlayHint_1.InlayHintRequest; } });
|
|
71
|
+
Object.defineProperty(exports, "InlayHintResolveRequest", { enumerable: true, get: function () { return protocol_inlayHint_1.InlayHintResolveRequest; } });
|
|
72
|
+
Object.defineProperty(exports, "InlayHintRefreshRequest", { enumerable: true, get: function () { return protocol_inlayHint_1.InlayHintRefreshRequest; } });
|
|
73
|
+
const protocol_diagnostic_1 = require("./protocol.diagnostic");
|
|
74
|
+
Object.defineProperty(exports, "DiagnosticServerCancellationData", { enumerable: true, get: function () { return protocol_diagnostic_1.DiagnosticServerCancellationData; } });
|
|
75
|
+
Object.defineProperty(exports, "DocumentDiagnosticReportKind", { enumerable: true, get: function () { return protocol_diagnostic_1.DocumentDiagnosticReportKind; } });
|
|
76
|
+
Object.defineProperty(exports, "DocumentDiagnosticRequest", { enumerable: true, get: function () { return protocol_diagnostic_1.DocumentDiagnosticRequest; } });
|
|
77
|
+
Object.defineProperty(exports, "WorkspaceDiagnosticRequest", { enumerable: true, get: function () { return protocol_diagnostic_1.WorkspaceDiagnosticRequest; } });
|
|
78
|
+
Object.defineProperty(exports, "DiagnosticRefreshRequest", { enumerable: true, get: function () { return protocol_diagnostic_1.DiagnosticRefreshRequest; } });
|
|
79
|
+
const protocol_notebook_1 = require("./protocol.notebook");
|
|
80
|
+
Object.defineProperty(exports, "NotebookCellKind", { enumerable: true, get: function () { return protocol_notebook_1.NotebookCellKind; } });
|
|
81
|
+
Object.defineProperty(exports, "ExecutionSummary", { enumerable: true, get: function () { return protocol_notebook_1.ExecutionSummary; } });
|
|
82
|
+
Object.defineProperty(exports, "NotebookCell", { enumerable: true, get: function () { return protocol_notebook_1.NotebookCell; } });
|
|
83
|
+
Object.defineProperty(exports, "NotebookDocument", { enumerable: true, get: function () { return protocol_notebook_1.NotebookDocument; } });
|
|
84
|
+
Object.defineProperty(exports, "NotebookDocumentSyncRegistrationType", { enumerable: true, get: function () { return protocol_notebook_1.NotebookDocumentSyncRegistrationType; } });
|
|
85
|
+
Object.defineProperty(exports, "DidOpenNotebookDocumentNotification", { enumerable: true, get: function () { return protocol_notebook_1.DidOpenNotebookDocumentNotification; } });
|
|
86
|
+
Object.defineProperty(exports, "NotebookCellArrayChange", { enumerable: true, get: function () { return protocol_notebook_1.NotebookCellArrayChange; } });
|
|
87
|
+
Object.defineProperty(exports, "DidChangeNotebookDocumentNotification", { enumerable: true, get: function () { return protocol_notebook_1.DidChangeNotebookDocumentNotification; } });
|
|
88
|
+
Object.defineProperty(exports, "DidSaveNotebookDocumentNotification", { enumerable: true, get: function () { return protocol_notebook_1.DidSaveNotebookDocumentNotification; } });
|
|
89
|
+
Object.defineProperty(exports, "DidCloseNotebookDocumentNotification", { enumerable: true, get: function () { return protocol_notebook_1.DidCloseNotebookDocumentNotification; } });
|
|
60
90
|
// @ts-ignore: to avoid inlining LocationLink as dynamic import
|
|
61
91
|
let __noDynamicImport;
|
|
62
92
|
/**
|
|
63
93
|
* The TextDocumentFilter namespace provides helper functions to work with
|
|
64
94
|
* [TextDocumentFilter](#TextDocumentFilter) literals.
|
|
65
95
|
*
|
|
66
|
-
* @since 3.17.0
|
|
96
|
+
* @since 3.17.0
|
|
97
|
+
* @proposed
|
|
67
98
|
*/
|
|
68
99
|
var TextDocumentFilter;
|
|
69
100
|
(function (TextDocumentFilter) {
|
|
@@ -77,7 +108,8 @@ var TextDocumentFilter;
|
|
|
77
108
|
* The NotebookDocumentFilter namespace provides helper functions to work with
|
|
78
109
|
* [NotebookDocumentFilter](#NotebookDocumentFilter) literals.
|
|
79
110
|
*
|
|
80
|
-
* @since 3.17.0
|
|
111
|
+
* @since 3.17.0
|
|
112
|
+
* @proposed
|
|
81
113
|
*/
|
|
82
114
|
var NotebookDocumentFilter;
|
|
83
115
|
(function (NotebookDocumentFilter) {
|
|
@@ -91,13 +123,16 @@ var NotebookDocumentFilter;
|
|
|
91
123
|
* The NotebookCellTextDocumentFilter namespace provides helper functions to work with
|
|
92
124
|
* [NotebookCellTextDocumentFilter](#NotebookCellTextDocumentFilter) literals.
|
|
93
125
|
*
|
|
94
|
-
* @since 3.17.0
|
|
126
|
+
* @since 3.17.0
|
|
127
|
+
* @proposed
|
|
95
128
|
*/
|
|
96
129
|
var NotebookCellTextDocumentFilter;
|
|
97
130
|
(function (NotebookCellTextDocumentFilter) {
|
|
98
131
|
function is(value) {
|
|
99
132
|
const candidate = value;
|
|
100
|
-
return Is.objectLiteral(candidate)
|
|
133
|
+
return Is.objectLiteral(candidate)
|
|
134
|
+
&& (Is.string(candidate.notebook) || NotebookDocumentFilter.is(candidate.notebook))
|
|
135
|
+
&& (candidate.language === undefined || Is.string(candidate.language));
|
|
101
136
|
}
|
|
102
137
|
NotebookCellTextDocumentFilter.is = is;
|
|
103
138
|
})(NotebookCellTextDocumentFilter = exports.NotebookCellTextDocumentFilter || (exports.NotebookCellTextDocumentFilter = {}));
|
|
@@ -175,6 +210,34 @@ var FailureHandlingKind;
|
|
|
175
210
|
*/
|
|
176
211
|
FailureHandlingKind.Undo = 'undo';
|
|
177
212
|
})(FailureHandlingKind = exports.FailureHandlingKind || (exports.FailureHandlingKind = {}));
|
|
213
|
+
/**
|
|
214
|
+
* A set of predefined position encoding kinds.
|
|
215
|
+
*
|
|
216
|
+
* @since 3.17.0
|
|
217
|
+
* @proposed
|
|
218
|
+
*/
|
|
219
|
+
var PositionEncodingKind;
|
|
220
|
+
(function (PositionEncodingKind) {
|
|
221
|
+
/**
|
|
222
|
+
* Character offsets count UTF-8 code units.
|
|
223
|
+
*/
|
|
224
|
+
PositionEncodingKind.UTF8 = 'utf-8';
|
|
225
|
+
/**
|
|
226
|
+
* Character offsets count UTF-16 code units.
|
|
227
|
+
*
|
|
228
|
+
* This is the default and must always be supported
|
|
229
|
+
* by servers
|
|
230
|
+
*/
|
|
231
|
+
PositionEncodingKind.UTF16 = 'utf-16';
|
|
232
|
+
/**
|
|
233
|
+
* Character offsets count UTF-32 code units.
|
|
234
|
+
*
|
|
235
|
+
* Implementation note: these are the same as Unicode code points,
|
|
236
|
+
* so this `PositionEncodingKind` may also be used for an
|
|
237
|
+
* encoding-agnostic representation of character offsets.
|
|
238
|
+
*/
|
|
239
|
+
PositionEncodingKind.UTF32 = 'utf-32';
|
|
240
|
+
})(PositionEncodingKind = exports.PositionEncodingKind || (exports.PositionEncodingKind = {}));
|
|
178
241
|
/**
|
|
179
242
|
* The StaticRegistrationOptions namespace provides helper functions to work with
|
|
180
243
|
* [StaticRegistrationOptions](#StaticRegistrationOptions) literals.
|
|
@@ -228,17 +291,18 @@ var InitializeRequest;
|
|
|
228
291
|
InitializeRequest.type = new messages_1.ProtocolRequestType('initialize');
|
|
229
292
|
})(InitializeRequest = exports.InitializeRequest || (exports.InitializeRequest = {}));
|
|
230
293
|
/**
|
|
231
|
-
* Known error codes for an `
|
|
294
|
+
* Known error codes for an `InitializeErrorCodes`;
|
|
232
295
|
*/
|
|
233
|
-
var
|
|
234
|
-
(function (
|
|
296
|
+
var InitializeErrorCodes;
|
|
297
|
+
(function (InitializeErrorCodes) {
|
|
235
298
|
/**
|
|
236
299
|
* If the protocol version provided by the client can't be handled by the server.
|
|
300
|
+
*
|
|
237
301
|
* @deprecated This initialize error got replaced by client capabilities. There is
|
|
238
302
|
* no version handshake in version 3.0x
|
|
239
303
|
*/
|
|
240
|
-
|
|
241
|
-
})(
|
|
304
|
+
InitializeErrorCodes.unknownProtocolVersion = 1;
|
|
305
|
+
})(InitializeErrorCodes = exports.InitializeErrorCodes || (exports.InitializeErrorCodes = {}));
|
|
242
306
|
/**
|
|
243
307
|
* The initialized notification is sent from the client to the
|
|
244
308
|
* server after the client is fully initialized and the server
|
|
@@ -491,6 +555,14 @@ var FileChangeType;
|
|
|
491
555
|
*/
|
|
492
556
|
FileChangeType.Deleted = 3;
|
|
493
557
|
})(FileChangeType = exports.FileChangeType || (exports.FileChangeType = {}));
|
|
558
|
+
var RelativePattern;
|
|
559
|
+
(function (RelativePattern) {
|
|
560
|
+
function is(value) {
|
|
561
|
+
const candidate = value;
|
|
562
|
+
return Is.objectLiteral(candidate) && (vscode_languageserver_types_1.URI.is(candidate.baseUri) || vscode_languageserver_types_1.WorkspaceFolder.is(candidate.baseUri)) && Is.string(candidate.pattern);
|
|
563
|
+
}
|
|
564
|
+
RelativePattern.is = is;
|
|
565
|
+
})(RelativePattern = exports.RelativePattern || (exports.RelativePattern = {}));
|
|
494
566
|
var WatchKind;
|
|
495
567
|
(function (WatchKind) {
|
|
496
568
|
/**
|
|
@@ -678,7 +750,8 @@ var WorkspaceSymbolRequest;
|
|
|
678
750
|
* A request to resolve the range inside the workspace
|
|
679
751
|
* symbol's location.
|
|
680
752
|
*
|
|
681
|
-
* @since 3.17.0
|
|
753
|
+
* @since 3.17.0
|
|
754
|
+
* @proposed
|
|
682
755
|
*/
|
|
683
756
|
var WorkspaceSymbolResolveRequest;
|
|
684
757
|
(function (WorkspaceSymbolResolveRequest) {
|
|
@@ -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
|
*
|
|
@@ -46,6 +46,6 @@ export interface LinkedEditingRanges {
|
|
|
46
46
|
*/
|
|
47
47
|
export declare namespace LinkedEditingRangeRequest {
|
|
48
48
|
const method: 'textDocument/linkedEditingRange';
|
|
49
|
-
const type: ProtocolRequestType<LinkedEditingRangeParams, LinkedEditingRanges | null, void,
|
|
49
|
+
const type: ProtocolRequestType<LinkedEditingRangeParams, LinkedEditingRanges | null, void, void, LinkedEditingRangeRegistrationOptions>;
|
|
50
50
|
type HandlerSignature = RequestHandler<LinkedEditingRangeParams, LinkedEditingRanges | null, void>;
|
|
51
51
|
}
|
|
@@ -1,52 +1,54 @@
|
|
|
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
|
*
|
|
6
6
|
* @since 3.16.0
|
|
7
7
|
*/
|
|
8
|
-
export declare
|
|
8
|
+
export declare namespace UniquenessLevel {
|
|
9
9
|
/**
|
|
10
10
|
* The moniker is only unique inside a document
|
|
11
11
|
*/
|
|
12
|
-
document = "document"
|
|
12
|
+
const document = "document";
|
|
13
13
|
/**
|
|
14
14
|
* The moniker is unique inside a project for which a dump got created
|
|
15
15
|
*/
|
|
16
|
-
project = "project"
|
|
16
|
+
const project = "project";
|
|
17
17
|
/**
|
|
18
18
|
* The moniker is unique inside the group to which a project belongs
|
|
19
19
|
*/
|
|
20
|
-
group = "group"
|
|
20
|
+
const group = "group";
|
|
21
21
|
/**
|
|
22
22
|
* The moniker is unique inside the moniker scheme.
|
|
23
23
|
*/
|
|
24
|
-
scheme = "scheme"
|
|
24
|
+
const scheme = "scheme";
|
|
25
25
|
/**
|
|
26
26
|
* The moniker is globally unique
|
|
27
27
|
*/
|
|
28
|
-
global = "global"
|
|
28
|
+
const global = "global";
|
|
29
29
|
}
|
|
30
|
+
export declare type UniquenessLevel = 'document' | 'project' | 'group' | 'scheme' | 'global';
|
|
30
31
|
/**
|
|
31
32
|
* The moniker kind.
|
|
32
33
|
*
|
|
33
34
|
* @since 3.16.0
|
|
34
35
|
*/
|
|
35
|
-
export declare
|
|
36
|
+
export declare namespace MonikerKind {
|
|
36
37
|
/**
|
|
37
38
|
* The moniker represent a symbol that is imported into a project
|
|
38
39
|
*/
|
|
39
|
-
import = "import"
|
|
40
|
+
const $import = "import";
|
|
40
41
|
/**
|
|
41
42
|
* The moniker represents a symbol that is exported from a project
|
|
42
43
|
*/
|
|
43
|
-
export = "export"
|
|
44
|
+
const $export = "export";
|
|
44
45
|
/**
|
|
45
46
|
* The moniker represents a symbol that is local to a project (e.g. a local
|
|
46
47
|
* variable of a function, a class not visible outside the project, ...)
|
|
47
48
|
*/
|
|
48
|
-
local = "local"
|
|
49
|
+
const local = "local";
|
|
49
50
|
}
|
|
51
|
+
export declare type MonikerKind = 'import' | 'export' | 'local';
|
|
50
52
|
/**
|
|
51
53
|
* Moniker definition to match LSIF 0.5 moniker definition.
|
|
52
54
|
*
|
|
@@ -16,23 +16,23 @@ var UniquenessLevel;
|
|
|
16
16
|
/**
|
|
17
17
|
* The moniker is only unique inside a document
|
|
18
18
|
*/
|
|
19
|
-
UniquenessLevel
|
|
19
|
+
UniquenessLevel.document = 'document';
|
|
20
20
|
/**
|
|
21
21
|
* The moniker is unique inside a project for which a dump got created
|
|
22
22
|
*/
|
|
23
|
-
UniquenessLevel
|
|
23
|
+
UniquenessLevel.project = 'project';
|
|
24
24
|
/**
|
|
25
25
|
* The moniker is unique inside the group to which a project belongs
|
|
26
26
|
*/
|
|
27
|
-
UniquenessLevel
|
|
27
|
+
UniquenessLevel.group = 'group';
|
|
28
28
|
/**
|
|
29
29
|
* The moniker is unique inside the moniker scheme.
|
|
30
30
|
*/
|
|
31
|
-
UniquenessLevel
|
|
31
|
+
UniquenessLevel.scheme = 'scheme';
|
|
32
32
|
/**
|
|
33
33
|
* The moniker is globally unique
|
|
34
34
|
*/
|
|
35
|
-
UniquenessLevel
|
|
35
|
+
UniquenessLevel.global = 'global';
|
|
36
36
|
})(UniquenessLevel = exports.UniquenessLevel || (exports.UniquenessLevel = {}));
|
|
37
37
|
/**
|
|
38
38
|
* The moniker kind.
|
|
@@ -44,16 +44,16 @@ var MonikerKind;
|
|
|
44
44
|
/**
|
|
45
45
|
* The moniker represent a symbol that is imported into a project
|
|
46
46
|
*/
|
|
47
|
-
MonikerKind
|
|
47
|
+
MonikerKind.$import = 'import';
|
|
48
48
|
/**
|
|
49
49
|
* The moniker represents a symbol that is exported from a project
|
|
50
50
|
*/
|
|
51
|
-
MonikerKind
|
|
51
|
+
MonikerKind.$export = 'export';
|
|
52
52
|
/**
|
|
53
53
|
* The moniker represents a symbol that is local to a project (e.g. a local
|
|
54
54
|
* variable of a function, a class not visible outside the project, ...)
|
|
55
55
|
*/
|
|
56
|
-
MonikerKind
|
|
56
|
+
MonikerKind.local = 'local';
|
|
57
57
|
})(MonikerKind = exports.MonikerKind || (exports.MonikerKind = {}));
|
|
58
58
|
/**
|
|
59
59
|
* A request to get the moniker of a symbol at a given text document position.
|