vscode-languageserver-protocol 3.17.0-next.9

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.
Files changed (57) hide show
  1. package/License.txt +11 -0
  2. package/README.md +16 -0
  3. package/browser.d.ts +6 -0
  4. package/browser.js +7 -0
  5. package/lib/browser/main.d.ts +4 -0
  6. package/lib/browser/main.js +25 -0
  7. package/lib/common/api.d.ts +94 -0
  8. package/lib/common/api.js +87 -0
  9. package/lib/common/connection.d.ts +163 -0
  10. package/lib/common/connection.js +16 -0
  11. package/lib/common/messages.d.ts +44 -0
  12. package/lib/common/messages.js +39 -0
  13. package/lib/common/proposed.diagnostic.d.ts +324 -0
  14. package/lib/common/proposed.diagnostic.js +72 -0
  15. package/lib/common/proposed.typeHierarchy.d.ts +83 -0
  16. package/lib/common/proposed.typeHierarchy.js +40 -0
  17. package/lib/common/protocol.callHierarchy.d.ts +83 -0
  18. package/lib/common/protocol.callHierarchy.js +40 -0
  19. package/lib/common/protocol.colorProvider.d.ts +63 -0
  20. package/lib/common/protocol.colorProvider.js +30 -0
  21. package/lib/common/protocol.configuration.d.ts +46 -0
  22. package/lib/common/protocol.configuration.js +22 -0
  23. package/lib/common/protocol.d.ts +2750 -0
  24. package/lib/common/protocol.declaration.d.ts +37 -0
  25. package/lib/common/protocol.declaration.js +23 -0
  26. package/lib/common/protocol.fileOperations.d.ts +293 -0
  27. package/lib/common/protocol.fileOperations.js +92 -0
  28. package/lib/common/protocol.foldingRange.d.ts +63 -0
  29. package/lib/common/protocol.foldingRange.js +38 -0
  30. package/lib/common/protocol.implementation.d.ts +38 -0
  31. package/lib/common/protocol.implementation.js +22 -0
  32. package/lib/common/protocol.js +752 -0
  33. package/lib/common/protocol.linkedEditingRange.d.ts +51 -0
  34. package/lib/common/protocol.linkedEditingRange.js +19 -0
  35. package/lib/common/protocol.moniker.d.ts +103 -0
  36. package/lib/common/protocol.moniker.js +68 -0
  37. package/lib/common/protocol.progress.d.ts +117 -0
  38. package/lib/common/protocol.progress.js +34 -0
  39. package/lib/common/protocol.selectionRange.d.ts +40 -0
  40. package/lib/common/protocol.selectionRange.js +20 -0
  41. package/lib/common/protocol.semanticTokens.d.ts +194 -0
  42. package/lib/common/protocol.semanticTokens.js +51 -0
  43. package/lib/common/protocol.showDocument.d.ts +71 -0
  44. package/lib/common/protocol.showDocument.js +22 -0
  45. package/lib/common/protocol.typeDefinition.d.ts +38 -0
  46. package/lib/common/protocol.typeDefinition.js +22 -0
  47. package/lib/common/protocol.workspaceFolders.d.ts +94 -0
  48. package/lib/common/protocol.workspaceFolders.js +24 -0
  49. package/lib/common/utils/is.d.ts +9 -0
  50. package/lib/common/utils/is.js +47 -0
  51. package/lib/node/main.d.ts +6 -0
  52. package/lib/node/main.js +25 -0
  53. package/node.cmd +5 -0
  54. package/node.d.ts +6 -0
  55. package/node.js +7 -0
  56. package/package.json +38 -0
  57. package/thirdpartynotices.txt +31 -0
@@ -0,0 +1,51 @@
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.SemanticTokensRefreshRequest = exports.SemanticTokensRangeRequest = exports.SemanticTokensDeltaRequest = exports.SemanticTokensRequest = exports.SemanticTokensRegistrationType = exports.TokenFormat = void 0;
8
+ const messages_1 = require("./messages");
9
+ //------- 'textDocument/semanticTokens' -----
10
+ var TokenFormat;
11
+ (function (TokenFormat) {
12
+ TokenFormat.Relative = 'relative';
13
+ })(TokenFormat = exports.TokenFormat || (exports.TokenFormat = {}));
14
+ var SemanticTokensRegistrationType;
15
+ (function (SemanticTokensRegistrationType) {
16
+ SemanticTokensRegistrationType.method = 'textDocument/semanticTokens';
17
+ SemanticTokensRegistrationType.type = new messages_1.RegistrationType(SemanticTokensRegistrationType.method);
18
+ })(SemanticTokensRegistrationType = exports.SemanticTokensRegistrationType || (exports.SemanticTokensRegistrationType = {}));
19
+ /**
20
+ * @since 3.16.0
21
+ */
22
+ var SemanticTokensRequest;
23
+ (function (SemanticTokensRequest) {
24
+ SemanticTokensRequest.method = 'textDocument/semanticTokens/full';
25
+ SemanticTokensRequest.type = new messages_1.ProtocolRequestType(SemanticTokensRequest.method);
26
+ })(SemanticTokensRequest = exports.SemanticTokensRequest || (exports.SemanticTokensRequest = {}));
27
+ /**
28
+ * @since 3.16.0
29
+ */
30
+ var SemanticTokensDeltaRequest;
31
+ (function (SemanticTokensDeltaRequest) {
32
+ SemanticTokensDeltaRequest.method = 'textDocument/semanticTokens/full/delta';
33
+ SemanticTokensDeltaRequest.type = new messages_1.ProtocolRequestType(SemanticTokensDeltaRequest.method);
34
+ })(SemanticTokensDeltaRequest = exports.SemanticTokensDeltaRequest || (exports.SemanticTokensDeltaRequest = {}));
35
+ /**
36
+ * @since 3.16.0
37
+ */
38
+ var SemanticTokensRangeRequest;
39
+ (function (SemanticTokensRangeRequest) {
40
+ SemanticTokensRangeRequest.method = 'textDocument/semanticTokens/range';
41
+ SemanticTokensRangeRequest.type = new messages_1.ProtocolRequestType(SemanticTokensRangeRequest.method);
42
+ })(SemanticTokensRangeRequest = exports.SemanticTokensRangeRequest || (exports.SemanticTokensRangeRequest = {}));
43
+ /**
44
+ * @since 3.16.0
45
+ */
46
+ var SemanticTokensRefreshRequest;
47
+ (function (SemanticTokensRefreshRequest) {
48
+ SemanticTokensRefreshRequest.method = `workspace/semanticTokens/refresh`;
49
+ SemanticTokensRefreshRequest.type = new messages_1.ProtocolRequestType0(SemanticTokensRefreshRequest.method);
50
+ })(SemanticTokensRefreshRequest = exports.SemanticTokensRefreshRequest || (exports.SemanticTokensRefreshRequest = {}));
51
+ //# sourceMappingURL=protocol.semanticTokens.js.map
@@ -0,0 +1,71 @@
1
+ import { HandlerResult, RequestHandler } from 'vscode-jsonrpc';
2
+ import { Range, URI } from 'vscode-languageserver-types';
3
+ import { ProtocolRequestType } from './messages';
4
+ /**
5
+ * Client capabilities for the show document request.
6
+ *
7
+ * @since 3.16.0
8
+ */
9
+ export interface ShowDocumentClientCapabilities {
10
+ /**
11
+ * The client has support for the show document
12
+ * request.
13
+ */
14
+ support: boolean;
15
+ }
16
+ /**
17
+ * Params to show a document.
18
+ *
19
+ * @since 3.16.0
20
+ */
21
+ export interface ShowDocumentParams {
22
+ /**
23
+ * The document uri to show.
24
+ */
25
+ uri: URI;
26
+ /**
27
+ * Indicates to show the resource in an external program.
28
+ * To show for example `https://code.visualstudio.com/`
29
+ * in the default WEB browser set `external` to `true`.
30
+ */
31
+ external?: boolean;
32
+ /**
33
+ * An optional property to indicate whether the editor
34
+ * showing the document should take focus or not.
35
+ * Clients might ignore this property if an external
36
+ * program in started.
37
+ */
38
+ takeFocus?: boolean;
39
+ /**
40
+ * An optional selection range if the document is a text
41
+ * document. Clients might ignore the property if an
42
+ * external program is started or the file is not a text
43
+ * file.
44
+ */
45
+ selection?: Range;
46
+ }
47
+ /**
48
+ * The result of an show document request.
49
+ *
50
+ * @since 3.16.0
51
+ */
52
+ export interface ShowDocumentResult {
53
+ /**
54
+ * A boolean indicating if the show was successful.
55
+ */
56
+ success: boolean;
57
+ }
58
+ /**
59
+ * A request to show a document. This request might open an
60
+ * external program depending on the value of the URI to open.
61
+ * For example a request to open `https://code.visualstudio.com/`
62
+ * will very likely open the URI in a WEB browser.
63
+ *
64
+ * @since 3.16.0
65
+ */
66
+ export declare namespace ShowDocumentRequest {
67
+ const method: 'window/showDocument';
68
+ const type: ProtocolRequestType<ShowDocumentParams, ShowDocumentResult, void, void, void>;
69
+ type HandlerSignature = RequestHandler<ShowDocumentParams, ShowDocumentResult, void>;
70
+ type MiddlewareSignature = (params: ShowDocumentParams, next: HandlerSignature) => HandlerResult<ShowDocumentResult, void>;
71
+ }
@@ -0,0 +1,22 @@
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.ShowDocumentRequest = void 0;
8
+ const messages_1 = require("./messages");
9
+ /**
10
+ * A request to show a document. This request might open an
11
+ * external program depending on the value of the URI to open.
12
+ * For example a request to open `https://code.visualstudio.com/`
13
+ * will very likely open the URI in a WEB browser.
14
+ *
15
+ * @since 3.16.0
16
+ */
17
+ var ShowDocumentRequest;
18
+ (function (ShowDocumentRequest) {
19
+ ShowDocumentRequest.method = 'window/showDocument';
20
+ ShowDocumentRequest.type = new messages_1.ProtocolRequestType(ShowDocumentRequest.method);
21
+ })(ShowDocumentRequest = exports.ShowDocumentRequest || (exports.ShowDocumentRequest = {}));
22
+ //# sourceMappingURL=protocol.showDocument.js.map
@@ -0,0 +1,38 @@
1
+ import { RequestHandler } from 'vscode-jsonrpc';
2
+ import { Definition, DefinitionLink, LocationLink, Location } from 'vscode-languageserver-types';
3
+ import { ProtocolRequestType } from './messages';
4
+ import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
5
+ /**
6
+ * Since 3.6.0
7
+ */
8
+ export interface TypeDefinitionClientCapabilities {
9
+ /**
10
+ * Whether implementation supports dynamic registration. If this is set to `true`
11
+ * the client supports the new `TypeDefinitionRegistrationOptions` return value
12
+ * for the corresponding server capability as well.
13
+ */
14
+ dynamicRegistration?: boolean;
15
+ /**
16
+ * The client supports additional metadata in the form of definition links.
17
+ *
18
+ * Since 3.14.0
19
+ */
20
+ linkSupport?: boolean;
21
+ }
22
+ export interface TypeDefinitionOptions extends WorkDoneProgressOptions {
23
+ }
24
+ export interface TypeDefinitionRegistrationOptions extends TextDocumentRegistrationOptions, TypeDefinitionOptions, StaticRegistrationOptions {
25
+ }
26
+ export interface TypeDefinitionParams extends TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams {
27
+ }
28
+ /**
29
+ * A request to resolve the type definition locations of a symbol at a given text
30
+ * document position. The request's parameter is of type [TextDocumentPositioParams]
31
+ * (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
32
+ * Thenable that resolves to such.
33
+ */
34
+ export declare namespace TypeDefinitionRequest {
35
+ const method: 'textDocument/typeDefinition';
36
+ const type: ProtocolRequestType<TypeDefinitionParams, Definition | LocationLink[] | null, Location[] | LocationLink[], void, TypeDefinitionRegistrationOptions>;
37
+ type HandlerSignature = RequestHandler<TypeDefinitionParams, Definition | DefinitionLink[] | null, void>;
38
+ }
@@ -0,0 +1,22 @@
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.TypeDefinitionRequest = void 0;
8
+ const messages_1 = require("./messages");
9
+ // @ts-ignore: to avoid inlining LocatioLink as dynamic import
10
+ let __noDynamicImport;
11
+ /**
12
+ * A request to resolve the type definition locations of a symbol at a given text
13
+ * document position. The request's parameter is of type [TextDocumentPositioParams]
14
+ * (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
15
+ * Thenable that resolves to such.
16
+ */
17
+ var TypeDefinitionRequest;
18
+ (function (TypeDefinitionRequest) {
19
+ TypeDefinitionRequest.method = 'textDocument/typeDefinition';
20
+ TypeDefinitionRequest.type = new messages_1.ProtocolRequestType(TypeDefinitionRequest.method);
21
+ })(TypeDefinitionRequest = exports.TypeDefinitionRequest || (exports.TypeDefinitionRequest = {}));
22
+ //# sourceMappingURL=protocol.typeDefinition.js.map
@@ -0,0 +1,94 @@
1
+ import { RequestHandler0, NotificationHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
2
+ import { ProtocolRequestType0, ProtocolNotificationType } from './messages';
3
+ export interface WorkspaceFoldersInitializeParams {
4
+ /**
5
+ * The actual configured workspace folders.
6
+ */
7
+ workspaceFolders: WorkspaceFolder[] | null;
8
+ }
9
+ export interface WorkspaceFoldersClientCapabilities {
10
+ /**
11
+ * The workspace client capabilities
12
+ */
13
+ workspace?: {
14
+ /**
15
+ * The client has support for workspace folders
16
+ *
17
+ * @since 3.6.0
18
+ */
19
+ workspaceFolders?: boolean;
20
+ };
21
+ }
22
+ export interface WorkspaceFoldersServerCapabilities {
23
+ /**
24
+ * The workspace server capabilities
25
+ */
26
+ workspace?: {
27
+ workspaceFolders?: {
28
+ /**
29
+ * The Server has support for workspace folders
30
+ */
31
+ supported?: boolean;
32
+ /**
33
+ * Whether the server wants to receive workspace folder
34
+ * change notifications.
35
+ *
36
+ * If a strings is provided the string is treated as a ID
37
+ * under which the notification is registered on the client
38
+ * side. The ID can be used to unregister for these events
39
+ * using the `client/unregisterCapability` request.
40
+ */
41
+ changeNotifications?: string | boolean;
42
+ };
43
+ };
44
+ }
45
+ export interface WorkspaceFolder {
46
+ /**
47
+ * The associated URI for this workspace folder.
48
+ */
49
+ uri: string;
50
+ /**
51
+ * The name of the workspace folder. Used to refer to this
52
+ * workspace folder in the user interface.
53
+ */
54
+ name: string;
55
+ }
56
+ /**
57
+ * The `workspace/workspaceFolders` is sent from the server to the client to fetch the open workspace folders.
58
+ */
59
+ export declare namespace WorkspaceFoldersRequest {
60
+ const type: ProtocolRequestType0<WorkspaceFolder[] | null, never, void, void>;
61
+ type HandlerSignature = RequestHandler0<WorkspaceFolder[] | null, void>;
62
+ type MiddlewareSignature = (token: CancellationToken, next: HandlerSignature) => HandlerResult<WorkspaceFolder[] | null, void>;
63
+ }
64
+ /**
65
+ * The `workspace/didChangeWorkspaceFolders` notification is sent from the client to the server when the workspace
66
+ * folder configuration changes.
67
+ */
68
+ export declare namespace DidChangeWorkspaceFoldersNotification {
69
+ const type: ProtocolNotificationType<DidChangeWorkspaceFoldersParams, void>;
70
+ type HandlerSignature = NotificationHandler<DidChangeWorkspaceFoldersParams>;
71
+ type MiddlewareSignature = (params: DidChangeWorkspaceFoldersParams, next: HandlerSignature) => void;
72
+ }
73
+ /**
74
+ * The parameters of a `workspace/didChangeWorkspaceFolders` notification.
75
+ */
76
+ export interface DidChangeWorkspaceFoldersParams {
77
+ /**
78
+ * The actual workspace folder change event.
79
+ */
80
+ event: WorkspaceFoldersChangeEvent;
81
+ }
82
+ /**
83
+ * The workspace folder change event.
84
+ */
85
+ export interface WorkspaceFoldersChangeEvent {
86
+ /**
87
+ * The array of added workspace folders
88
+ */
89
+ added: WorkspaceFolder[];
90
+ /**
91
+ * The array of the removed workspace folders
92
+ */
93
+ removed: WorkspaceFolder[];
94
+ }
@@ -0,0 +1,24 @@
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.DidChangeWorkspaceFoldersNotification = exports.WorkspaceFoldersRequest = void 0;
8
+ const messages_1 = require("./messages");
9
+ /**
10
+ * The `workspace/workspaceFolders` is sent from the server to the client to fetch the open workspace folders.
11
+ */
12
+ var WorkspaceFoldersRequest;
13
+ (function (WorkspaceFoldersRequest) {
14
+ WorkspaceFoldersRequest.type = new messages_1.ProtocolRequestType0('workspace/workspaceFolders');
15
+ })(WorkspaceFoldersRequest = exports.WorkspaceFoldersRequest || (exports.WorkspaceFoldersRequest = {}));
16
+ /**
17
+ * The `workspace/didChangeWorkspaceFolders` notification is sent from the client to the server when the workspace
18
+ * folder configuration changes.
19
+ */
20
+ var DidChangeWorkspaceFoldersNotification;
21
+ (function (DidChangeWorkspaceFoldersNotification) {
22
+ DidChangeWorkspaceFoldersNotification.type = new messages_1.ProtocolNotificationType('workspace/didChangeWorkspaceFolders');
23
+ })(DidChangeWorkspaceFoldersNotification = exports.DidChangeWorkspaceFoldersNotification || (exports.DidChangeWorkspaceFoldersNotification = {}));
24
+ //# sourceMappingURL=protocol.workspaceFolders.js.map
@@ -0,0 +1,9 @@
1
+ export declare function boolean(value: any): value is boolean;
2
+ export declare function string(value: any): value is string;
3
+ export declare function number(value: any): value is number;
4
+ export declare function error(value: any): value is Error;
5
+ export declare function func(value: any): value is Function;
6
+ export declare function array<T>(value: any): value is T[];
7
+ export declare function stringArray(value: any): value is string[];
8
+ export declare function typedArray<T>(value: any, check: (value: any) => boolean): value is T[];
9
+ export declare function objectLiteral(value: any): value is object;
@@ -0,0 +1,47 @@
1
+ /* --------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ * ------------------------------------------------------------------------------------------ */
5
+ 'use strict';
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.objectLiteral = exports.typedArray = exports.stringArray = exports.array = exports.func = exports.error = exports.number = exports.string = exports.boolean = void 0;
8
+ function boolean(value) {
9
+ return value === true || value === false;
10
+ }
11
+ exports.boolean = boolean;
12
+ function string(value) {
13
+ return typeof value === 'string' || value instanceof String;
14
+ }
15
+ exports.string = string;
16
+ function number(value) {
17
+ return typeof value === 'number' || value instanceof Number;
18
+ }
19
+ exports.number = number;
20
+ function error(value) {
21
+ return value instanceof Error;
22
+ }
23
+ exports.error = error;
24
+ function func(value) {
25
+ return typeof value === 'function';
26
+ }
27
+ exports.func = func;
28
+ function array(value) {
29
+ return Array.isArray(value);
30
+ }
31
+ exports.array = array;
32
+ function stringArray(value) {
33
+ return array(value) && value.every(elem => string(elem));
34
+ }
35
+ exports.stringArray = stringArray;
36
+ function typedArray(value, check) {
37
+ return Array.isArray(value) && value.every(check);
38
+ }
39
+ exports.typedArray = typedArray;
40
+ function objectLiteral(value) {
41
+ // Strictly speaking class instances pass this check as well. Since the LSP
42
+ // doesn't use classes we ignore this for now. If we do we need to add something
43
+ // like this: `Object.getPrototypeOf(Object.getPrototypeOf(x)) === null`
44
+ return value !== null && typeof value === 'object';
45
+ }
46
+ exports.objectLiteral = objectLiteral;
47
+ //# sourceMappingURL=is.js.map
@@ -0,0 +1,6 @@
1
+ /// <reference types="node" />
2
+ import { MessageReader, MessageWriter, Logger, ConnectionStrategy, ConnectionOptions, ProtocolConnection } from '../common/api';
3
+ export * from 'vscode-jsonrpc/node';
4
+ export * from '../common/api';
5
+ export declare function createProtocolConnection(input: MessageReader, output: MessageWriter, logger?: Logger, options?: ConnectionStrategy | ConnectionOptions): ProtocolConnection;
6
+ export declare function createProtocolConnection(input: NodeJS.ReadableStream, output: NodeJS.WritableStream, logger?: Logger, options?: ConnectionStrategy | ConnectionOptions): ProtocolConnection;
@@ -0,0 +1,25 @@
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
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.createProtocolConnection = void 0;
18
+ const node_1 = require("vscode-jsonrpc/node");
19
+ __exportStar(require("vscode-jsonrpc/node"), exports);
20
+ __exportStar(require("../common/api"), exports);
21
+ function createProtocolConnection(input, output, logger, options) {
22
+ return (0, node_1.createMessageConnection)(input, output, logger, options);
23
+ }
24
+ exports.createProtocolConnection = createProtocolConnection;
25
+ //# sourceMappingURL=main.js.map
package/node.cmd ADDED
@@ -0,0 +1,5 @@
1
+ @echo off
2
+ REM This file is necessary to ensure that under Windows we don't
3
+ REM run the node.js file in the Windows Script Host when using
4
+ REM node in packakge.json scripts. See also PATHEXT setting
5
+ node.exe %*
package/node.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ /* --------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ * ----------------------------------------------------------------------------------------- */
5
+
6
+ export * from './lib/node/main';
package/node.js ADDED
@@ -0,0 +1,7 @@
1
+ /* --------------------------------------------------------------------------------------------
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License. See License.txt in the project root for license information.
4
+ * ----------------------------------------------------------------------------------------- */
5
+ 'use strict';
6
+
7
+ module.exports = require('./lib/node/main');
package/package.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "vscode-languageserver-protocol",
3
+ "description": "VSCode Language Server Protocol implementation",
4
+ "version": "3.17.0-next.9",
5
+ "author": "Microsoft Corporation",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/Microsoft/vscode-languageserver-node.git",
10
+ "directory": "protocol"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/Microsoft/vscode-languageserver-node/issues"
14
+ },
15
+ "main": "./lib/node/main.js",
16
+ "browser": {
17
+ "./lib/node/main.js": "./lib/browser/main.js"
18
+ },
19
+ "typings": "./lib/common/api.d.ts",
20
+ "dependencies": {
21
+ "vscode-jsonrpc": "8.0.0-next.3",
22
+ "vscode-languageserver-types": "3.17.0-next.4"
23
+ },
24
+ "scripts": {
25
+ "prepublishOnly": "git clean -xfd . && npm install && npm run clean && npm run compile && npm test",
26
+ "postpublish": "node ../build/npm/post-publish.js",
27
+ "preversion": "npm test",
28
+ "compile": "node ../build/bin/tsc -b ./tsconfig.json",
29
+ "watch": "node ../build/bin/tsc -b ./tsconfig-watch.json -w",
30
+ "clean": "node ../node_modules/rimraf/bin.js lib && node ../node_modules/rimraf/bin.js dist",
31
+ "lint": "node ../node_modules/eslint/bin/eslint.js --ext ts src",
32
+ "test": "npm run test:node && npm run test:browser",
33
+ "test:node": "node ../node_modules/mocha/bin/_mocha",
34
+ "test:browser": "npm run webpack:test:silent && node ../build/bin/runBrowserTests.js http://127.0.0.1:8080/protocol/src/browser/test/",
35
+ "webpack:test": "cd ../types && npm run compile:esm && cd ../protocol && node ../build/bin/webpack --mode none --config ./src/browser/test/webpack.config.js",
36
+ "webpack:test:silent": "cd ../types && npm run compile:esm && cd ../protocol && node ../build/bin/webpack --no-stats --mode none --config ./src/browser/test/webpack.config.js"
37
+ }
38
+ }
@@ -0,0 +1,31 @@
1
+ THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
2
+ For Microsoft vscode-languageclient
3
+
4
+ This project incorporates material from the project(s) listed below (collectively, “Third Party Code”).
5
+ Microsoft is not the original author of the Third Party Code. The original copyright notice and license
6
+ under which Microsoft received such Third Party Code are set out below. This Third Party Code is licensed
7
+ to you under their original license terms set forth below. Microsoft reserves all other rights not expressly
8
+ granted, whether by implication, estoppel or otherwise.
9
+
10
+ 1. DefinitelyTyped version 0.0.1 (https://github.com/borisyankov/DefinitelyTyped)
11
+
12
+ This project is licensed under the MIT license.
13
+ Copyrights are respective of each contributor listed at the beginning of each definition file.
14
+
15
+ Permission is hereby granted, free of charge, to any person obtaining a copy
16
+ of this software and associated documentation files (the "Software"), to deal
17
+ in the Software without restriction, including without limitation the rights
18
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19
+ copies of the Software, and to permit persons to whom the Software is
20
+ furnished to do so, subject to the following conditions:
21
+
22
+ The above copyright notice and this permission notice shall be included in
23
+ all copies or substantial portions of the Software.
24
+
25
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
31
+ THE SOFTWARE.