vscode-languageserver-protocol 3.15.0-next.5 → 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.
- package/License.txt +11 -11
- package/README.md +16 -16
- package/lib/main.d.ts +183 -192
- package/lib/main.js +73 -78
- package/lib/protocol.callHierarchy.proposed.d.ts +108 -108
- package/lib/protocol.callHierarchy.proposed.js +33 -33
- package/lib/protocol.colorProvider.d.ts +73 -73
- package/lib/protocol.colorProvider.js +27 -27
- package/lib/protocol.configuration.d.ts +42 -42
- package/lib/protocol.configuration.js +20 -20
- package/lib/protocol.d.ts +1696 -1693
- package/lib/protocol.declaration.d.ts +42 -42
- package/lib/protocol.declaration.js +20 -20
- package/lib/protocol.foldingRange.d.ts +101 -101
- package/lib/protocol.foldingRange.js +35 -35
- package/lib/protocol.implementation.d.ts +41 -41
- package/lib/protocol.implementation.js +19 -19
- package/lib/protocol.js +545 -543
- package/lib/protocol.progress.proposed.d.ts +116 -116
- package/lib/protocol.progress.proposed.js +39 -39
- package/lib/{protocol.selectionRange.proposed.d.ts → protocol.selectionRange.d.ts} +52 -77
- package/lib/{protocol.selectionRange.proposed.js → protocol.selectionRange.js} +17 -39
- package/lib/protocol.typeDefinition.d.ts +41 -41
- package/lib/protocol.typeDefinition.js +19 -19
- package/lib/protocol.workspaceFolders.d.ts +91 -91
- package/lib/protocol.workspaceFolders.js +22 -22
- package/lib/utils/is.d.ts +9 -9
- package/lib/utils/is.js +42 -42
- package/package.json +30 -30
- package/thirdpartynotices.txt +30 -30
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
import { NotificationType, NotificationHandler } from 'vscode-jsonrpc';
|
|
2
|
-
export interface ProgressClientCapabilities {
|
|
3
|
-
/**
|
|
4
|
-
* Window specific client capabilities.
|
|
5
|
-
*/
|
|
6
|
-
window?: {
|
|
7
|
-
/**
|
|
8
|
-
* Whether client supports handling progress notifications.
|
|
9
|
-
*/
|
|
10
|
-
progress?: boolean;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export interface ProgressStartParams {
|
|
14
|
-
/**
|
|
15
|
-
* A unique identifier to associate multiple progress notifications with
|
|
16
|
-
* the same progress.
|
|
17
|
-
*/
|
|
18
|
-
id: string;
|
|
19
|
-
/**
|
|
20
|
-
* Mandatory title of the progress operation. Used to briefly inform about
|
|
21
|
-
* the kind of operation being performed.
|
|
22
|
-
*
|
|
23
|
-
* Examples: "Indexing" or "Linking dependencies".
|
|
24
|
-
*/
|
|
25
|
-
title: string;
|
|
26
|
-
/**
|
|
27
|
-
* Controls if a cancel button should show to allow the user to cancel the
|
|
28
|
-
* long running operation. Clients that don't support cancellation are allowed
|
|
29
|
-
* to ignore the setting.
|
|
30
|
-
*/
|
|
31
|
-
cancellable?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Optional, more detailed associated progress message. Contains
|
|
34
|
-
* complementary information to the `title`.
|
|
35
|
-
*
|
|
36
|
-
* Examples: "3/25 files", "project/src/module2", "node_modules/some_dep".
|
|
37
|
-
* If unset, the previous progress message (if any) is still valid.
|
|
38
|
-
*/
|
|
39
|
-
message?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Optional progress percentage to display (value 100 is considered 100%).
|
|
42
|
-
* If not provided infinite progress is assumed and clients are allowed
|
|
43
|
-
* to ignore the `percentage` value in subsequent in report notifications.
|
|
44
|
-
*
|
|
45
|
-
* The value should be steadily rising. Clients are free to ignore values
|
|
46
|
-
* that are not following this rule.
|
|
47
|
-
*/
|
|
48
|
-
percentage?: number;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* The `window/progress/start` notification is sent from the server to the client
|
|
52
|
-
* to initiate a progress.
|
|
53
|
-
*/
|
|
54
|
-
export declare namespace ProgressStartNotification {
|
|
55
|
-
const type: NotificationType<ProgressStartParams, void>;
|
|
56
|
-
type HandlerSignature = NotificationHandler<ProgressStartParams>;
|
|
57
|
-
}
|
|
58
|
-
export interface ProgressReportParams {
|
|
59
|
-
/**
|
|
60
|
-
* A unique identifier to associate multiple progress notifications with the same progress.
|
|
61
|
-
*/
|
|
62
|
-
id: string;
|
|
63
|
-
/**
|
|
64
|
-
* Optional, more detailed associated progress message. Contains
|
|
65
|
-
* complementary information to the `title`.
|
|
66
|
-
*
|
|
67
|
-
* Examples: "3/25 files", "project/src/module2", "node_modules/some_dep".
|
|
68
|
-
* If unset, the previous progress message (if any) is still valid.
|
|
69
|
-
*/
|
|
70
|
-
message?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Optional progress percentage to display (value 100 is considered 100%).
|
|
73
|
-
* If not provided infinite progress is assumed and clients are allowed
|
|
74
|
-
* to ignore the `percentage` value in subsequent in report notifications.
|
|
75
|
-
*
|
|
76
|
-
* The value should be steadily rising. Clients are free to ignore values
|
|
77
|
-
* that are not following this rule.
|
|
78
|
-
*/
|
|
79
|
-
percentage?: number;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* The `window/progress/report` notification is sent from the server to the client
|
|
83
|
-
* to initiate a progress.
|
|
84
|
-
*/
|
|
85
|
-
export declare namespace ProgressReportNotification {
|
|
86
|
-
const type: NotificationType<ProgressReportParams, void>;
|
|
87
|
-
type HandlerSignature = NotificationHandler<ProgressReportParams>;
|
|
88
|
-
}
|
|
89
|
-
export interface ProgressDoneParams {
|
|
90
|
-
/**
|
|
91
|
-
* A unique identifier to associate multiple progress notifications with the same progress.
|
|
92
|
-
*/
|
|
93
|
-
id: string;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* The `window/progress/done` notification is sent from the server to the client
|
|
97
|
-
* to initiate a progress.
|
|
98
|
-
*/
|
|
99
|
-
export declare namespace ProgressDoneNotification {
|
|
100
|
-
const type: NotificationType<ProgressDoneParams, void>;
|
|
101
|
-
type HandlerSignature = NotificationHandler<ProgressDoneParams>;
|
|
102
|
-
}
|
|
103
|
-
export interface ProgressCancelParams {
|
|
104
|
-
/**
|
|
105
|
-
* A unique identifier to associate multiple progress notifications with the same progress.
|
|
106
|
-
*/
|
|
107
|
-
id: string;
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* The `window/progress/cancel` notification is sent client to the server to cancel a progress
|
|
111
|
-
* initiated on the server side.
|
|
112
|
-
*/
|
|
113
|
-
export declare namespace ProgressCancelNotification {
|
|
114
|
-
const type: NotificationType<ProgressCancelParams, void>;
|
|
115
|
-
type HandlerSignature = NotificationHandler<ProgressCancelParams>;
|
|
116
|
-
}
|
|
1
|
+
import { NotificationType, NotificationHandler } from 'vscode-jsonrpc';
|
|
2
|
+
export interface ProgressClientCapabilities {
|
|
3
|
+
/**
|
|
4
|
+
* Window specific client capabilities.
|
|
5
|
+
*/
|
|
6
|
+
window?: {
|
|
7
|
+
/**
|
|
8
|
+
* Whether client supports handling progress notifications.
|
|
9
|
+
*/
|
|
10
|
+
progress?: boolean;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface ProgressStartParams {
|
|
14
|
+
/**
|
|
15
|
+
* A unique identifier to associate multiple progress notifications with
|
|
16
|
+
* the same progress.
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/**
|
|
20
|
+
* Mandatory title of the progress operation. Used to briefly inform about
|
|
21
|
+
* the kind of operation being performed.
|
|
22
|
+
*
|
|
23
|
+
* Examples: "Indexing" or "Linking dependencies".
|
|
24
|
+
*/
|
|
25
|
+
title: string;
|
|
26
|
+
/**
|
|
27
|
+
* Controls if a cancel button should show to allow the user to cancel the
|
|
28
|
+
* long running operation. Clients that don't support cancellation are allowed
|
|
29
|
+
* to ignore the setting.
|
|
30
|
+
*/
|
|
31
|
+
cancellable?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Optional, more detailed associated progress message. Contains
|
|
34
|
+
* complementary information to the `title`.
|
|
35
|
+
*
|
|
36
|
+
* Examples: "3/25 files", "project/src/module2", "node_modules/some_dep".
|
|
37
|
+
* If unset, the previous progress message (if any) is still valid.
|
|
38
|
+
*/
|
|
39
|
+
message?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Optional progress percentage to display (value 100 is considered 100%).
|
|
42
|
+
* If not provided infinite progress is assumed and clients are allowed
|
|
43
|
+
* to ignore the `percentage` value in subsequent in report notifications.
|
|
44
|
+
*
|
|
45
|
+
* The value should be steadily rising. Clients are free to ignore values
|
|
46
|
+
* that are not following this rule.
|
|
47
|
+
*/
|
|
48
|
+
percentage?: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The `window/progress/start` notification is sent from the server to the client
|
|
52
|
+
* to initiate a progress.
|
|
53
|
+
*/
|
|
54
|
+
export declare namespace ProgressStartNotification {
|
|
55
|
+
const type: NotificationType<ProgressStartParams, void>;
|
|
56
|
+
type HandlerSignature = NotificationHandler<ProgressStartParams>;
|
|
57
|
+
}
|
|
58
|
+
export interface ProgressReportParams {
|
|
59
|
+
/**
|
|
60
|
+
* A unique identifier to associate multiple progress notifications with the same progress.
|
|
61
|
+
*/
|
|
62
|
+
id: string;
|
|
63
|
+
/**
|
|
64
|
+
* Optional, more detailed associated progress message. Contains
|
|
65
|
+
* complementary information to the `title`.
|
|
66
|
+
*
|
|
67
|
+
* Examples: "3/25 files", "project/src/module2", "node_modules/some_dep".
|
|
68
|
+
* If unset, the previous progress message (if any) is still valid.
|
|
69
|
+
*/
|
|
70
|
+
message?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Optional progress percentage to display (value 100 is considered 100%).
|
|
73
|
+
* If not provided infinite progress is assumed and clients are allowed
|
|
74
|
+
* to ignore the `percentage` value in subsequent in report notifications.
|
|
75
|
+
*
|
|
76
|
+
* The value should be steadily rising. Clients are free to ignore values
|
|
77
|
+
* that are not following this rule.
|
|
78
|
+
*/
|
|
79
|
+
percentage?: number;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The `window/progress/report` notification is sent from the server to the client
|
|
83
|
+
* to initiate a progress.
|
|
84
|
+
*/
|
|
85
|
+
export declare namespace ProgressReportNotification {
|
|
86
|
+
const type: NotificationType<ProgressReportParams, void>;
|
|
87
|
+
type HandlerSignature = NotificationHandler<ProgressReportParams>;
|
|
88
|
+
}
|
|
89
|
+
export interface ProgressDoneParams {
|
|
90
|
+
/**
|
|
91
|
+
* A unique identifier to associate multiple progress notifications with the same progress.
|
|
92
|
+
*/
|
|
93
|
+
id: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* The `window/progress/done` notification is sent from the server to the client
|
|
97
|
+
* to initiate a progress.
|
|
98
|
+
*/
|
|
99
|
+
export declare namespace ProgressDoneNotification {
|
|
100
|
+
const type: NotificationType<ProgressDoneParams, void>;
|
|
101
|
+
type HandlerSignature = NotificationHandler<ProgressDoneParams>;
|
|
102
|
+
}
|
|
103
|
+
export interface ProgressCancelParams {
|
|
104
|
+
/**
|
|
105
|
+
* A unique identifier to associate multiple progress notifications with the same progress.
|
|
106
|
+
*/
|
|
107
|
+
id: string;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* The `window/progress/cancel` notification is sent client to the server to cancel a progress
|
|
111
|
+
* initiated on the server side.
|
|
112
|
+
*/
|
|
113
|
+
export declare namespace ProgressCancelNotification {
|
|
114
|
+
const type: NotificationType<ProgressCancelParams, void>;
|
|
115
|
+
type HandlerSignature = NotificationHandler<ProgressCancelParams>;
|
|
116
|
+
}
|
|
@@ -1,39 +1,39 @@
|
|
|
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 `window/progress/start` notification is sent from the server to the client
|
|
10
|
-
* to initiate a progress.
|
|
11
|
-
*/
|
|
12
|
-
var ProgressStartNotification;
|
|
13
|
-
(function (ProgressStartNotification) {
|
|
14
|
-
ProgressStartNotification.type = new vscode_jsonrpc_1.NotificationType('window/progress/start');
|
|
15
|
-
})(ProgressStartNotification = exports.ProgressStartNotification || (exports.ProgressStartNotification = {}));
|
|
16
|
-
/**
|
|
17
|
-
* The `window/progress/report` notification is sent from the server to the client
|
|
18
|
-
* to initiate a progress.
|
|
19
|
-
*/
|
|
20
|
-
var ProgressReportNotification;
|
|
21
|
-
(function (ProgressReportNotification) {
|
|
22
|
-
ProgressReportNotification.type = new vscode_jsonrpc_1.NotificationType('window/progress/report');
|
|
23
|
-
})(ProgressReportNotification = exports.ProgressReportNotification || (exports.ProgressReportNotification = {}));
|
|
24
|
-
/**
|
|
25
|
-
* The `window/progress/done` notification is sent from the server to the client
|
|
26
|
-
* to initiate a progress.
|
|
27
|
-
*/
|
|
28
|
-
var ProgressDoneNotification;
|
|
29
|
-
(function (ProgressDoneNotification) {
|
|
30
|
-
ProgressDoneNotification.type = new vscode_jsonrpc_1.NotificationType('window/progress/done');
|
|
31
|
-
})(ProgressDoneNotification = exports.ProgressDoneNotification || (exports.ProgressDoneNotification = {}));
|
|
32
|
-
/**
|
|
33
|
-
* The `window/progress/cancel` notification is sent client to the server to cancel a progress
|
|
34
|
-
* initiated on the server side.
|
|
35
|
-
*/
|
|
36
|
-
var ProgressCancelNotification;
|
|
37
|
-
(function (ProgressCancelNotification) {
|
|
38
|
-
ProgressCancelNotification.type = new vscode_jsonrpc_1.NotificationType('window/progress/cancel');
|
|
39
|
-
})(ProgressCancelNotification = exports.ProgressCancelNotification || (exports.ProgressCancelNotification = {}));
|
|
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 `window/progress/start` notification is sent from the server to the client
|
|
10
|
+
* to initiate a progress.
|
|
11
|
+
*/
|
|
12
|
+
var ProgressStartNotification;
|
|
13
|
+
(function (ProgressStartNotification) {
|
|
14
|
+
ProgressStartNotification.type = new vscode_jsonrpc_1.NotificationType('window/progress/start');
|
|
15
|
+
})(ProgressStartNotification = exports.ProgressStartNotification || (exports.ProgressStartNotification = {}));
|
|
16
|
+
/**
|
|
17
|
+
* The `window/progress/report` notification is sent from the server to the client
|
|
18
|
+
* to initiate a progress.
|
|
19
|
+
*/
|
|
20
|
+
var ProgressReportNotification;
|
|
21
|
+
(function (ProgressReportNotification) {
|
|
22
|
+
ProgressReportNotification.type = new vscode_jsonrpc_1.NotificationType('window/progress/report');
|
|
23
|
+
})(ProgressReportNotification = exports.ProgressReportNotification || (exports.ProgressReportNotification = {}));
|
|
24
|
+
/**
|
|
25
|
+
* The `window/progress/done` notification is sent from the server to the client
|
|
26
|
+
* to initiate a progress.
|
|
27
|
+
*/
|
|
28
|
+
var ProgressDoneNotification;
|
|
29
|
+
(function (ProgressDoneNotification) {
|
|
30
|
+
ProgressDoneNotification.type = new vscode_jsonrpc_1.NotificationType('window/progress/done');
|
|
31
|
+
})(ProgressDoneNotification = exports.ProgressDoneNotification || (exports.ProgressDoneNotification = {}));
|
|
32
|
+
/**
|
|
33
|
+
* The `window/progress/cancel` notification is sent client to the server to cancel a progress
|
|
34
|
+
* initiated on the server side.
|
|
35
|
+
*/
|
|
36
|
+
var ProgressCancelNotification;
|
|
37
|
+
(function (ProgressCancelNotification) {
|
|
38
|
+
ProgressCancelNotification.type = new vscode_jsonrpc_1.NotificationType('window/progress/cancel');
|
|
39
|
+
})(ProgressCancelNotification = exports.ProgressCancelNotification || (exports.ProgressCancelNotification = {}));
|
|
@@ -1,77 +1,52 @@
|
|
|
1
|
-
import { RequestType, RequestHandler } from 'vscode-jsonrpc';
|
|
2
|
-
import { TextDocumentIdentifier, Position,
|
|
3
|
-
import { TextDocumentRegistrationOptions, StaticRegistrationOptions } from './protocol';
|
|
4
|
-
export interface SelectionRangeClientCapabilities {
|
|
5
|
-
/**
|
|
6
|
-
* The text document client capabilities
|
|
7
|
-
*/
|
|
8
|
-
textDocument?: {
|
|
9
|
-
/**
|
|
10
|
-
* Capabilities specific to `textDocument/selectionRange` requests
|
|
11
|
-
*/
|
|
12
|
-
selectionRange?: {
|
|
13
|
-
/**
|
|
14
|
-
* Whether implementation supports dynamic registration for selection range providers. If this is set to `true`
|
|
15
|
-
* the client supports the new `(SelectionRangeProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
|
16
|
-
* return value for the corresponding server capability as well.
|
|
17
|
-
*/
|
|
18
|
-
dynamicRegistration?: boolean;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export interface
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
parent?: SelectionRange;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* The SelectionRange namespace provides helper function to work with
|
|
57
|
-
* SelectionRange literals.
|
|
58
|
-
*/
|
|
59
|
-
export declare namespace SelectionRange {
|
|
60
|
-
/**
|
|
61
|
-
* Creates a new SelectionRange
|
|
62
|
-
* @param range the range.
|
|
63
|
-
* @param parent an optional parent.
|
|
64
|
-
*/
|
|
65
|
-
function create(range: Range, parent?: SelectionRange): SelectionRange;
|
|
66
|
-
function is(value: any): value is SelectionRange;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* A request to provide selection ranges in a document. The request's
|
|
70
|
-
* parameter is of type [SelectionRangeParams](#SelectionRangeParams), the
|
|
71
|
-
* response is of type [SelectionRange[]](#SelectionRange[]) or a Thenable
|
|
72
|
-
* that resolves to such.
|
|
73
|
-
*/
|
|
74
|
-
export declare namespace SelectionRangeRequest {
|
|
75
|
-
const type: RequestType<SelectionRangeParams, SelectionRange[] | null, any, any>;
|
|
76
|
-
type HandlerSignature = RequestHandler<SelectionRangeParams, SelectionRange[] | null, void>;
|
|
77
|
-
}
|
|
1
|
+
import { RequestType, RequestHandler } from 'vscode-jsonrpc';
|
|
2
|
+
import { TextDocumentIdentifier, Position, SelectionRange } from 'vscode-languageserver-types';
|
|
3
|
+
import { TextDocumentRegistrationOptions, StaticRegistrationOptions } from './protocol';
|
|
4
|
+
export interface SelectionRangeClientCapabilities {
|
|
5
|
+
/**
|
|
6
|
+
* The text document client capabilities
|
|
7
|
+
*/
|
|
8
|
+
textDocument?: {
|
|
9
|
+
/**
|
|
10
|
+
* Capabilities specific to `textDocument/selectionRange` requests
|
|
11
|
+
*/
|
|
12
|
+
selectionRange?: {
|
|
13
|
+
/**
|
|
14
|
+
* Whether implementation supports dynamic registration for selection range providers. If this is set to `true`
|
|
15
|
+
* the client supports the new `(SelectionRangeProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
|
16
|
+
* return value for the corresponding server capability as well.
|
|
17
|
+
*/
|
|
18
|
+
dynamicRegistration?: boolean;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface SelectionRangeProviderOptions {
|
|
23
|
+
}
|
|
24
|
+
export interface SelectionRangeServerCapabilities {
|
|
25
|
+
/**
|
|
26
|
+
* The server provides selection range support.
|
|
27
|
+
*/
|
|
28
|
+
selectionRangeProvider?: boolean | (TextDocumentRegistrationOptions & StaticRegistrationOptions & SelectionRangeProviderOptions);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* A parameter literal used in selection range requests.
|
|
32
|
+
*/
|
|
33
|
+
export interface SelectionRangeParams {
|
|
34
|
+
/**
|
|
35
|
+
* The text document.
|
|
36
|
+
*/
|
|
37
|
+
textDocument: TextDocumentIdentifier;
|
|
38
|
+
/**
|
|
39
|
+
* The positions inside the text document.
|
|
40
|
+
*/
|
|
41
|
+
positions: Position[];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* A request to provide selection ranges in a document. The request's
|
|
45
|
+
* parameter is of type [SelectionRangeParams](#SelectionRangeParams), the
|
|
46
|
+
* response is of type [SelectionRange[]](#SelectionRange[]) or a Thenable
|
|
47
|
+
* that resolves to such.
|
|
48
|
+
*/
|
|
49
|
+
export declare namespace SelectionRangeRequest {
|
|
50
|
+
const type: RequestType<SelectionRangeParams, SelectionRange[] | null, any, any>;
|
|
51
|
+
type HandlerSignature = RequestHandler<SelectionRangeParams, SelectionRange[] | null, void>;
|
|
52
|
+
}
|
|
@@ -1,39 +1,17 @@
|
|
|
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
|
-
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*
|
|
11
|
-
* SelectionRange
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* @param parent an optional parent.
|
|
19
|
-
*/
|
|
20
|
-
function create(range, parent) {
|
|
21
|
-
return { range, parent };
|
|
22
|
-
}
|
|
23
|
-
SelectionRange.create = create;
|
|
24
|
-
function is(value) {
|
|
25
|
-
let candidate = value;
|
|
26
|
-
return candidate !== undefined && vscode_languageserver_types_1.Range.is(candidate.range) && (candidate.parent === undefined || SelectionRange.is(candidate.parent));
|
|
27
|
-
}
|
|
28
|
-
SelectionRange.is = is;
|
|
29
|
-
})(SelectionRange = exports.SelectionRange || (exports.SelectionRange = {}));
|
|
30
|
-
/**
|
|
31
|
-
* A request to provide selection ranges in a document. The request's
|
|
32
|
-
* parameter is of type [SelectionRangeParams](#SelectionRangeParams), the
|
|
33
|
-
* response is of type [SelectionRange[]](#SelectionRange[]) or a Thenable
|
|
34
|
-
* that resolves to such.
|
|
35
|
-
*/
|
|
36
|
-
var SelectionRangeRequest;
|
|
37
|
-
(function (SelectionRangeRequest) {
|
|
38
|
-
SelectionRangeRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/selectionRange');
|
|
39
|
-
})(SelectionRangeRequest = exports.SelectionRangeRequest || (exports.SelectionRangeRequest = {}));
|
|
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
|
+
const vscode_jsonrpc_1 = require("vscode-jsonrpc");
|
|
8
|
+
/**
|
|
9
|
+
* A request to provide selection ranges in a document. The request's
|
|
10
|
+
* parameter is of type [SelectionRangeParams](#SelectionRangeParams), the
|
|
11
|
+
* response is of type [SelectionRange[]](#SelectionRange[]) or a Thenable
|
|
12
|
+
* that resolves to such.
|
|
13
|
+
*/
|
|
14
|
+
var SelectionRangeRequest;
|
|
15
|
+
(function (SelectionRangeRequest) {
|
|
16
|
+
SelectionRangeRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/selectionRange');
|
|
17
|
+
})(SelectionRangeRequest = exports.SelectionRangeRequest || (exports.SelectionRangeRequest = {}));
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { RequestType, RequestHandler } from 'vscode-jsonrpc';
|
|
2
|
-
import { Definition, DefinitionLink, LocationLink, Location } from 'vscode-languageserver-types';
|
|
3
|
-
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams } from './protocol';
|
|
4
|
-
export interface TypeDefinitionClientCapabilities {
|
|
5
|
-
/**
|
|
6
|
-
* The text document client capabilities
|
|
7
|
-
*/
|
|
8
|
-
textDocument?: {
|
|
9
|
-
/**
|
|
10
|
-
* Capabilities specific to the `textDocument/typeDefinition`
|
|
11
|
-
*/
|
|
12
|
-
typeDefinition?: {
|
|
13
|
-
/**
|
|
14
|
-
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
15
|
-
* the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
|
16
|
-
* return value for the corresponding server capability as well.
|
|
17
|
-
*/
|
|
18
|
-
dynamicRegistration?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* The client supports additional metadata in the form of definition links.
|
|
21
|
-
*/
|
|
22
|
-
linkSupport?: boolean;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export interface TypeDefinitionServerCapabilities {
|
|
27
|
-
/**
|
|
28
|
-
* The server provides Goto Type Definition support.
|
|
29
|
-
*/
|
|
30
|
-
typeDefinitionProvider?: boolean | (TextDocumentRegistrationOptions & StaticRegistrationOptions);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* A request to resolve the type definition locations of a symbol at a given text
|
|
34
|
-
* document position. The request's parameter is of type [TextDocumentPositioParams]
|
|
35
|
-
* (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
|
|
36
|
-
* Thenable that resolves to such.
|
|
37
|
-
*/
|
|
38
|
-
export declare namespace TypeDefinitionRequest {
|
|
39
|
-
const type: RequestType<TextDocumentPositionParams, Location | Location[] | LocationLink[] | null, void, TextDocumentRegistrationOptions>;
|
|
40
|
-
type HandlerSignature = RequestHandler<TextDocumentPositionParams, Definition | DefinitionLink[] | null, void>;
|
|
41
|
-
}
|
|
1
|
+
import { RequestType, RequestHandler } from 'vscode-jsonrpc';
|
|
2
|
+
import { Definition, DefinitionLink, LocationLink, Location } from 'vscode-languageserver-types';
|
|
3
|
+
import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams } from './protocol';
|
|
4
|
+
export interface TypeDefinitionClientCapabilities {
|
|
5
|
+
/**
|
|
6
|
+
* The text document client capabilities
|
|
7
|
+
*/
|
|
8
|
+
textDocument?: {
|
|
9
|
+
/**
|
|
10
|
+
* Capabilities specific to the `textDocument/typeDefinition`
|
|
11
|
+
*/
|
|
12
|
+
typeDefinition?: {
|
|
13
|
+
/**
|
|
14
|
+
* Whether implementation supports dynamic registration. If this is set to `true`
|
|
15
|
+
* the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
|
16
|
+
* return value for the corresponding server capability as well.
|
|
17
|
+
*/
|
|
18
|
+
dynamicRegistration?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* The client supports additional metadata in the form of definition links.
|
|
21
|
+
*/
|
|
22
|
+
linkSupport?: boolean;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface TypeDefinitionServerCapabilities {
|
|
27
|
+
/**
|
|
28
|
+
* The server provides Goto Type Definition support.
|
|
29
|
+
*/
|
|
30
|
+
typeDefinitionProvider?: boolean | (TextDocumentRegistrationOptions & StaticRegistrationOptions);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A request to resolve the type definition locations of a symbol at a given text
|
|
34
|
+
* document position. The request's parameter is of type [TextDocumentPositioParams]
|
|
35
|
+
* (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
|
|
36
|
+
* Thenable that resolves to such.
|
|
37
|
+
*/
|
|
38
|
+
export declare namespace TypeDefinitionRequest {
|
|
39
|
+
const type: RequestType<TextDocumentPositionParams, Location | Location[] | LocationLink[] | null, void, TextDocumentRegistrationOptions>;
|
|
40
|
+
type HandlerSignature = RequestHandler<TextDocumentPositionParams, Definition | DefinitionLink[] | null, void>;
|
|
41
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
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
|
-
// @ts-ignore: to avoid inlining LocatioLink as dynamic import
|
|
9
|
-
let __noDynamicImport;
|
|
10
|
-
/**
|
|
11
|
-
* A request to resolve the type definition locations of a symbol at a given text
|
|
12
|
-
* document position. The request's parameter is of type [TextDocumentPositioParams]
|
|
13
|
-
* (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
|
|
14
|
-
* Thenable that resolves to such.
|
|
15
|
-
*/
|
|
16
|
-
var TypeDefinitionRequest;
|
|
17
|
-
(function (TypeDefinitionRequest) {
|
|
18
|
-
TypeDefinitionRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/typeDefinition');
|
|
19
|
-
})(TypeDefinitionRequest = exports.TypeDefinitionRequest || (exports.TypeDefinitionRequest = {}));
|
|
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
|
+
// @ts-ignore: to avoid inlining LocatioLink as dynamic import
|
|
9
|
+
let __noDynamicImport;
|
|
10
|
+
/**
|
|
11
|
+
* A request to resolve the type definition locations of a symbol at a given text
|
|
12
|
+
* document position. The request's parameter is of type [TextDocumentPositioParams]
|
|
13
|
+
* (#TextDocumentPositionParams) the response is of type [Definition](#Definition) or a
|
|
14
|
+
* Thenable that resolves to such.
|
|
15
|
+
*/
|
|
16
|
+
var TypeDefinitionRequest;
|
|
17
|
+
(function (TypeDefinitionRequest) {
|
|
18
|
+
TypeDefinitionRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/typeDefinition');
|
|
19
|
+
})(TypeDefinitionRequest = exports.TypeDefinitionRequest || (exports.TypeDefinitionRequest = {}));
|