vscode-languageserver-protocol 3.17.6-next.10 → 3.17.6-next.12
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/README.md +3 -3
- package/lib/browser/main.js +1 -2
- package/lib/common/connection.js +1 -2
- package/lib/common/protocol.d.ts +55 -5
- package/lib/common/protocol.diagnostic.js +17 -7
- package/lib/common/protocol.js +17 -7
- package/lib/common/protocol.notebook.js +17 -7
- package/lib/common/utils/is.js +9 -10
- package/lib/node/main.d.ts +0 -1
- package/lib/node/main.js +1 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# VSCode Language Server - Protocol Module
|
|
2
2
|
|
|
3
|
-
[](https://npmjs.org/package/vscode-
|
|
4
|
-
[](https://npmjs.org/package/vscode-
|
|
5
|
-
[](https://npmjs.org/package/vscode-languageserver-protocol)
|
|
4
|
+
[](https://npmjs.org/package/vscode-languageserver-protocol)
|
|
5
|
+
[](https://dev.azure.com/vscode/vscode-languageserver-node/_build/latest?definitionId=52&branchName=main)
|
|
6
6
|
|
|
7
7
|
This npm module is a tool independent implementation of the language server protocol and can be used in any type of node application. Please note that the protocol is versioned using the LSP specification version number. Since the protocol depends on the `vscode-jsonrpc` version a a breaking change on that dependencies might not be reflected in a major version change of this module. Changing the major version number in these cases was more confusing this it would result in a version mismatch between the protocol and the LSP specification.
|
|
8
8
|
|
package/lib/browser/main.js
CHANGED
|
@@ -18,11 +18,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.createProtocolConnection =
|
|
21
|
+
exports.createProtocolConnection = createProtocolConnection;
|
|
22
22
|
const browser_1 = require("vscode-jsonrpc/browser");
|
|
23
23
|
__exportStar(require("vscode-jsonrpc/browser"), exports);
|
|
24
24
|
__exportStar(require("../common/api"), exports);
|
|
25
25
|
function createProtocolConnection(reader, writer, logger, options) {
|
|
26
26
|
return (0, browser_1.createMessageConnection)(reader, writer, logger, options);
|
|
27
27
|
}
|
|
28
|
-
exports.createProtocolConnection = createProtocolConnection;
|
package/lib/common/connection.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
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.createProtocolConnection =
|
|
7
|
+
exports.createProtocolConnection = createProtocolConnection;
|
|
8
8
|
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
9
9
|
function createProtocolConnection(input, output, logger, options) {
|
|
10
10
|
if (vscode_jsonrpc_1.ConnectionStrategy.is(options)) {
|
|
@@ -12,4 +12,3 @@ function createProtocolConnection(input, output, logger, options) {
|
|
|
12
12
|
}
|
|
13
13
|
return (0, vscode_jsonrpc_1.createMessageConnection)(input, output, logger, options);
|
|
14
14
|
}
|
|
15
|
-
exports.createProtocolConnection = createProtocolConnection;
|
package/lib/common/protocol.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ProgressToken, RequestHandler, TraceValue } from 'vscode-jsonrpc';
|
|
2
2
|
import { MessageDirection, ProtocolRequestType, ProtocolRequestType0, ProtocolNotificationType, ProtocolNotificationType0 } from './messages';
|
|
3
|
-
import { Position, Range, Location, LocationLink, Diagnostic, Command, TextEdit, WorkspaceEdit, WorkspaceEditMetadata, DocumentUri, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, CompletionItem, CompletionList, Hover, SignatureHelp, Definition, ReferenceContext, DocumentHighlight, SymbolInformation, CodeLens, CodeActionContext, FormattingOptions, DocumentLink, MarkupKind, SymbolKind, CompletionItemKind, CodeAction, CodeActionKind, DocumentSymbol, CompletionItemTag, DiagnosticTag, SymbolTag, uinteger, integer, InsertTextMode, LSPAny, WorkspaceSymbol, URI, WorkspaceFolder } from 'vscode-languageserver-types';
|
|
3
|
+
import { Position, Range, Location, LocationLink, Diagnostic, Command, TextEdit, WorkspaceEdit, WorkspaceEditMetadata, DocumentUri, TextDocumentIdentifier, VersionedTextDocumentIdentifier, TextDocumentItem, CompletionItem, CompletionList, Hover, SignatureHelp, Definition, ReferenceContext, DocumentHighlight, SymbolInformation, CodeLens, CodeActionContext, FormattingOptions, DocumentLink, MarkupKind, SymbolKind, CompletionItemKind, CodeAction, CodeActionKind, DocumentSymbol, CompletionItemTag, DiagnosticTag, SymbolTag, uinteger, integer, InsertTextMode, LSPAny, WorkspaceSymbol, URI, WorkspaceFolder, CodeActionTag } from 'vscode-languageserver-types';
|
|
4
4
|
import { ImplementationRequest, ImplementationClientCapabilities, ImplementationOptions, ImplementationRegistrationOptions, ImplementationParams } from './protocol.implementation';
|
|
5
5
|
import { TypeDefinitionRequest, TypeDefinitionClientCapabilities, TypeDefinitionOptions, TypeDefinitionRegistrationOptions, TypeDefinitionParams } from './protocol.typeDefinition';
|
|
6
6
|
import { WorkspaceFoldersRequest, DidChangeWorkspaceFoldersNotification, DidChangeWorkspaceFoldersParams, WorkspaceFoldersChangeEvent, WorkspaceFoldersInitializeParams, WorkspaceFoldersServerCapabilities } from './protocol.workspaceFolder';
|
|
@@ -40,7 +40,9 @@ export type TextDocumentFilterLanguage = {
|
|
|
40
40
|
/**
|
|
41
41
|
* A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples.
|
|
42
42
|
*
|
|
43
|
-
* @since 3.18.0 - support for relative patterns.
|
|
43
|
+
* @since 3.18.0 - support for relative patterns. Whether clients support
|
|
44
|
+
* relative patterns depends on the client capability
|
|
45
|
+
* `textDocuments.filters.relativePatternSupport`.
|
|
44
46
|
*/
|
|
45
47
|
pattern?: GlobPattern;
|
|
46
48
|
};
|
|
@@ -61,7 +63,9 @@ export type TextDocumentFilterScheme = {
|
|
|
61
63
|
/**
|
|
62
64
|
* A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples.
|
|
63
65
|
*
|
|
64
|
-
* @since 3.18.0 - support for relative patterns.
|
|
66
|
+
* @since 3.18.0 - support for relative patterns. Whether clients support
|
|
67
|
+
* relative patterns depends on the client capability
|
|
68
|
+
* `textDocuments.filters.relativePatternSupport`.
|
|
65
69
|
*/
|
|
66
70
|
pattern?: GlobPattern;
|
|
67
71
|
};
|
|
@@ -82,7 +86,9 @@ export type TextDocumentFilterPattern = {
|
|
|
82
86
|
/**
|
|
83
87
|
* A glob pattern, like **/*.{ts,js}. See TextDocumentFilter for examples.
|
|
84
88
|
*
|
|
85
|
-
* @since 3.18.0 - support for relative patterns.
|
|
89
|
+
* @since 3.18.0 - support for relative patterns. Whether clients support
|
|
90
|
+
* relative patterns depends on the client capability
|
|
91
|
+
* `textDocuments.filters.relativePatternSupport`.
|
|
86
92
|
*/
|
|
87
93
|
pattern: GlobPattern;
|
|
88
94
|
};
|
|
@@ -223,7 +229,7 @@ export declare namespace NotebookCellTextDocumentFilter {
|
|
|
223
229
|
* A document filter describes a top level text document or
|
|
224
230
|
* a notebook cell document.
|
|
225
231
|
*
|
|
226
|
-
* @since 3.17.0 -
|
|
232
|
+
* @since 3.17.0 - support for NotebookCellTextDocumentFilter.
|
|
227
233
|
*/
|
|
228
234
|
export type DocumentFilter = TextDocumentFilter | NotebookCellTextDocumentFilter;
|
|
229
235
|
/**
|
|
@@ -474,6 +480,12 @@ export interface TextDocumentClientCapabilities {
|
|
|
474
480
|
* Defines which synchronization capabilities the client supports.
|
|
475
481
|
*/
|
|
476
482
|
synchronization?: TextDocumentSyncClientCapabilities;
|
|
483
|
+
/**
|
|
484
|
+
* Defines which filters the client supports.
|
|
485
|
+
*
|
|
486
|
+
* @since 3.18.0
|
|
487
|
+
*/
|
|
488
|
+
filters?: TextDocumentFilterClientCapabilities;
|
|
477
489
|
/**
|
|
478
490
|
* Capabilities specific to the `textDocument/completion` request.
|
|
479
491
|
*/
|
|
@@ -1457,6 +1469,14 @@ export declare namespace TelemetryEventNotification {
|
|
|
1457
1469
|
const messageDirection: MessageDirection;
|
|
1458
1470
|
const type: ProtocolNotificationType<any, void>;
|
|
1459
1471
|
}
|
|
1472
|
+
export interface TextDocumentFilterClientCapabilities {
|
|
1473
|
+
/**
|
|
1474
|
+
* The client supports Relative Patterns.
|
|
1475
|
+
*
|
|
1476
|
+
* @since 3.18.0
|
|
1477
|
+
*/
|
|
1478
|
+
relativePatternSupport?: boolean;
|
|
1479
|
+
}
|
|
1460
1480
|
export interface TextDocumentSyncClientCapabilities {
|
|
1461
1481
|
/**
|
|
1462
1482
|
* Whether text document synchronization supports dynamic registration.
|
|
@@ -1988,6 +2008,20 @@ export interface CompletionListCapabilities {
|
|
|
1988
2008
|
* @since 3.17.0
|
|
1989
2009
|
*/
|
|
1990
2010
|
itemDefaults?: string[];
|
|
2011
|
+
/**
|
|
2012
|
+
* Specifies whether the client supports `CompletionList.applyKind` to
|
|
2013
|
+
* indicate how supported values from `completionList.itemDefaults`
|
|
2014
|
+
* and `completion` will be combined.
|
|
2015
|
+
*
|
|
2016
|
+
* If a client supports `applyKind` it must support it for all fields
|
|
2017
|
+
* that it supports that are listed in `CompletionList.applyKind`. This
|
|
2018
|
+
* means when clients add support for new/future fields in completion
|
|
2019
|
+
* items the MUST also support merge for them if those fields are
|
|
2020
|
+
* defined in `CompletionList.applyKind`.
|
|
2021
|
+
*
|
|
2022
|
+
* @since 3.18.0
|
|
2023
|
+
*/
|
|
2024
|
+
applyKindSupport?: boolean;
|
|
1991
2025
|
}
|
|
1992
2026
|
/**
|
|
1993
2027
|
* @since 3.18.0
|
|
@@ -2727,7 +2761,23 @@ export interface CodeActionClientCapabilities {
|
|
|
2727
2761
|
* @proposed
|
|
2728
2762
|
*/
|
|
2729
2763
|
documentationSupport?: boolean;
|
|
2764
|
+
/**
|
|
2765
|
+
* Client supports the tag property on a code action. Clients
|
|
2766
|
+
* supporting tags have to handle unknown tags gracefully.
|
|
2767
|
+
*
|
|
2768
|
+
* @since 3.18.0 - proposed
|
|
2769
|
+
*/
|
|
2770
|
+
tagSupport?: CodeActionTagOptions;
|
|
2730
2771
|
}
|
|
2772
|
+
/**
|
|
2773
|
+
* @since 3.18.0 - proposed
|
|
2774
|
+
*/
|
|
2775
|
+
export type CodeActionTagOptions = {
|
|
2776
|
+
/**
|
|
2777
|
+
* The tags supported by the client.
|
|
2778
|
+
*/
|
|
2779
|
+
valueSet: CodeActionTag[];
|
|
2780
|
+
};
|
|
2731
2781
|
/**
|
|
2732
2782
|
* The parameters of a {@link CodeActionRequest}.
|
|
2733
2783
|
*/
|
|
@@ -19,13 +19,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
19
19
|
}) : function(o, v) {
|
|
20
20
|
o["default"] = v;
|
|
21
21
|
});
|
|
22
|
-
var __importStar = (this && this.__importStar) || function (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
22
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
+
var ownKeys = function(o) {
|
|
24
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
+
var ar = [];
|
|
26
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
return ownKeys(o);
|
|
30
|
+
};
|
|
31
|
+
return function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
29
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
40
|
exports.DiagnosticRefreshRequest = exports.WorkspaceDiagnosticRequest = exports.DocumentDiagnosticRequest = exports.DocumentDiagnosticReportKind = exports.DiagnosticServerCancellationData = void 0;
|
|
31
41
|
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
package/lib/common/protocol.js
CHANGED
|
@@ -19,13 +19,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
19
19
|
}) : function(o, v) {
|
|
20
20
|
o["default"] = v;
|
|
21
21
|
});
|
|
22
|
-
var __importStar = (this && this.__importStar) || function (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
22
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
+
var ownKeys = function(o) {
|
|
24
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
+
var ar = [];
|
|
26
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
return ownKeys(o);
|
|
30
|
+
};
|
|
31
|
+
return function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
29
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
40
|
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.GlobPattern = 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.RegularExpressionEngineKind = exports.FailureHandlingKind = exports.ResourceOperationKind = exports.UnregistrationRequest = exports.RegistrationRequest = exports.DocumentSelector = exports.NotebookCellTextDocumentFilter = exports.NotebookDocumentFilter = exports.TextDocumentFilter = void 0;
|
|
31
41
|
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.FoldingRangeRefreshRequest = 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.DocumentRangesFormattingRequest = exports.DocumentRangeFormattingRequest = exports.DocumentFormattingRequest = exports.DocumentLinkResolveRequest = exports.DocumentLinkRequest = exports.CodeLensRefreshRequest = exports.CodeLensResolveRequest = exports.CodeLensRequest = exports.WorkspaceSymbolResolveRequest = exports.WorkspaceSymbolRequest = exports.CodeActionResolveRequest = void 0;
|
|
@@ -19,13 +19,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
19
19
|
}) : function(o, v) {
|
|
20
20
|
o["default"] = v;
|
|
21
21
|
});
|
|
22
|
-
var __importStar = (this && this.__importStar) || function (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
22
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
+
var ownKeys = function(o) {
|
|
24
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
+
var ar = [];
|
|
26
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
return ownKeys(o);
|
|
30
|
+
};
|
|
31
|
+
return function (mod) {
|
|
32
|
+
if (mod && mod.__esModule) return mod;
|
|
33
|
+
var result = {};
|
|
34
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
+
__setModuleDefault(result, mod);
|
|
36
|
+
return result;
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
29
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
40
|
exports.DidCloseNotebookDocumentNotification = exports.DidSaveNotebookDocumentNotification = exports.DidChangeNotebookDocumentNotification = exports.NotebookCellArrayChange = exports.DidOpenNotebookDocumentNotification = exports.NotebookDocumentSyncRegistrationType = exports.NotebookDocument = exports.NotebookCell = exports.ExecutionSummary = exports.NotebookCellKind = void 0;
|
|
31
41
|
const vscode_languageserver_types_1 = require("vscode-languageserver-types");
|
package/lib/common/utils/is.js
CHANGED
|
@@ -4,43 +4,42 @@
|
|
|
4
4
|
* ------------------------------------------------------------------------------------------ */
|
|
5
5
|
'use strict';
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.
|
|
7
|
+
exports.boolean = boolean;
|
|
8
|
+
exports.string = string;
|
|
9
|
+
exports.number = number;
|
|
10
|
+
exports.error = error;
|
|
11
|
+
exports.func = func;
|
|
12
|
+
exports.array = array;
|
|
13
|
+
exports.stringArray = stringArray;
|
|
14
|
+
exports.typedArray = typedArray;
|
|
15
|
+
exports.objectLiteral = objectLiteral;
|
|
8
16
|
function boolean(value) {
|
|
9
17
|
return value === true || value === false;
|
|
10
18
|
}
|
|
11
|
-
exports.boolean = boolean;
|
|
12
19
|
function string(value) {
|
|
13
20
|
return typeof value === 'string' || value instanceof String;
|
|
14
21
|
}
|
|
15
|
-
exports.string = string;
|
|
16
22
|
function number(value) {
|
|
17
23
|
return typeof value === 'number' || value instanceof Number;
|
|
18
24
|
}
|
|
19
|
-
exports.number = number;
|
|
20
25
|
function error(value) {
|
|
21
26
|
return value instanceof Error;
|
|
22
27
|
}
|
|
23
|
-
exports.error = error;
|
|
24
28
|
function func(value) {
|
|
25
29
|
return typeof value === 'function';
|
|
26
30
|
}
|
|
27
|
-
exports.func = func;
|
|
28
31
|
function array(value) {
|
|
29
32
|
return Array.isArray(value);
|
|
30
33
|
}
|
|
31
|
-
exports.array = array;
|
|
32
34
|
function stringArray(value) {
|
|
33
35
|
return array(value) && value.every(elem => string(elem));
|
|
34
36
|
}
|
|
35
|
-
exports.stringArray = stringArray;
|
|
36
37
|
function typedArray(value, check) {
|
|
37
38
|
return Array.isArray(value) && value.every(check);
|
|
38
39
|
}
|
|
39
|
-
exports.typedArray = typedArray;
|
|
40
40
|
function objectLiteral(value) {
|
|
41
41
|
// Strictly speaking class instances pass this check as well. Since the LSP
|
|
42
42
|
// doesn't use classes we ignore this for now. If we do we need to add something
|
|
43
43
|
// like this: `Object.getPrototypeOf(Object.getPrototypeOf(x)) === null`
|
|
44
44
|
return value !== null && typeof value === 'object';
|
|
45
45
|
}
|
|
46
|
-
exports.objectLiteral = objectLiteral;
|
package/lib/node/main.d.ts
CHANGED
package/lib/node/main.js
CHANGED
|
@@ -18,11 +18,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.createProtocolConnection =
|
|
21
|
+
exports.createProtocolConnection = createProtocolConnection;
|
|
22
22
|
const node_1 = require("vscode-jsonrpc/node");
|
|
23
23
|
__exportStar(require("vscode-jsonrpc/node"), exports);
|
|
24
24
|
__exportStar(require("../common/api"), exports);
|
|
25
25
|
function createProtocolConnection(input, output, logger, options) {
|
|
26
26
|
return (0, node_1.createMessageConnection)(input, output, logger, options);
|
|
27
27
|
}
|
|
28
|
-
exports.createProtocolConnection = createProtocolConnection;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vscode-languageserver-protocol",
|
|
3
3
|
"description": "VSCode Language Server Protocol implementation",
|
|
4
|
-
"version": "3.17.6-next.
|
|
4
|
+
"version": "3.17.6-next.12",
|
|
5
5
|
"author": "Microsoft Corporation",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"vscode-jsonrpc": "9.0.0-next.
|
|
31
|
-
"vscode-languageserver-types": "3.17.6-next.
|
|
30
|
+
"vscode-jsonrpc": "9.0.0-next.7",
|
|
31
|
+
"vscode-languageserver-types": "3.17.6-next.6"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"prepublishOnly": "echo \"⛔ Can only publish from a secure pipeline ⛔\" && node ../build/npm/fail",
|