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.
- package/License.txt +11 -0
- package/README.md +16 -0
- package/browser.d.ts +6 -0
- package/browser.js +7 -0
- package/lib/browser/main.d.ts +4 -0
- package/lib/browser/main.js +25 -0
- package/lib/common/api.d.ts +94 -0
- package/lib/common/api.js +87 -0
- package/lib/common/connection.d.ts +163 -0
- package/lib/common/connection.js +16 -0
- package/lib/common/messages.d.ts +44 -0
- package/lib/common/messages.js +39 -0
- package/lib/common/proposed.diagnostic.d.ts +324 -0
- package/lib/common/proposed.diagnostic.js +72 -0
- package/lib/common/proposed.typeHierarchy.d.ts +83 -0
- package/lib/common/proposed.typeHierarchy.js +40 -0
- package/lib/common/protocol.callHierarchy.d.ts +83 -0
- package/lib/common/protocol.callHierarchy.js +40 -0
- package/lib/common/protocol.colorProvider.d.ts +63 -0
- package/lib/common/protocol.colorProvider.js +30 -0
- package/lib/common/protocol.configuration.d.ts +46 -0
- package/lib/common/protocol.configuration.js +22 -0
- package/lib/common/protocol.d.ts +2750 -0
- package/lib/common/protocol.declaration.d.ts +37 -0
- package/lib/common/protocol.declaration.js +23 -0
- package/lib/common/protocol.fileOperations.d.ts +293 -0
- package/lib/common/protocol.fileOperations.js +92 -0
- package/lib/common/protocol.foldingRange.d.ts +63 -0
- package/lib/common/protocol.foldingRange.js +38 -0
- package/lib/common/protocol.implementation.d.ts +38 -0
- package/lib/common/protocol.implementation.js +22 -0
- package/lib/common/protocol.js +752 -0
- package/lib/common/protocol.linkedEditingRange.d.ts +51 -0
- package/lib/common/protocol.linkedEditingRange.js +19 -0
- package/lib/common/protocol.moniker.d.ts +103 -0
- package/lib/common/protocol.moniker.js +68 -0
- package/lib/common/protocol.progress.d.ts +117 -0
- package/lib/common/protocol.progress.js +34 -0
- package/lib/common/protocol.selectionRange.d.ts +40 -0
- package/lib/common/protocol.selectionRange.js +20 -0
- package/lib/common/protocol.semanticTokens.d.ts +194 -0
- package/lib/common/protocol.semanticTokens.js +51 -0
- package/lib/common/protocol.showDocument.d.ts +71 -0
- package/lib/common/protocol.showDocument.js +22 -0
- package/lib/common/protocol.typeDefinition.d.ts +38 -0
- package/lib/common/protocol.typeDefinition.js +22 -0
- package/lib/common/protocol.workspaceFolders.d.ts +94 -0
- package/lib/common/protocol.workspaceFolders.js +24 -0
- package/lib/common/utils/is.d.ts +9 -0
- package/lib/common/utils/is.js +47 -0
- package/lib/node/main.d.ts +6 -0
- package/lib/node/main.js +25 -0
- package/node.cmd +5 -0
- package/node.d.ts +6 -0
- package/node.js +7 -0
- package/package.json +38 -0
- package/thirdpartynotices.txt +31 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { RequestHandler } from 'vscode-jsonrpc';
|
|
2
|
+
import { TextDocumentIdentifier, Range, Color, ColorInformation, ColorPresentation } from 'vscode-languageserver-types';
|
|
3
|
+
import { ProtocolRequestType } from './messages';
|
|
4
|
+
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, PartialResultParams, WorkDoneProgressParams, WorkDoneProgressOptions } from './protocol';
|
|
5
|
+
export interface DocumentColorClientCapabilities {
|
|
6
|
+
/**
|
|
7
|
+
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
8
|
+
* the client supports the new `DocumentColorRegistrationOptions` return value
|
|
9
|
+
* for the corresponding server capability as well.
|
|
10
|
+
*/
|
|
11
|
+
dynamicRegistration?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface DocumentColorOptions extends WorkDoneProgressOptions {
|
|
14
|
+
}
|
|
15
|
+
export interface DocumentColorRegistrationOptions extends TextDocumentRegistrationOptions, StaticRegistrationOptions, DocumentColorOptions {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Parameters for a [DocumentColorRequest](#DocumentColorRequest).
|
|
19
|
+
*/
|
|
20
|
+
export interface DocumentColorParams extends WorkDoneProgressParams, PartialResultParams {
|
|
21
|
+
/**
|
|
22
|
+
* The text document.
|
|
23
|
+
*/
|
|
24
|
+
textDocument: TextDocumentIdentifier;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A request to list all color symbols found in a given text document. The request's
|
|
28
|
+
* parameter is of type [DocumentColorParams](#DocumentColorParams) the
|
|
29
|
+
* response is of type [ColorInformation[]](#ColorInformation) or a Thenable
|
|
30
|
+
* that resolves to such.
|
|
31
|
+
*/
|
|
32
|
+
export declare namespace DocumentColorRequest {
|
|
33
|
+
const method: 'textDocument/documentColor';
|
|
34
|
+
const type: ProtocolRequestType<DocumentColorParams, ColorInformation[], ColorInformation[], void, DocumentColorRegistrationOptions>;
|
|
35
|
+
type HandlerSignature = RequestHandler<DocumentColorParams, ColorInformation[], void>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Parameters for a [ColorPresentationRequest](#ColorPresentationRequest).
|
|
39
|
+
*/
|
|
40
|
+
export interface ColorPresentationParams extends WorkDoneProgressParams, PartialResultParams {
|
|
41
|
+
/**
|
|
42
|
+
* The text document.
|
|
43
|
+
*/
|
|
44
|
+
textDocument: TextDocumentIdentifier;
|
|
45
|
+
/**
|
|
46
|
+
* The color to request presentations for.
|
|
47
|
+
*/
|
|
48
|
+
color: Color;
|
|
49
|
+
/**
|
|
50
|
+
* The range where the color would be inserted. Serves as a context.
|
|
51
|
+
*/
|
|
52
|
+
range: Range;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* A request to list all presentation for a color. The request's
|
|
56
|
+
* parameter is of type [ColorPresentationParams](#ColorPresentationParams) the
|
|
57
|
+
* response is of type [ColorInformation[]](#ColorInformation) or a Thenable
|
|
58
|
+
* that resolves to such.
|
|
59
|
+
*/
|
|
60
|
+
export declare namespace ColorPresentationRequest {
|
|
61
|
+
const type: ProtocolRequestType<ColorPresentationParams, ColorPresentation[], ColorPresentation[], void, WorkDoneProgressOptions & TextDocumentRegistrationOptions>;
|
|
62
|
+
type HandlerSignature = RequestHandler<ColorPresentationParams, ColorPresentation[], void>;
|
|
63
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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.ColorPresentationRequest = exports.DocumentColorRequest = void 0;
|
|
8
|
+
const messages_1 = require("./messages");
|
|
9
|
+
/**
|
|
10
|
+
* A request to list all color symbols found in a given text document. The request's
|
|
11
|
+
* parameter is of type [DocumentColorParams](#DocumentColorParams) the
|
|
12
|
+
* response is of type [ColorInformation[]](#ColorInformation) or a Thenable
|
|
13
|
+
* that resolves to such.
|
|
14
|
+
*/
|
|
15
|
+
var DocumentColorRequest;
|
|
16
|
+
(function (DocumentColorRequest) {
|
|
17
|
+
DocumentColorRequest.method = 'textDocument/documentColor';
|
|
18
|
+
DocumentColorRequest.type = new messages_1.ProtocolRequestType(DocumentColorRequest.method);
|
|
19
|
+
})(DocumentColorRequest = exports.DocumentColorRequest || (exports.DocumentColorRequest = {}));
|
|
20
|
+
/**
|
|
21
|
+
* A request to list all presentation for a color. The request's
|
|
22
|
+
* parameter is of type [ColorPresentationParams](#ColorPresentationParams) the
|
|
23
|
+
* response is of type [ColorInformation[]](#ColorInformation) or a Thenable
|
|
24
|
+
* that resolves to such.
|
|
25
|
+
*/
|
|
26
|
+
var ColorPresentationRequest;
|
|
27
|
+
(function (ColorPresentationRequest) {
|
|
28
|
+
ColorPresentationRequest.type = new messages_1.ProtocolRequestType('textDocument/colorPresentation');
|
|
29
|
+
})(ColorPresentationRequest = exports.ColorPresentationRequest || (exports.ColorPresentationRequest = {}));
|
|
30
|
+
//# sourceMappingURL=protocol.colorProvider.js.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { RequestHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
|
|
2
|
+
import { ProtocolRequestType } from './messages';
|
|
3
|
+
import { PartialResultParams } from './protocol';
|
|
4
|
+
export interface ConfigurationClientCapabilities {
|
|
5
|
+
/**
|
|
6
|
+
* The workspace client capabilities
|
|
7
|
+
*/
|
|
8
|
+
workspace?: {
|
|
9
|
+
/**
|
|
10
|
+
* The client supports `workspace/configuration` requests.
|
|
11
|
+
*
|
|
12
|
+
* @since 3.6.0
|
|
13
|
+
*/
|
|
14
|
+
configuration?: boolean;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The 'workspace/configuration' request is sent from the server to the client to fetch a certain
|
|
19
|
+
* configuration setting.
|
|
20
|
+
*
|
|
21
|
+
* This pull model replaces the old push model were the client signaled configuration change via an
|
|
22
|
+
* event. If the server still needs to react to configuration changes (since the server caches the
|
|
23
|
+
* result of `workspace/configuration` requests) the server should register for an empty configuration
|
|
24
|
+
* change event and empty the cache if such an event is received.
|
|
25
|
+
*/
|
|
26
|
+
export declare namespace ConfigurationRequest {
|
|
27
|
+
const type: ProtocolRequestType<ConfigurationParams & PartialResultParams, any[], never, void, void>;
|
|
28
|
+
type HandlerSignature = RequestHandler<ConfigurationParams, any[], void>;
|
|
29
|
+
type MiddlewareSignature = (params: ConfigurationParams, token: CancellationToken, next: HandlerSignature) => HandlerResult<any[], void>;
|
|
30
|
+
}
|
|
31
|
+
export interface ConfigurationItem {
|
|
32
|
+
/**
|
|
33
|
+
* The scope to get the configuration section for.
|
|
34
|
+
*/
|
|
35
|
+
scopeUri?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The configuration section asked for.
|
|
38
|
+
*/
|
|
39
|
+
section?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The parameters of a configuration request.
|
|
43
|
+
*/
|
|
44
|
+
export interface ConfigurationParams {
|
|
45
|
+
items: ConfigurationItem[];
|
|
46
|
+
}
|
|
@@ -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.ConfigurationRequest = void 0;
|
|
8
|
+
const messages_1 = require("./messages");
|
|
9
|
+
/**
|
|
10
|
+
* The 'workspace/configuration' request is sent from the server to the client to fetch a certain
|
|
11
|
+
* configuration setting.
|
|
12
|
+
*
|
|
13
|
+
* This pull model replaces the old push model were the client signaled configuration change via an
|
|
14
|
+
* event. If the server still needs to react to configuration changes (since the server caches the
|
|
15
|
+
* result of `workspace/configuration` requests) the server should register for an empty configuration
|
|
16
|
+
* change event and empty the cache if such an event is received.
|
|
17
|
+
*/
|
|
18
|
+
var ConfigurationRequest;
|
|
19
|
+
(function (ConfigurationRequest) {
|
|
20
|
+
ConfigurationRequest.type = new messages_1.ProtocolRequestType('workspace/configuration');
|
|
21
|
+
})(ConfigurationRequest = exports.ConfigurationRequest || (exports.ConfigurationRequest = {}));
|
|
22
|
+
//# sourceMappingURL=protocol.configuration.js.map
|