vscode-languageserver-protocol 3.16.0-next.8 → 3.17.0-next.10
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 +80 -17
- package/lib/common/api.js +44 -8
- package/lib/common/connection.d.ts +36 -23
- package/lib/common/connection.js +1 -1
- package/lib/common/messages.d.ts +35 -6
- package/lib/common/messages.js +13 -7
- package/lib/common/proposed.diagnostic.d.ts +324 -0
- package/lib/common/proposed.diagnostic.js +72 -0
- package/lib/common/proposed.inlineValue.d.ts +86 -0
- package/lib/common/proposed.inlineValue.js +29 -0
- package/lib/common/proposed.typeHierarchy.d.ts +83 -0
- package/lib/common/proposed.typeHierarchy.js +40 -0
- package/lib/common/protocol.callHierarchy.js +1 -1
- package/lib/common/protocol.colorProvider.d.ts +1 -3
- package/lib/common/protocol.colorProvider.js +0 -3
- package/lib/common/protocol.configuration.d.ts +4 -3
- package/lib/common/protocol.d.ts +470 -77
- package/lib/common/protocol.declaration.d.ts +2 -4
- package/lib/common/protocol.declaration.js +0 -3
- package/lib/common/protocol.fileOperations.d.ts +293 -0
- package/lib/common/protocol.fileOperations.js +92 -0
- package/lib/common/protocol.foldingRange.d.ts +3 -32
- package/lib/common/protocol.foldingRange.js +0 -3
- package/lib/common/protocol.implementation.d.ts +2 -4
- package/lib/common/protocol.implementation.js +0 -3
- package/lib/common/protocol.js +65 -31
- package/lib/common/protocol.linkedEditingRange.d.ts +51 -0
- package/lib/common/protocol.linkedEditingRange.js +19 -0
- package/lib/common/{protocol.moniker.proposed.d.ts → protocol.moniker.d.ts} +11 -14
- package/lib/common/{protocol.moniker.proposed.js → protocol.moniker.js} +1 -1
- package/lib/common/protocol.progress.d.ts +6 -4
- package/lib/common/protocol.progress.js +4 -0
- package/lib/common/protocol.selectionRange.d.ts +1 -3
- package/lib/common/protocol.selectionRange.js +0 -3
- package/lib/common/protocol.semanticTokens.d.ts +75 -135
- package/lib/common/protocol.semanticTokens.js +10 -69
- package/lib/common/protocol.showDocument.d.ts +71 -0
- package/lib/common/protocol.showDocument.js +22 -0
- package/lib/common/protocol.typeDefinition.d.ts +2 -4
- package/lib/common/protocol.typeDefinition.js +0 -3
- package/lib/common/protocol.workspaceFolders.d.ts +1 -1
- package/lib/node/main.js +1 -1
- package/package.json +6 -5
package/lib/common/protocol.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
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
|
-
|
|
9
|
-
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
7
|
+
exports.CodeLensRefreshRequest = exports.CodeLensResolveRequest = 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.DocumentFilter = 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 = void 0;
|
|
10
9
|
const messages_1 = require("./messages");
|
|
10
|
+
const Is = require("./utils/is");
|
|
11
11
|
const protocol_implementation_1 = require("./protocol.implementation");
|
|
12
12
|
Object.defineProperty(exports, "ImplementationRequest", { enumerable: true, get: function () { return protocol_implementation_1.ImplementationRequest; } });
|
|
13
13
|
const protocol_typeDefinition_1 = require("./protocol.typeDefinition");
|
|
@@ -35,14 +35,28 @@ Object.defineProperty(exports, "CallHierarchyIncomingCallsRequest", { enumerable
|
|
|
35
35
|
Object.defineProperty(exports, "CallHierarchyOutgoingCallsRequest", { enumerable: true, get: function () { return protocol_callHierarchy_1.CallHierarchyOutgoingCallsRequest; } });
|
|
36
36
|
Object.defineProperty(exports, "CallHierarchyPrepareRequest", { enumerable: true, get: function () { return protocol_callHierarchy_1.CallHierarchyPrepareRequest; } });
|
|
37
37
|
const protocol_semanticTokens_1 = require("./protocol.semanticTokens");
|
|
38
|
-
Object.defineProperty(exports, "SemanticTokenTypes", { enumerable: true, get: function () { return protocol_semanticTokens_1.SemanticTokenTypes; } });
|
|
39
|
-
Object.defineProperty(exports, "SemanticTokenModifiers", { enumerable: true, get: function () { return protocol_semanticTokens_1.SemanticTokenModifiers; } });
|
|
40
|
-
Object.defineProperty(exports, "SemanticTokens", { enumerable: true, get: function () { return protocol_semanticTokens_1.SemanticTokens; } });
|
|
41
38
|
Object.defineProperty(exports, "TokenFormat", { enumerable: true, get: function () { return protocol_semanticTokens_1.TokenFormat; } });
|
|
42
39
|
Object.defineProperty(exports, "SemanticTokensRequest", { enumerable: true, get: function () { return protocol_semanticTokens_1.SemanticTokensRequest; } });
|
|
43
40
|
Object.defineProperty(exports, "SemanticTokensDeltaRequest", { enumerable: true, get: function () { return protocol_semanticTokens_1.SemanticTokensDeltaRequest; } });
|
|
44
41
|
Object.defineProperty(exports, "SemanticTokensRangeRequest", { enumerable: true, get: function () { return protocol_semanticTokens_1.SemanticTokensRangeRequest; } });
|
|
45
42
|
Object.defineProperty(exports, "SemanticTokensRefreshRequest", { enumerable: true, get: function () { return protocol_semanticTokens_1.SemanticTokensRefreshRequest; } });
|
|
43
|
+
Object.defineProperty(exports, "SemanticTokensRegistrationType", { enumerable: true, get: function () { return protocol_semanticTokens_1.SemanticTokensRegistrationType; } });
|
|
44
|
+
const protocol_showDocument_1 = require("./protocol.showDocument");
|
|
45
|
+
Object.defineProperty(exports, "ShowDocumentRequest", { enumerable: true, get: function () { return protocol_showDocument_1.ShowDocumentRequest; } });
|
|
46
|
+
const protocol_linkedEditingRange_1 = require("./protocol.linkedEditingRange");
|
|
47
|
+
Object.defineProperty(exports, "LinkedEditingRangeRequest", { enumerable: true, get: function () { return protocol_linkedEditingRange_1.LinkedEditingRangeRequest; } });
|
|
48
|
+
const protocol_fileOperations_1 = require("./protocol.fileOperations");
|
|
49
|
+
Object.defineProperty(exports, "FileOperationPatternKind", { enumerable: true, get: function () { return protocol_fileOperations_1.FileOperationPatternKind; } });
|
|
50
|
+
Object.defineProperty(exports, "DidCreateFilesNotification", { enumerable: true, get: function () { return protocol_fileOperations_1.DidCreateFilesNotification; } });
|
|
51
|
+
Object.defineProperty(exports, "WillCreateFilesRequest", { enumerable: true, get: function () { return protocol_fileOperations_1.WillCreateFilesRequest; } });
|
|
52
|
+
Object.defineProperty(exports, "DidRenameFilesNotification", { enumerable: true, get: function () { return protocol_fileOperations_1.DidRenameFilesNotification; } });
|
|
53
|
+
Object.defineProperty(exports, "WillRenameFilesRequest", { enumerable: true, get: function () { return protocol_fileOperations_1.WillRenameFilesRequest; } });
|
|
54
|
+
Object.defineProperty(exports, "DidDeleteFilesNotification", { enumerable: true, get: function () { return protocol_fileOperations_1.DidDeleteFilesNotification; } });
|
|
55
|
+
Object.defineProperty(exports, "WillDeleteFilesRequest", { enumerable: true, get: function () { return protocol_fileOperations_1.WillDeleteFilesRequest; } });
|
|
56
|
+
const protocol_moniker_1 = require("./protocol.moniker");
|
|
57
|
+
Object.defineProperty(exports, "UniquenessLevel", { enumerable: true, get: function () { return protocol_moniker_1.UniquenessLevel; } });
|
|
58
|
+
Object.defineProperty(exports, "MonikerKind", { enumerable: true, get: function () { return protocol_moniker_1.MonikerKind; } });
|
|
59
|
+
Object.defineProperty(exports, "MonikerRequest", { enumerable: true, get: function () { return protocol_moniker_1.MonikerRequest; } });
|
|
46
60
|
// @ts-ignore: to avoid inlining LocationLink as dynamic import
|
|
47
61
|
let __noDynamicImport;
|
|
48
62
|
/**
|
|
@@ -122,7 +136,7 @@ var FailureHandlingKind;
|
|
|
122
136
|
/**
|
|
123
137
|
* If the workspace edit contains only textual file changes they are executed transactional.
|
|
124
138
|
* If resource changes (create, rename or delete file) are part of the change the failure
|
|
125
|
-
* handling
|
|
139
|
+
* handling strategy is abort.
|
|
126
140
|
*/
|
|
127
141
|
FailureHandlingKind.TextOnlyTransactional = 'textOnlyTransactional';
|
|
128
142
|
/**
|
|
@@ -196,7 +210,7 @@ var InitializeError;
|
|
|
196
210
|
InitializeError.unknownProtocolVersion = 1;
|
|
197
211
|
})(InitializeError = exports.InitializeError || (exports.InitializeError = {}));
|
|
198
212
|
/**
|
|
199
|
-
* The
|
|
213
|
+
* The initialized notification is sent from the client to the
|
|
200
214
|
* server after the client is fully initialized and the server
|
|
201
215
|
* is allowed to send requests from the server to the client.
|
|
202
216
|
*/
|
|
@@ -329,7 +343,7 @@ var DidOpenTextDocumentNotification;
|
|
|
329
343
|
var TextDocumentContentChangeEvent;
|
|
330
344
|
(function (TextDocumentContentChangeEvent) {
|
|
331
345
|
/**
|
|
332
|
-
* Checks whether the information
|
|
346
|
+
* Checks whether the information describes a delta event.
|
|
333
347
|
*/
|
|
334
348
|
function isIncremental(event) {
|
|
335
349
|
let candidate = event;
|
|
@@ -339,7 +353,7 @@ var TextDocumentContentChangeEvent;
|
|
|
339
353
|
}
|
|
340
354
|
TextDocumentContentChangeEvent.isIncremental = isIncremental;
|
|
341
355
|
/**
|
|
342
|
-
* Checks whether the information
|
|
356
|
+
* Checks whether the information describes a full replacement event.
|
|
343
357
|
*/
|
|
344
358
|
function isFull(event) {
|
|
345
359
|
let candidate = event;
|
|
@@ -505,8 +519,6 @@ var CompletionRequest;
|
|
|
505
519
|
(function (CompletionRequest) {
|
|
506
520
|
CompletionRequest.method = 'textDocument/completion';
|
|
507
521
|
CompletionRequest.type = new messages_1.ProtocolRequestType(CompletionRequest.method);
|
|
508
|
-
/** @deprecated Use CompletionRequest.type */
|
|
509
|
-
CompletionRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
510
522
|
})(CompletionRequest = exports.CompletionRequest || (exports.CompletionRequest = {}));
|
|
511
523
|
/**
|
|
512
524
|
* Request to resolve additional information for a given completion item.The request's
|
|
@@ -564,8 +576,6 @@ var DefinitionRequest;
|
|
|
564
576
|
(function (DefinitionRequest) {
|
|
565
577
|
DefinitionRequest.method = 'textDocument/definition';
|
|
566
578
|
DefinitionRequest.type = new messages_1.ProtocolRequestType(DefinitionRequest.method);
|
|
567
|
-
/** @deprecated Use DefinitionRequest.type */
|
|
568
|
-
DefinitionRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
569
579
|
})(DefinitionRequest = exports.DefinitionRequest || (exports.DefinitionRequest = {}));
|
|
570
580
|
/**
|
|
571
581
|
* A request to resolve project-wide references for the symbol denoted
|
|
@@ -577,8 +587,6 @@ var ReferencesRequest;
|
|
|
577
587
|
(function (ReferencesRequest) {
|
|
578
588
|
ReferencesRequest.method = 'textDocument/references';
|
|
579
589
|
ReferencesRequest.type = new messages_1.ProtocolRequestType(ReferencesRequest.method);
|
|
580
|
-
/** @deprecated Use ReferencesRequest.type */
|
|
581
|
-
ReferencesRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
582
590
|
})(ReferencesRequest = exports.ReferencesRequest || (exports.ReferencesRequest = {}));
|
|
583
591
|
/**
|
|
584
592
|
* Request to resolve a [DocumentHighlight](#DocumentHighlight) for a given
|
|
@@ -590,8 +598,6 @@ var DocumentHighlightRequest;
|
|
|
590
598
|
(function (DocumentHighlightRequest) {
|
|
591
599
|
DocumentHighlightRequest.method = 'textDocument/documentHighlight';
|
|
592
600
|
DocumentHighlightRequest.type = new messages_1.ProtocolRequestType(DocumentHighlightRequest.method);
|
|
593
|
-
/** @deprecated Use DocumentHighlightRequest.type */
|
|
594
|
-
DocumentHighlightRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
595
601
|
})(DocumentHighlightRequest = exports.DocumentHighlightRequest || (exports.DocumentHighlightRequest = {}));
|
|
596
602
|
/**
|
|
597
603
|
* A request to list all symbols found in a given text document. The request's
|
|
@@ -603,8 +609,6 @@ var DocumentSymbolRequest;
|
|
|
603
609
|
(function (DocumentSymbolRequest) {
|
|
604
610
|
DocumentSymbolRequest.method = 'textDocument/documentSymbol';
|
|
605
611
|
DocumentSymbolRequest.type = new messages_1.ProtocolRequestType(DocumentSymbolRequest.method);
|
|
606
|
-
/** @deprecated Use DocumentSymbolRequest.type */
|
|
607
|
-
DocumentSymbolRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
608
612
|
})(DocumentSymbolRequest = exports.DocumentSymbolRequest || (exports.DocumentSymbolRequest = {}));
|
|
609
613
|
/**
|
|
610
614
|
* A request to provide commands for the given text document and range.
|
|
@@ -613,8 +617,6 @@ var CodeActionRequest;
|
|
|
613
617
|
(function (CodeActionRequest) {
|
|
614
618
|
CodeActionRequest.method = 'textDocument/codeAction';
|
|
615
619
|
CodeActionRequest.type = new messages_1.ProtocolRequestType(CodeActionRequest.method);
|
|
616
|
-
/** @deprecated Use CodeActionRequest.type */
|
|
617
|
-
CodeActionRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
618
620
|
})(CodeActionRequest = exports.CodeActionRequest || (exports.CodeActionRequest = {}));
|
|
619
621
|
/**
|
|
620
622
|
* Request to resolve additional information for a given code action.The request's
|
|
@@ -631,30 +633,54 @@ var CodeActionResolveRequest;
|
|
|
631
633
|
* by the [WorkspaceSymbolParams](#WorkspaceSymbolParams). The response is
|
|
632
634
|
* of type [SymbolInformation[]](#SymbolInformation) or a Thenable that
|
|
633
635
|
* resolves to such.
|
|
636
|
+
*
|
|
637
|
+
* @since 3.17.0 - support for WorkspaceSymbol in the returned data. Clients
|
|
638
|
+
* need to advertise support for WorkspaceSymbols via the client capability
|
|
639
|
+
* `workspace.symbol.resolveSupport`.
|
|
640
|
+
*
|
|
634
641
|
*/
|
|
635
642
|
var WorkspaceSymbolRequest;
|
|
636
643
|
(function (WorkspaceSymbolRequest) {
|
|
637
644
|
WorkspaceSymbolRequest.method = 'workspace/symbol';
|
|
638
645
|
WorkspaceSymbolRequest.type = new messages_1.ProtocolRequestType(WorkspaceSymbolRequest.method);
|
|
639
|
-
/** @deprecated Use WorkspaceSymbolRequest.type */
|
|
640
|
-
WorkspaceSymbolRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
641
646
|
})(WorkspaceSymbolRequest = exports.WorkspaceSymbolRequest || (exports.WorkspaceSymbolRequest = {}));
|
|
647
|
+
/**
|
|
648
|
+
* A request to resolve the range inside the workspace
|
|
649
|
+
* symbol's location.
|
|
650
|
+
*
|
|
651
|
+
* @since 3.17.0 - proposed state
|
|
652
|
+
*/
|
|
653
|
+
var WorkspaceSymbolResolveRequest;
|
|
654
|
+
(function (WorkspaceSymbolResolveRequest) {
|
|
655
|
+
WorkspaceSymbolResolveRequest.method = 'workspaceSymbol/resolve';
|
|
656
|
+
WorkspaceSymbolResolveRequest.type = new messages_1.ProtocolRequestType(WorkspaceSymbolResolveRequest.method);
|
|
657
|
+
})(WorkspaceSymbolResolveRequest = exports.WorkspaceSymbolResolveRequest || (exports.WorkspaceSymbolResolveRequest = {}));
|
|
642
658
|
/**
|
|
643
659
|
* A request to provide code lens for the given text document.
|
|
644
660
|
*/
|
|
645
661
|
var CodeLensRequest;
|
|
646
662
|
(function (CodeLensRequest) {
|
|
647
|
-
CodeLensRequest.
|
|
648
|
-
|
|
649
|
-
CodeLensRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
663
|
+
CodeLensRequest.method = 'textDocument/codeLens';
|
|
664
|
+
CodeLensRequest.type = new messages_1.ProtocolRequestType(CodeLensRequest.method);
|
|
650
665
|
})(CodeLensRequest = exports.CodeLensRequest || (exports.CodeLensRequest = {}));
|
|
651
666
|
/**
|
|
652
667
|
* A request to resolve a command for a given code lens.
|
|
653
668
|
*/
|
|
654
669
|
var CodeLensResolveRequest;
|
|
655
670
|
(function (CodeLensResolveRequest) {
|
|
656
|
-
CodeLensResolveRequest.
|
|
671
|
+
CodeLensResolveRequest.method = 'codeLens/resolve';
|
|
672
|
+
CodeLensResolveRequest.type = new messages_1.ProtocolRequestType(CodeLensResolveRequest.method);
|
|
657
673
|
})(CodeLensResolveRequest = exports.CodeLensResolveRequest || (exports.CodeLensResolveRequest = {}));
|
|
674
|
+
/**
|
|
675
|
+
* A request to refresh all code actions
|
|
676
|
+
*
|
|
677
|
+
* @since 3.16.0
|
|
678
|
+
*/
|
|
679
|
+
var CodeLensRefreshRequest;
|
|
680
|
+
(function (CodeLensRefreshRequest) {
|
|
681
|
+
CodeLensRefreshRequest.method = `workspace/codeLens/refresh`;
|
|
682
|
+
CodeLensRefreshRequest.type = new messages_1.ProtocolRequestType0(CodeLensRefreshRequest.method);
|
|
683
|
+
})(CodeLensRefreshRequest = exports.CodeLensRefreshRequest || (exports.CodeLensRefreshRequest = {}));
|
|
658
684
|
/**
|
|
659
685
|
* A request to provide document links
|
|
660
686
|
*/
|
|
@@ -662,8 +688,6 @@ var DocumentLinkRequest;
|
|
|
662
688
|
(function (DocumentLinkRequest) {
|
|
663
689
|
DocumentLinkRequest.method = 'textDocument/documentLink';
|
|
664
690
|
DocumentLinkRequest.type = new messages_1.ProtocolRequestType(DocumentLinkRequest.method);
|
|
665
|
-
/** @deprecated Use DocumentLinkRequest.type */
|
|
666
|
-
DocumentLinkRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
667
691
|
})(DocumentLinkRequest = exports.DocumentLinkRequest || (exports.DocumentLinkRequest = {}));
|
|
668
692
|
/**
|
|
669
693
|
* Request to resolve additional information for a given document link. The request's
|
|
@@ -672,7 +696,8 @@ var DocumentLinkRequest;
|
|
|
672
696
|
*/
|
|
673
697
|
var DocumentLinkResolveRequest;
|
|
674
698
|
(function (DocumentLinkResolveRequest) {
|
|
675
|
-
DocumentLinkResolveRequest.
|
|
699
|
+
DocumentLinkResolveRequest.method = 'documentLink/resolve';
|
|
700
|
+
DocumentLinkResolveRequest.type = new messages_1.ProtocolRequestType(DocumentLinkResolveRequest.method);
|
|
676
701
|
})(DocumentLinkResolveRequest = exports.DocumentLinkResolveRequest || (exports.DocumentLinkResolveRequest = {}));
|
|
677
702
|
/**
|
|
678
703
|
* A request to to format a whole document.
|
|
@@ -698,6 +723,15 @@ var DocumentOnTypeFormattingRequest;
|
|
|
698
723
|
DocumentOnTypeFormattingRequest.method = 'textDocument/onTypeFormatting';
|
|
699
724
|
DocumentOnTypeFormattingRequest.type = new messages_1.ProtocolRequestType(DocumentOnTypeFormattingRequest.method);
|
|
700
725
|
})(DocumentOnTypeFormattingRequest = exports.DocumentOnTypeFormattingRequest || (exports.DocumentOnTypeFormattingRequest = {}));
|
|
726
|
+
//---- Rename ----------------------------------------------
|
|
727
|
+
var PrepareSupportDefaultBehavior;
|
|
728
|
+
(function (PrepareSupportDefaultBehavior) {
|
|
729
|
+
/**
|
|
730
|
+
* The client's default behavior is to select the identifier
|
|
731
|
+
* according the to language's syntax rule.
|
|
732
|
+
*/
|
|
733
|
+
PrepareSupportDefaultBehavior.Identifier = 1;
|
|
734
|
+
})(PrepareSupportDefaultBehavior = exports.PrepareSupportDefaultBehavior || (exports.PrepareSupportDefaultBehavior = {}));
|
|
701
735
|
/**
|
|
702
736
|
* A request to rename a symbol.
|
|
703
737
|
*/
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
|
+
import { Range } from 'vscode-languageserver-types';
|
|
3
|
+
import { ProtocolRequestType } from './messages';
|
|
4
|
+
import { StaticRegistrationOptions, TextDocumentPositionParams, TextDocumentRegistrationOptions, WorkDoneProgressOptions, WorkDoneProgressParams } from './protocol';
|
|
5
|
+
/**
|
|
6
|
+
* Client capabilities for the linked editing range request.
|
|
7
|
+
*
|
|
8
|
+
* @since 3.16.0
|
|
9
|
+
*/
|
|
10
|
+
export interface LinkedEditingRangeClientCapabilities {
|
|
11
|
+
/**
|
|
12
|
+
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
13
|
+
* the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
|
14
|
+
* return value for the corresponding server capability as well.
|
|
15
|
+
*/
|
|
16
|
+
dynamicRegistration?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface LinkedEditingRangeParams extends TextDocumentPositionParams, WorkDoneProgressParams {
|
|
19
|
+
}
|
|
20
|
+
export interface LinkedEditingRangeOptions extends WorkDoneProgressOptions {
|
|
21
|
+
}
|
|
22
|
+
export interface LinkedEditingRangeRegistrationOptions extends TextDocumentRegistrationOptions, LinkedEditingRangeOptions, StaticRegistrationOptions {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The result of a linked editing range request.
|
|
26
|
+
*
|
|
27
|
+
* @since 3.16.0
|
|
28
|
+
*/
|
|
29
|
+
export interface LinkedEditingRanges {
|
|
30
|
+
/**
|
|
31
|
+
* A list of ranges that can be edited together. The ranges must have
|
|
32
|
+
* identical length and contain identical text content. The ranges cannot overlap.
|
|
33
|
+
*/
|
|
34
|
+
ranges: Range[];
|
|
35
|
+
/**
|
|
36
|
+
* An optional word pattern (regular expression) that describes valid contents for
|
|
37
|
+
* the given ranges. If no pattern is provided, the client configuration's word
|
|
38
|
+
* pattern will be used.
|
|
39
|
+
*/
|
|
40
|
+
wordPattern?: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A request to provide ranges that can be edited together.
|
|
44
|
+
*
|
|
45
|
+
* @since 3.16.0
|
|
46
|
+
*/
|
|
47
|
+
export declare namespace LinkedEditingRangeRequest {
|
|
48
|
+
const method: 'textDocument/linkedEditingRange';
|
|
49
|
+
const type: ProtocolRequestType<LinkedEditingRangeParams, LinkedEditingRanges | null, void, any, LinkedEditingRangeRegistrationOptions>;
|
|
50
|
+
type HandlerSignature = RequestHandler<LinkedEditingRangeParams, LinkedEditingRanges | null, void>;
|
|
51
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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.LinkedEditingRangeRequest = void 0;
|
|
8
|
+
const messages_1 = require("./messages");
|
|
9
|
+
/**
|
|
10
|
+
* A request to provide ranges that can be edited together.
|
|
11
|
+
*
|
|
12
|
+
* @since 3.16.0
|
|
13
|
+
*/
|
|
14
|
+
var LinkedEditingRangeRequest;
|
|
15
|
+
(function (LinkedEditingRangeRequest) {
|
|
16
|
+
LinkedEditingRangeRequest.method = 'textDocument/linkedEditingRange';
|
|
17
|
+
LinkedEditingRangeRequest.type = new messages_1.ProtocolRequestType(LinkedEditingRangeRequest.method);
|
|
18
|
+
})(LinkedEditingRangeRequest = exports.LinkedEditingRangeRequest || (exports.LinkedEditingRangeRequest = {}));
|
|
19
|
+
//# sourceMappingURL=protocol.linkedEditingRange.js.map
|
|
@@ -71,23 +71,20 @@ export interface Moniker {
|
|
|
71
71
|
*/
|
|
72
72
|
kind?: MonikerKind;
|
|
73
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Client capabilities specific to the moniker request.
|
|
76
|
+
*
|
|
77
|
+
* @since 3.16.0
|
|
78
|
+
*/
|
|
74
79
|
export interface MonikerClientCapabilities {
|
|
75
|
-
textDocument?: {
|
|
76
|
-
moniker?: {
|
|
77
|
-
/**
|
|
78
|
-
* Whether moniker supports dynamic registration. If this is set to `true`
|
|
79
|
-
* the client supports the new `MonikerRegistrationOptions` return value
|
|
80
|
-
* for the corresponding server capability as well.
|
|
81
|
-
*/
|
|
82
|
-
dynamicRegistration?: boolean;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
export interface MonikerServerCapabilities {
|
|
87
80
|
/**
|
|
88
|
-
* Whether
|
|
81
|
+
* Whether moniker supports dynamic registration. If this is set to `true`
|
|
82
|
+
* the client supports the new `MonikerRegistrationOptions` return value
|
|
83
|
+
* for the corresponding server capability as well.
|
|
89
84
|
*/
|
|
90
|
-
|
|
85
|
+
dynamicRegistration?: boolean;
|
|
86
|
+
}
|
|
87
|
+
export interface MonikerServerCapabilities {
|
|
91
88
|
}
|
|
92
89
|
export interface MonikerOptions extends WorkDoneProgressOptions {
|
|
93
90
|
}
|
|
@@ -65,4 +65,4 @@ var MonikerRequest;
|
|
|
65
65
|
MonikerRequest.method = 'textDocument/moniker';
|
|
66
66
|
MonikerRequest.type = new messages_1.ProtocolRequestType(MonikerRequest.method);
|
|
67
67
|
})(MonikerRequest = exports.MonikerRequest || (exports.MonikerRequest = {}));
|
|
68
|
-
//# sourceMappingURL=protocol.moniker.
|
|
68
|
+
//# sourceMappingURL=protocol.moniker.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { NotificationHandler, RequestHandler, ProgressType, ProgressToken } from 'vscode-jsonrpc';
|
|
2
|
+
import { uinteger } from 'vscode-languageserver-types';
|
|
2
3
|
import { ProtocolRequestType, ProtocolNotificationType } from './messages';
|
|
3
4
|
export interface WorkDoneProgressClientCapabilities {
|
|
4
5
|
/**
|
|
@@ -43,9 +44,9 @@ export interface WorkDoneProgressBegin {
|
|
|
43
44
|
* to ignore the `percentage` value in subsequent in report notifications.
|
|
44
45
|
*
|
|
45
46
|
* The value should be steadily rising. Clients are free to ignore values
|
|
46
|
-
* that are not following this rule.
|
|
47
|
+
* that are not following this rule. The value range is [0, 100].
|
|
47
48
|
*/
|
|
48
|
-
percentage?:
|
|
49
|
+
percentage?: uinteger;
|
|
49
50
|
}
|
|
50
51
|
export interface WorkDoneProgressReport {
|
|
51
52
|
kind: 'report';
|
|
@@ -70,9 +71,9 @@ export interface WorkDoneProgressReport {
|
|
|
70
71
|
* to ignore the `percentage` value in subsequent in report notifications.
|
|
71
72
|
*
|
|
72
73
|
* The value should be steadily rising. Clients are free to ignore values
|
|
73
|
-
* that are not following this rule.
|
|
74
|
+
* that are not following this rule. The value range is [0, 100]
|
|
74
75
|
*/
|
|
75
|
-
percentage?:
|
|
76
|
+
percentage?: uinteger;
|
|
76
77
|
}
|
|
77
78
|
export interface WorkDoneProgressEnd {
|
|
78
79
|
kind: 'end';
|
|
@@ -84,6 +85,7 @@ export interface WorkDoneProgressEnd {
|
|
|
84
85
|
}
|
|
85
86
|
export declare namespace WorkDoneProgress {
|
|
86
87
|
const type: ProgressType<WorkDoneProgressBegin | WorkDoneProgressReport | WorkDoneProgressEnd>;
|
|
88
|
+
function is(value: ProgressType<any>): value is typeof type;
|
|
87
89
|
}
|
|
88
90
|
export interface WorkDoneProgressCreateParams {
|
|
89
91
|
/**
|
|
@@ -10,6 +10,10 @@ const messages_1 = require("./messages");
|
|
|
10
10
|
var WorkDoneProgress;
|
|
11
11
|
(function (WorkDoneProgress) {
|
|
12
12
|
WorkDoneProgress.type = new vscode_jsonrpc_1.ProgressType();
|
|
13
|
+
function is(value) {
|
|
14
|
+
return value === WorkDoneProgress.type;
|
|
15
|
+
}
|
|
16
|
+
WorkDoneProgress.is = is;
|
|
13
17
|
})(WorkDoneProgress = exports.WorkDoneProgress || (exports.WorkDoneProgress = {}));
|
|
14
18
|
/**
|
|
15
19
|
* The `window/workDoneProgress/create` request is sent from the server to the client to initiate progress
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RequestHandler
|
|
1
|
+
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
2
|
import { TextDocumentIdentifier, Position, SelectionRange } from 'vscode-languageserver-types';
|
|
3
3
|
import { ProtocolRequestType } from './messages';
|
|
4
4
|
import { TextDocumentRegistrationOptions, WorkDoneProgressOptions, StaticRegistrationOptions, WorkDoneProgressParams, PartialResultParams } from './protocol';
|
|
@@ -36,7 +36,5 @@ export interface SelectionRangeParams extends WorkDoneProgressParams, PartialRes
|
|
|
36
36
|
export declare namespace SelectionRangeRequest {
|
|
37
37
|
const method: 'textDocument/selectionRange';
|
|
38
38
|
const type: ProtocolRequestType<SelectionRangeParams, SelectionRange[] | null, SelectionRange[], any, SelectionRangeRegistrationOptions>;
|
|
39
|
-
/** @deprecated Use SelectionRangeRequest.type */
|
|
40
|
-
const resultType: ProgressType<SelectionRange[]>;
|
|
41
39
|
type HandlerSignature = RequestHandler<SelectionRangeParams, SelectionRange[] | null, void>;
|
|
42
40
|
}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*--------------------------------------------------------------------------------------------*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.SelectionRangeRequest = void 0;
|
|
8
|
-
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
9
8
|
const messages_1 = require("./messages");
|
|
10
9
|
/**
|
|
11
10
|
* A request to provide selection ranges in a document. The request's
|
|
@@ -17,7 +16,5 @@ var SelectionRangeRequest;
|
|
|
17
16
|
(function (SelectionRangeRequest) {
|
|
18
17
|
SelectionRangeRequest.method = 'textDocument/selectionRange';
|
|
19
18
|
SelectionRangeRequest.type = new messages_1.ProtocolRequestType(SelectionRangeRequest.method);
|
|
20
|
-
/** @deprecated Use SelectionRangeRequest.type */
|
|
21
|
-
SelectionRangeRequest.resultType = new vscode_jsonrpc_1.ProgressType();
|
|
22
19
|
})(SelectionRangeRequest = exports.SelectionRangeRequest || (exports.SelectionRangeRequest = {}));
|
|
23
20
|
//# sourceMappingURL=protocol.selectionRange.js.map
|