vscode-languageserver-protocol 3.17.0-next.2 → 3.17.0-next.20
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/browser/main.js +1 -1
- package/lib/common/api.d.ts +31 -10
- package/lib/common/api.js +32 -7
- package/lib/common/connection.d.ts +45 -21
- package/lib/common/connection.js +1 -1
- package/lib/common/messages.js +0 -3
- package/lib/common/protocol.$.d.ts +8 -0
- package/lib/common/protocol.$.js +19 -0
- package/lib/common/protocol.callHierarchy.d.ts +1 -1
- package/lib/common/protocol.callHierarchy.js +1 -1
- package/lib/common/protocol.colorProvider.d.ts +1 -1
- package/lib/common/protocol.configuration.d.ts +5 -17
- package/lib/common/protocol.configuration.js +1 -0
- package/lib/common/protocol.d.ts +488 -70
- package/lib/common/protocol.declaration.d.ts +3 -3
- package/lib/common/protocol.declaration.js +2 -2
- package/lib/common/protocol.diagnostic.d.ts +364 -0
- package/lib/common/protocol.diagnostic.js +77 -0
- package/lib/common/protocol.fileOperations.d.ts +1 -1
- package/lib/common/protocol.foldingRange.d.ts +43 -27
- package/lib/common/protocol.foldingRange.js +1 -19
- package/lib/common/protocol.implementation.d.ts +3 -3
- 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 +137 -18
- 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/protocol.notebook.d.ts +402 -0
- package/lib/common/protocol.notebook.js +210 -0
- 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 +27 -2
- package/lib/common/protocol.typeDefinition.d.ts +2 -2
- package/lib/common/protocol.typeHierarchy.d.ts +89 -0
- package/lib/common/protocol.typeHierarchy.js +43 -0
- 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/lib/node/main.js +1 -1
- package/metaModel.schema.json +705 -0
- package/package.json +4 -4
- package/lib/common/proposed.diagnostic.d.ts +0 -46
- package/lib/common/proposed.diagnostic.js +0 -23
|
@@ -0,0 +1,115 @@
|
|
|
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
|
|
9
|
+
* @proposed
|
|
10
|
+
*/
|
|
11
|
+
export declare type InlayHintClientCapabilities = {
|
|
12
|
+
/**
|
|
13
|
+
* Whether inlay hints support dynamic registration.
|
|
14
|
+
*/
|
|
15
|
+
dynamicRegistration?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Indicates which properties a client can resolve lazily on a inlay
|
|
18
|
+
* hint.
|
|
19
|
+
*/
|
|
20
|
+
resolveSupport?: {
|
|
21
|
+
/**
|
|
22
|
+
* The properties that a client can resolve lazily.
|
|
23
|
+
*/
|
|
24
|
+
properties: string[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Client workspace capabilities specific to inlay hints.
|
|
29
|
+
*
|
|
30
|
+
* @since 3.17.0
|
|
31
|
+
* @proposed
|
|
32
|
+
*/
|
|
33
|
+
export declare type InlayHintWorkspaceClientCapabilities = {
|
|
34
|
+
/**
|
|
35
|
+
* Whether the client implementation supports a refresh request sent from
|
|
36
|
+
* the server to the client.
|
|
37
|
+
*
|
|
38
|
+
* Note that this event is global and will force the client to refresh all
|
|
39
|
+
* inlay hints currently shown. It should be used with absolute care and
|
|
40
|
+
* is useful for situation where a server for example detects a project wide
|
|
41
|
+
* change that requires such a calculation.
|
|
42
|
+
*/
|
|
43
|
+
refreshSupport?: boolean;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Inlay hint options used during static registration.
|
|
47
|
+
*
|
|
48
|
+
* @since 3.17.0
|
|
49
|
+
* @proposed
|
|
50
|
+
*/
|
|
51
|
+
export declare type InlayHintOptions = WorkDoneProgressOptions & {
|
|
52
|
+
/**
|
|
53
|
+
* The server provides support to resolve additional
|
|
54
|
+
* information for an inlay hint item.
|
|
55
|
+
*/
|
|
56
|
+
resolveProvider?: boolean;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Inlay hint options used during static or dynamic registration.
|
|
60
|
+
*
|
|
61
|
+
* @since 3.17.0
|
|
62
|
+
* @proposed
|
|
63
|
+
*/
|
|
64
|
+
export declare type InlayHintRegistrationOptions = InlayHintOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions;
|
|
65
|
+
/**
|
|
66
|
+
* A parameter literal used in inlay hints requests.
|
|
67
|
+
*
|
|
68
|
+
* @since 3.17.0
|
|
69
|
+
* @proposed
|
|
70
|
+
*/
|
|
71
|
+
export declare type InlayHintParams = WorkDoneProgressParams & {
|
|
72
|
+
/**
|
|
73
|
+
* The text document.
|
|
74
|
+
*/
|
|
75
|
+
textDocument: TextDocumentIdentifier;
|
|
76
|
+
/**
|
|
77
|
+
* The document range for which inlay hints should be computed.
|
|
78
|
+
*/
|
|
79
|
+
range: Range;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* A request to provide inlay hints in a document. The request's parameter is of
|
|
83
|
+
* type [InlayHintsParams](#InlayHintsParams), the response is of type
|
|
84
|
+
* [InlayHint[]](#InlayHint[]) or a Thenable that resolves to such.
|
|
85
|
+
*
|
|
86
|
+
* @since 3.17.0
|
|
87
|
+
* @proposed
|
|
88
|
+
*/
|
|
89
|
+
export declare namespace InlayHintRequest {
|
|
90
|
+
const method: 'textDocument/inlayHint';
|
|
91
|
+
const type: ProtocolRequestType<InlayHintParams, InlayHint[] | null, InlayHint[], void, InlayHintRegistrationOptions>;
|
|
92
|
+
type HandlerSignature = RequestHandler<InlayHintParams, InlayHint[] | null, void>;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* A request to resolve additional properties for a inlay hint.
|
|
96
|
+
* The request's parameter is of type [InlayHint](#InlayHint), the response is
|
|
97
|
+
* of type [InlayHint](#InlayHint) or a Thenable that resolves to such.
|
|
98
|
+
*
|
|
99
|
+
* @since 3.17.0
|
|
100
|
+
* @proposed
|
|
101
|
+
*/
|
|
102
|
+
export declare namespace InlayHintResolveRequest {
|
|
103
|
+
const method: 'inlayHint/resolve';
|
|
104
|
+
const type: ProtocolRequestType<InlayHint, InlayHint, never, void, void>;
|
|
105
|
+
type HandlerSignature = RequestHandler<InlayHint, InlayHint, void>;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* @since 3.17.0
|
|
109
|
+
* @proposed
|
|
110
|
+
*/
|
|
111
|
+
export declare namespace InlayHintRefreshRequest {
|
|
112
|
+
const method: `workspace/inlayHint/refresh`;
|
|
113
|
+
const type: ProtocolRequestType0<void, void, void, void>;
|
|
114
|
+
type HandlerSignature = RequestHandler0<void, void>;
|
|
115
|
+
}
|
|
@@ -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 = void 0;
|
|
9
|
-
|
|
7
|
+
exports.WorkspaceSymbolRequest = exports.CodeActionResolveRequest = exports.CodeActionRequest = exports.DocumentSymbolRequest = exports.DocumentHighlightRequest = exports.ReferencesRequest = exports.DefinitionRequest = exports.SignatureHelpRequest = exports.SignatureHelpTriggerKind = exports.HoverRequest = exports.CompletionResolveRequest = exports.CompletionRequest = exports.CompletionTriggerKind = exports.PublishDiagnosticsNotification = exports.WatchKind = exports.RelativePattern = exports.FileChangeType = exports.DidChangeWatchedFilesNotification = exports.WillSaveTextDocumentWaitUntilRequest = exports.WillSaveTextDocumentNotification = exports.TextDocumentSaveReason = exports.DidSaveTextDocumentNotification = exports.DidCloseTextDocumentNotification = exports.DidChangeTextDocumentNotification = exports.TextDocumentContentChangeEvent = exports.DidOpenTextDocumentNotification = exports.TextDocumentSyncKind = exports.TelemetryEventNotification = exports.LogMessageNotification = exports.ShowMessageRequest = exports.ShowMessageNotification = exports.MessageType = exports.DidChangeConfigurationNotification = exports.ExitNotification = exports.ShutdownRequest = exports.InitializedNotification = exports.InitializeErrorCodes = exports.InitializeRequest = exports.WorkDoneProgressOptions = exports.TextDocumentRegistrationOptions = exports.StaticRegistrationOptions = exports.PositionEncodingKind = exports.FailureHandlingKind = exports.ResourceOperationKind = exports.UnregistrationRequest = exports.RegistrationRequest = exports.DocumentSelector = exports.NotebookCellTextDocumentFilter = exports.NotebookDocumentFilter = exports.TextDocumentFilter = void 0;
|
|
8
|
+
exports.TypeHierarchySubtypesRequest = exports.TypeHierarchyPrepareRequest = exports.MonikerRequest = exports.MonikerKind = exports.UniquenessLevel = exports.WillDeleteFilesRequest = exports.DidDeleteFilesNotification = exports.WillRenameFilesRequest = exports.DidRenameFilesNotification = exports.WillCreateFilesRequest = exports.DidCreateFilesNotification = exports.FileOperationPatternKind = exports.LinkedEditingRangeRequest = exports.ShowDocumentRequest = exports.SemanticTokensRegistrationType = exports.SemanticTokensRefreshRequest = exports.SemanticTokensRangeRequest = exports.SemanticTokensDeltaRequest = exports.SemanticTokensRequest = exports.TokenFormat = exports.CallHierarchyPrepareRequest = exports.CallHierarchyOutgoingCallsRequest = exports.CallHierarchyIncomingCallsRequest = exports.WorkDoneProgressCancelNotification = exports.WorkDoneProgressCreateRequest = exports.WorkDoneProgress = exports.SelectionRangeRequest = exports.DeclarationRequest = exports.FoldingRangeRequest = exports.ColorPresentationRequest = exports.DocumentColorRequest = exports.ConfigurationRequest = exports.DidChangeWorkspaceFoldersNotification = exports.WorkspaceFoldersRequest = exports.TypeDefinitionRequest = exports.ImplementationRequest = exports.ApplyWorkspaceEditRequest = exports.ExecuteCommandRequest = exports.PrepareRenameRequest = exports.RenameRequest = exports.PrepareSupportDefaultBehavior = exports.DocumentOnTypeFormattingRequest = exports.DocumentRangeFormattingRequest = exports.DocumentFormattingRequest = exports.DocumentLinkResolveRequest = exports.DocumentLinkRequest = exports.CodeLensRefreshRequest = exports.CodeLensResolveRequest = exports.CodeLensRequest = exports.WorkspaceSymbolResolveRequest = void 0;
|
|
9
|
+
exports.DidCloseNotebookDocumentNotification = exports.DidSaveNotebookDocumentNotification = exports.DidChangeNotebookDocumentNotification = exports.NotebookCellArrayChange = exports.DidOpenNotebookDocumentNotification = exports.NotebookDocumentSyncRegistrationType = exports.NotebookDocument = exports.NotebookCell = exports.ExecutionSummary = exports.NotebookCellKind = exports.DiagnosticRefreshRequest = exports.WorkspaceDiagnosticRequest = exports.DocumentDiagnosticRequest = exports.DocumentDiagnosticReportKind = exports.DiagnosticServerCancellationData = exports.InlayHintRefreshRequest = exports.InlayHintResolveRequest = exports.InlayHintRequest = exports.InlineValueRefreshRequest = exports.InlineValueRequest = exports.TypeHierarchySupertypesRequest = void 0;
|
|
10
10
|
const messages_1 = require("./messages");
|
|
11
|
+
const vscode_languageserver_types_1 = require("vscode-languageserver-types");
|
|
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,20 +59,83 @@ 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
|
-
* The
|
|
64
|
-
* [
|
|
93
|
+
* The TextDocumentFilter namespace provides helper functions to work with
|
|
94
|
+
* [TextDocumentFilter](#TextDocumentFilter) literals.
|
|
95
|
+
*
|
|
96
|
+
* @since 3.17.0
|
|
97
|
+
* @proposed
|
|
65
98
|
*/
|
|
66
|
-
var
|
|
67
|
-
(function (
|
|
99
|
+
var TextDocumentFilter;
|
|
100
|
+
(function (TextDocumentFilter) {
|
|
68
101
|
function is(value) {
|
|
69
102
|
const candidate = value;
|
|
70
103
|
return Is.string(candidate.language) || Is.string(candidate.scheme) || Is.string(candidate.pattern);
|
|
71
104
|
}
|
|
72
|
-
|
|
73
|
-
})(
|
|
105
|
+
TextDocumentFilter.is = is;
|
|
106
|
+
})(TextDocumentFilter = exports.TextDocumentFilter || (exports.TextDocumentFilter = {}));
|
|
107
|
+
/**
|
|
108
|
+
* The NotebookDocumentFilter namespace provides helper functions to work with
|
|
109
|
+
* [NotebookDocumentFilter](#NotebookDocumentFilter) literals.
|
|
110
|
+
*
|
|
111
|
+
* @since 3.17.0
|
|
112
|
+
* @proposed
|
|
113
|
+
*/
|
|
114
|
+
var NotebookDocumentFilter;
|
|
115
|
+
(function (NotebookDocumentFilter) {
|
|
116
|
+
function is(value) {
|
|
117
|
+
const candidate = value;
|
|
118
|
+
return Is.objectLiteral(candidate) && (Is.string(candidate.notebookType) || Is.string(candidate.scheme) || Is.string(candidate.pattern));
|
|
119
|
+
}
|
|
120
|
+
NotebookDocumentFilter.is = is;
|
|
121
|
+
})(NotebookDocumentFilter = exports.NotebookDocumentFilter || (exports.NotebookDocumentFilter = {}));
|
|
122
|
+
/**
|
|
123
|
+
* The NotebookCellTextDocumentFilter namespace provides helper functions to work with
|
|
124
|
+
* [NotebookCellTextDocumentFilter](#NotebookCellTextDocumentFilter) literals.
|
|
125
|
+
*
|
|
126
|
+
* @since 3.17.0
|
|
127
|
+
* @proposed
|
|
128
|
+
*/
|
|
129
|
+
var NotebookCellTextDocumentFilter;
|
|
130
|
+
(function (NotebookCellTextDocumentFilter) {
|
|
131
|
+
function is(value) {
|
|
132
|
+
const candidate = value;
|
|
133
|
+
return Is.objectLiteral(candidate)
|
|
134
|
+
&& (Is.string(candidate.notebook) || NotebookDocumentFilter.is(candidate.notebook))
|
|
135
|
+
&& (candidate.language === undefined || Is.string(candidate.language));
|
|
136
|
+
}
|
|
137
|
+
NotebookCellTextDocumentFilter.is = is;
|
|
138
|
+
})(NotebookCellTextDocumentFilter = exports.NotebookCellTextDocumentFilter || (exports.NotebookCellTextDocumentFilter = {}));
|
|
74
139
|
/**
|
|
75
140
|
* The DocumentSelector namespace provides helper functions to work with
|
|
76
141
|
* [DocumentSelector](#DocumentSelector)s.
|
|
@@ -82,7 +147,7 @@ var DocumentSelector;
|
|
|
82
147
|
return false;
|
|
83
148
|
}
|
|
84
149
|
for (let elem of value) {
|
|
85
|
-
if (!Is.string(elem) && !
|
|
150
|
+
if (!Is.string(elem) && !TextDocumentFilter.is(elem) && !NotebookCellTextDocumentFilter.is(elem)) {
|
|
86
151
|
return false;
|
|
87
152
|
}
|
|
88
153
|
}
|
|
@@ -145,6 +210,34 @@ var FailureHandlingKind;
|
|
|
145
210
|
*/
|
|
146
211
|
FailureHandlingKind.Undo = 'undo';
|
|
147
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 = {}));
|
|
148
241
|
/**
|
|
149
242
|
* The StaticRegistrationOptions namespace provides helper functions to work with
|
|
150
243
|
* [StaticRegistrationOptions](#StaticRegistrationOptions) literals.
|
|
@@ -198,17 +291,18 @@ var InitializeRequest;
|
|
|
198
291
|
InitializeRequest.type = new messages_1.ProtocolRequestType('initialize');
|
|
199
292
|
})(InitializeRequest = exports.InitializeRequest || (exports.InitializeRequest = {}));
|
|
200
293
|
/**
|
|
201
|
-
* Known error codes for an `
|
|
294
|
+
* Known error codes for an `InitializeErrorCodes`;
|
|
202
295
|
*/
|
|
203
|
-
var
|
|
204
|
-
(function (
|
|
296
|
+
var InitializeErrorCodes;
|
|
297
|
+
(function (InitializeErrorCodes) {
|
|
205
298
|
/**
|
|
206
299
|
* If the protocol version provided by the client can't be handled by the server.
|
|
300
|
+
*
|
|
207
301
|
* @deprecated This initialize error got replaced by client capabilities. There is
|
|
208
302
|
* no version handshake in version 3.0x
|
|
209
303
|
*/
|
|
210
|
-
|
|
211
|
-
})(
|
|
304
|
+
InitializeErrorCodes.unknownProtocolVersion = 1;
|
|
305
|
+
})(InitializeErrorCodes = exports.InitializeErrorCodes || (exports.InitializeErrorCodes = {}));
|
|
212
306
|
/**
|
|
213
307
|
* The initialized notification is sent from the client to the
|
|
214
308
|
* server after the client is fully initialized and the server
|
|
@@ -461,6 +555,14 @@ var FileChangeType;
|
|
|
461
555
|
*/
|
|
462
556
|
FileChangeType.Deleted = 3;
|
|
463
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 = {}));
|
|
464
566
|
var WatchKind;
|
|
465
567
|
(function (WatchKind) {
|
|
466
568
|
/**
|
|
@@ -633,12 +735,29 @@ var CodeActionResolveRequest;
|
|
|
633
735
|
* by the [WorkspaceSymbolParams](#WorkspaceSymbolParams). The response is
|
|
634
736
|
* of type [SymbolInformation[]](#SymbolInformation) or a Thenable that
|
|
635
737
|
* resolves to such.
|
|
738
|
+
*
|
|
739
|
+
* @since 3.17.0 - support for WorkspaceSymbol in the returned data. Clients
|
|
740
|
+
* need to advertise support for WorkspaceSymbols via the client capability
|
|
741
|
+
* `workspace.symbol.resolveSupport`.
|
|
742
|
+
*
|
|
636
743
|
*/
|
|
637
744
|
var WorkspaceSymbolRequest;
|
|
638
745
|
(function (WorkspaceSymbolRequest) {
|
|
639
746
|
WorkspaceSymbolRequest.method = 'workspace/symbol';
|
|
640
747
|
WorkspaceSymbolRequest.type = new messages_1.ProtocolRequestType(WorkspaceSymbolRequest.method);
|
|
641
748
|
})(WorkspaceSymbolRequest = exports.WorkspaceSymbolRequest || (exports.WorkspaceSymbolRequest = {}));
|
|
749
|
+
/**
|
|
750
|
+
* A request to resolve the range inside the workspace
|
|
751
|
+
* symbol's location.
|
|
752
|
+
*
|
|
753
|
+
* @since 3.17.0
|
|
754
|
+
* @proposed
|
|
755
|
+
*/
|
|
756
|
+
var WorkspaceSymbolResolveRequest;
|
|
757
|
+
(function (WorkspaceSymbolResolveRequest) {
|
|
758
|
+
WorkspaceSymbolResolveRequest.method = 'workspaceSymbol/resolve';
|
|
759
|
+
WorkspaceSymbolResolveRequest.type = new messages_1.ProtocolRequestType(WorkspaceSymbolResolveRequest.method);
|
|
760
|
+
})(WorkspaceSymbolResolveRequest = exports.WorkspaceSymbolResolveRequest || (exports.WorkspaceSymbolResolveRequest = {}));
|
|
642
761
|
/**
|
|
643
762
|
* A request to provide code lens for the given text document.
|
|
644
763
|
*/
|
|
@@ -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.
|