vscode-languageserver-protocol 3.15.0-next.2 → 3.15.0-next.6

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.
@@ -1,22 +1,22 @@
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
- const vscode_jsonrpc_1 = require("vscode-jsonrpc");
8
- /**
9
- * The `workspace/workspaceFolders` is sent from the server to the client to fetch the open workspace folders.
10
- */
11
- var WorkspaceFoldersRequest;
12
- (function (WorkspaceFoldersRequest) {
13
- WorkspaceFoldersRequest.type = new vscode_jsonrpc_1.RequestType0('workspace/workspaceFolders');
14
- })(WorkspaceFoldersRequest = exports.WorkspaceFoldersRequest || (exports.WorkspaceFoldersRequest = {}));
15
- /**
16
- * The `workspace/didChangeWorkspaceFolders` notification is sent from the client to the server when the workspace
17
- * folder configuration changes.
18
- */
19
- var DidChangeWorkspaceFoldersNotification;
20
- (function (DidChangeWorkspaceFoldersNotification) {
21
- DidChangeWorkspaceFoldersNotification.type = new vscode_jsonrpc_1.NotificationType('workspace/didChangeWorkspaceFolders');
22
- })(DidChangeWorkspaceFoldersNotification = exports.DidChangeWorkspaceFoldersNotification || (exports.DidChangeWorkspaceFoldersNotification = {}));
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
+ const vscode_jsonrpc_1 = require("vscode-jsonrpc");
8
+ /**
9
+ * The `workspace/workspaceFolders` is sent from the server to the client to fetch the open workspace folders.
10
+ */
11
+ var WorkspaceFoldersRequest;
12
+ (function (WorkspaceFoldersRequest) {
13
+ WorkspaceFoldersRequest.type = new vscode_jsonrpc_1.RequestType0('workspace/workspaceFolders');
14
+ })(WorkspaceFoldersRequest = exports.WorkspaceFoldersRequest || (exports.WorkspaceFoldersRequest = {}));
15
+ /**
16
+ * The `workspace/didChangeWorkspaceFolders` notification is sent from the client to the server when the workspace
17
+ * folder configuration changes.
18
+ */
19
+ var DidChangeWorkspaceFoldersNotification;
20
+ (function (DidChangeWorkspaceFoldersNotification) {
21
+ DidChangeWorkspaceFoldersNotification.type = new vscode_jsonrpc_1.NotificationType('workspace/didChangeWorkspaceFolders');
22
+ })(DidChangeWorkspaceFoldersNotification = exports.DidChangeWorkspaceFoldersNotification || (exports.DidChangeWorkspaceFoldersNotification = {}));
package/lib/utils/is.d.ts CHANGED
@@ -1,9 +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 thenable<T>(value: any): value is Thenable<T>;
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 thenable<T>(value: any): value is Thenable<T>;
package/lib/utils/is.js CHANGED
@@ -1,42 +1,42 @@
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
- function boolean(value) {
8
- return value === true || value === false;
9
- }
10
- exports.boolean = boolean;
11
- function string(value) {
12
- return typeof value === 'string' || value instanceof String;
13
- }
14
- exports.string = string;
15
- function number(value) {
16
- return typeof value === 'number' || value instanceof Number;
17
- }
18
- exports.number = number;
19
- function error(value) {
20
- return value instanceof Error;
21
- }
22
- exports.error = error;
23
- function func(value) {
24
- return typeof value === 'function';
25
- }
26
- exports.func = func;
27
- function array(value) {
28
- return Array.isArray(value);
29
- }
30
- exports.array = array;
31
- function stringArray(value) {
32
- return array(value) && value.every(elem => string(elem));
33
- }
34
- exports.stringArray = stringArray;
35
- function typedArray(value, check) {
36
- return Array.isArray(value) && value.every(check);
37
- }
38
- exports.typedArray = typedArray;
39
- function thenable(value) {
40
- return value && func(value.then);
41
- }
42
- exports.thenable = thenable;
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
+ function boolean(value) {
8
+ return value === true || value === false;
9
+ }
10
+ exports.boolean = boolean;
11
+ function string(value) {
12
+ return typeof value === 'string' || value instanceof String;
13
+ }
14
+ exports.string = string;
15
+ function number(value) {
16
+ return typeof value === 'number' || value instanceof Number;
17
+ }
18
+ exports.number = number;
19
+ function error(value) {
20
+ return value instanceof Error;
21
+ }
22
+ exports.error = error;
23
+ function func(value) {
24
+ return typeof value === 'function';
25
+ }
26
+ exports.func = func;
27
+ function array(value) {
28
+ return Array.isArray(value);
29
+ }
30
+ exports.array = array;
31
+ function stringArray(value) {
32
+ return array(value) && value.every(elem => string(elem));
33
+ }
34
+ exports.stringArray = stringArray;
35
+ function typedArray(value, check) {
36
+ return Array.isArray(value) && value.every(check);
37
+ }
38
+ exports.typedArray = typedArray;
39
+ function thenable(value) {
40
+ return value && func(value.then);
41
+ }
42
+ exports.thenable = thenable;
package/package.json CHANGED
@@ -1,30 +1,30 @@
1
- {
2
- "name": "vscode-languageserver-protocol",
3
- "description": "VSCode Language Server Protocol implementation",
4
- "version": "3.15.0-next.2",
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/main.js",
16
- "typings": "./lib/main",
17
- "dependencies": {
18
- "vscode-jsonrpc": "^4.0.0",
19
- "vscode-languageserver-types": "3.14.0"
20
- },
21
- "scripts": {
22
- "prepublishOnly": "npm run clean && npm run compile && npm test",
23
- "postpublish": "node ../build/npm/post-publish.js",
24
- "compile": "node ../build/bin/tsc -p ./tsconfig.json",
25
- "watch": "node ../build/bin/tsc -w -p ./tsconfig.json",
26
- "test": "node ../node_modules/mocha/bin/_mocha",
27
- "clean": "node ../node_modules/rimraf/bin.js lib",
28
- "preversion": "npm test"
29
- }
30
- }
1
+ {
2
+ "name": "vscode-languageserver-protocol",
3
+ "description": "VSCode Language Server Protocol implementation",
4
+ "version": "3.15.0-next.6",
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/main.js",
16
+ "typings": "./lib/main",
17
+ "dependencies": {
18
+ "vscode-jsonrpc": "^4.1.0-next.2",
19
+ "vscode-languageserver-types": "^3.15.0-next.2"
20
+ },
21
+ "scripts": {
22
+ "prepublishOnly": "npm run clean && npm run compile && npm test",
23
+ "postpublish": "node ../build/npm/post-publish.js",
24
+ "compile": "node ../build/bin/tsc -p ./tsconfig.json",
25
+ "watch": "node ../build/bin/tsc -w -p ./tsconfig.json",
26
+ "test": "node ../node_modules/mocha/bin/_mocha",
27
+ "clean": "node ../node_modules/rimraf/bin.js lib",
28
+ "preversion": "npm test"
29
+ }
30
+ }
@@ -1,31 +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
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
31
  THE SOFTWARE.