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.
@@ -1,108 +1,108 @@
1
- import { RequestType, RequestHandler } from 'vscode-jsonrpc';
2
- import { SymbolKind, Range } from 'vscode-languageserver-types';
3
- import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams } from './protocol';
4
- export interface CallHierarchyClientCapabilities {
5
- /**
6
- * The text document client capabilities
7
- */
8
- textDocument?: {
9
- /**
10
- * Capabilities specific to the `textDocument/callHierarchy`
11
- */
12
- callHierarchy?: {
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
- };
21
- }
22
- export interface CallHierarchyServerCapabilities {
23
- /**
24
- * The server provides Call Hierarchy support.
25
- */
26
- callHierarchyProvider?: boolean | (TextDocumentRegistrationOptions & StaticRegistrationOptions);
27
- }
28
- /**
29
- * The parameter of a `textDocument/callHierarchy` request extends the `TextDocumentPositionParams` with the direction of calls to resolve.
30
- */
31
- export interface CallHierarchyParams extends TextDocumentPositionParams {
32
- /**
33
- * The direction of calls to provide.
34
- */
35
- direction: CallHierarchyDirection;
36
- }
37
- /**
38
- * The direction of a call hierarchy request.
39
- */
40
- export declare namespace CallHierarchyDirection {
41
- /**
42
- * The callers
43
- */
44
- const CallsFrom: 1;
45
- /**
46
- * The callees
47
- */
48
- const CallsTo: 2;
49
- }
50
- export declare type CallHierarchyDirection = 1 | 2;
51
- export interface CallHierarchyItem {
52
- /**
53
- * The name of the symbol targeted by the call hierarchy request.
54
- */
55
- name: string;
56
- /**
57
- * More detail for this symbol, e.g the signature of a function.
58
- */
59
- detail?: string;
60
- /**
61
- * The kind of this symbol.
62
- */
63
- kind: SymbolKind;
64
- /**
65
- * URI of the document containing the symbol.
66
- */
67
- uri: string;
68
- /**
69
- * The range enclosing this symbol not including leading/trailing whitespace but everything else
70
- * like comments. This information is typically used to determine if the the clients cursor is
71
- * inside the symbol to reveal in the symbol in the UI.
72
- */
73
- range: Range;
74
- /**
75
- * The range that should be selected and revealed when this symbol is being picked, e.g the name of a function.
76
- * Must be contained by the the `range`.
77
- */
78
- selectionRange: Range;
79
- }
80
- /**
81
- * The result of a `textDocument/callHierarchy` request.
82
- */
83
- export interface CallHierarchyCall {
84
- /**
85
- * The source range of the reference. The range is a sub range of the `from` symbol range.
86
- */
87
- range: Range;
88
- /**
89
- * The symbol that contains the reference.
90
- */
91
- from: CallHierarchyItem;
92
- /**
93
- * The symbol that is referenced.
94
- */
95
- to: CallHierarchyItem;
96
- }
97
- /**
98
- * Request to provide the call hierarchy at a given text document position.
99
- *
100
- * The request's parameter is of type [CallHierarchyParams](#CallHierarchyParams). The response
101
- * is of type [CallHierarchyCall[]](#CallHierarchyCall) or a Thenable that resolves to such.
102
- *
103
- * Evaluates the symbol defined (or referenced) at the given position, and returns all incoming or outgoing calls to the symbol(s).
104
- */
105
- export declare namespace CallHierarchyRequest {
106
- const type: RequestType<CallHierarchyParams, CallHierarchyCall[], void, TextDocumentRegistrationOptions>;
107
- type HandlerSignature = RequestHandler<CallHierarchyParams, CallHierarchyCall[] | null, void>;
108
- }
1
+ import { RequestType, RequestHandler } from 'vscode-jsonrpc';
2
+ import { SymbolKind, Range } from 'vscode-languageserver-types';
3
+ import { TextDocumentRegistrationOptions, StaticRegistrationOptions, TextDocumentPositionParams } from './protocol';
4
+ export interface CallHierarchyClientCapabilities {
5
+ /**
6
+ * The text document client capabilities
7
+ */
8
+ textDocument?: {
9
+ /**
10
+ * Capabilities specific to the `textDocument/callHierarchy`
11
+ */
12
+ callHierarchy?: {
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
+ };
21
+ }
22
+ export interface CallHierarchyServerCapabilities {
23
+ /**
24
+ * The server provides Call Hierarchy support.
25
+ */
26
+ callHierarchyProvider?: boolean | (TextDocumentRegistrationOptions & StaticRegistrationOptions);
27
+ }
28
+ /**
29
+ * The parameter of a `textDocument/callHierarchy` request extends the `TextDocumentPositionParams` with the direction of calls to resolve.
30
+ */
31
+ export interface CallHierarchyParams extends TextDocumentPositionParams {
32
+ /**
33
+ * The direction of calls to provide.
34
+ */
35
+ direction: CallHierarchyDirection;
36
+ }
37
+ /**
38
+ * The direction of a call hierarchy request.
39
+ */
40
+ export declare namespace CallHierarchyDirection {
41
+ /**
42
+ * The callers
43
+ */
44
+ const CallsFrom: 1;
45
+ /**
46
+ * The callees
47
+ */
48
+ const CallsTo: 2;
49
+ }
50
+ export declare type CallHierarchyDirection = 1 | 2;
51
+ export interface CallHierarchyItem {
52
+ /**
53
+ * The name of the symbol targeted by the call hierarchy request.
54
+ */
55
+ name: string;
56
+ /**
57
+ * More detail for this symbol, e.g the signature of a function.
58
+ */
59
+ detail?: string;
60
+ /**
61
+ * The kind of this symbol.
62
+ */
63
+ kind: SymbolKind;
64
+ /**
65
+ * URI of the document containing the symbol.
66
+ */
67
+ uri: string;
68
+ /**
69
+ * The range enclosing this symbol not including leading/trailing whitespace but everything else
70
+ * like comments. This information is typically used to determine if the the clients cursor is
71
+ * inside the symbol to reveal in the symbol in the UI.
72
+ */
73
+ range: Range;
74
+ /**
75
+ * The range that should be selected and revealed when this symbol is being picked, e.g the name of a function.
76
+ * Must be contained by the the `range`.
77
+ */
78
+ selectionRange: Range;
79
+ }
80
+ /**
81
+ * The result of a `textDocument/callHierarchy` request.
82
+ */
83
+ export interface CallHierarchyCall {
84
+ /**
85
+ * The source range of the reference. The range is a sub range of the `from` symbol range.
86
+ */
87
+ range: Range;
88
+ /**
89
+ * The symbol that contains the reference.
90
+ */
91
+ from: CallHierarchyItem;
92
+ /**
93
+ * The symbol that is referenced.
94
+ */
95
+ to: CallHierarchyItem;
96
+ }
97
+ /**
98
+ * Request to provide the call hierarchy at a given text document position.
99
+ *
100
+ * The request's parameter is of type [CallHierarchyParams](#CallHierarchyParams). The response
101
+ * is of type [CallHierarchyCall[]](#CallHierarchyCall) or a Thenable that resolves to such.
102
+ *
103
+ * Evaluates the symbol defined (or referenced) at the given position, and returns all incoming or outgoing calls to the symbol(s).
104
+ */
105
+ export declare namespace CallHierarchyRequest {
106
+ const type: RequestType<CallHierarchyParams, CallHierarchyCall[], void, TextDocumentRegistrationOptions>;
107
+ type HandlerSignature = RequestHandler<CallHierarchyParams, CallHierarchyCall[] | null, void>;
108
+ }
@@ -1,33 +1,33 @@
1
- /* --------------------------------------------------------------------------------------------
2
- * Copyright (c) TypeFox and others. 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 direction of a call hierarchy request.
10
- */
11
- var CallHierarchyDirection;
12
- (function (CallHierarchyDirection) {
13
- /**
14
- * The callers
15
- */
16
- CallHierarchyDirection.CallsFrom = 1;
17
- /**
18
- * The callees
19
- */
20
- CallHierarchyDirection.CallsTo = 2;
21
- })(CallHierarchyDirection = exports.CallHierarchyDirection || (exports.CallHierarchyDirection = {}));
22
- /**
23
- * Request to provide the call hierarchy at a given text document position.
24
- *
25
- * The request's parameter is of type [CallHierarchyParams](#CallHierarchyParams). The response
26
- * is of type [CallHierarchyCall[]](#CallHierarchyCall) or a Thenable that resolves to such.
27
- *
28
- * Evaluates the symbol defined (or referenced) at the given position, and returns all incoming or outgoing calls to the symbol(s).
29
- */
30
- var CallHierarchyRequest;
31
- (function (CallHierarchyRequest) {
32
- CallHierarchyRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/callHierarchy');
33
- })(CallHierarchyRequest = exports.CallHierarchyRequest || (exports.CallHierarchyRequest = {}));
1
+ /* --------------------------------------------------------------------------------------------
2
+ * Copyright (c) TypeFox and others. 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 direction of a call hierarchy request.
10
+ */
11
+ var CallHierarchyDirection;
12
+ (function (CallHierarchyDirection) {
13
+ /**
14
+ * The callers
15
+ */
16
+ CallHierarchyDirection.CallsFrom = 1;
17
+ /**
18
+ * The callees
19
+ */
20
+ CallHierarchyDirection.CallsTo = 2;
21
+ })(CallHierarchyDirection = exports.CallHierarchyDirection || (exports.CallHierarchyDirection = {}));
22
+ /**
23
+ * Request to provide the call hierarchy at a given text document position.
24
+ *
25
+ * The request's parameter is of type [CallHierarchyParams](#CallHierarchyParams). The response
26
+ * is of type [CallHierarchyCall[]](#CallHierarchyCall) or a Thenable that resolves to such.
27
+ *
28
+ * Evaluates the symbol defined (or referenced) at the given position, and returns all incoming or outgoing calls to the symbol(s).
29
+ */
30
+ var CallHierarchyRequest;
31
+ (function (CallHierarchyRequest) {
32
+ CallHierarchyRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/callHierarchy');
33
+ })(CallHierarchyRequest = exports.CallHierarchyRequest || (exports.CallHierarchyRequest = {}));
@@ -1,73 +1,73 @@
1
- import { RequestType } from 'vscode-jsonrpc';
2
- import { TextDocumentRegistrationOptions, StaticRegistrationOptions } from './protocol';
3
- import { TextDocumentIdentifier, Range, Color, ColorInformation, ColorPresentation } from 'vscode-languageserver-types';
4
- export interface ColorClientCapabilities {
5
- /**
6
- * The text document client capabilities
7
- */
8
- textDocument?: {
9
- /**
10
- * Capabilities specific to the colorProvider
11
- */
12
- colorProvider?: {
13
- /**
14
- * Whether implementation supports dynamic registration. If this is set to `true`
15
- * the client supports the new `(ColorProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions)`
16
- * return value for the corresponding server capability as well.
17
- */
18
- dynamicRegistration?: boolean;
19
- };
20
- };
21
- }
22
- export interface ColorProviderOptions {
23
- }
24
- export interface ColorServerCapabilities {
25
- /**
26
- * The server provides color provider support.
27
- */
28
- colorProvider?: boolean | ColorProviderOptions | (ColorProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions);
29
- }
30
- /**
31
- * Parameters for a [DocumentColorRequest](#DocumentColorRequest).
32
- */
33
- export interface DocumentColorParams {
34
- /**
35
- * The text document.
36
- */
37
- textDocument: TextDocumentIdentifier;
38
- }
39
- /**
40
- * A request to list all color symbols found in a given text document. The request's
41
- * parameter is of type [DocumentColorParams](#DocumentColorParams) the
42
- * response is of type [ColorInformation[]](#ColorInformation) or a Thenable
43
- * that resolves to such.
44
- */
45
- export declare namespace DocumentColorRequest {
46
- const type: RequestType<DocumentColorParams, ColorInformation[], void, TextDocumentRegistrationOptions>;
47
- }
48
- /**
49
- * Parameters for a [ColorPresentationRequest](#ColorPresentationRequest).
50
- */
51
- export interface ColorPresentationParams {
52
- /**
53
- * The text document.
54
- */
55
- textDocument: TextDocumentIdentifier;
56
- /**
57
- * The color to request presentations for.
58
- */
59
- color: Color;
60
- /**
61
- * The range where the color would be inserted. Serves as a context.
62
- */
63
- range: Range;
64
- }
65
- /**
66
- * A request to list all presentation for a color. The request's
67
- * parameter is of type [ColorPresentationParams](#ColorPresentationParams) the
68
- * response is of type [ColorInformation[]](#ColorInformation) or a Thenable
69
- * that resolves to such.
70
- */
71
- export declare namespace ColorPresentationRequest {
72
- const type: RequestType<ColorPresentationParams, ColorPresentation[], void, TextDocumentRegistrationOptions>;
73
- }
1
+ import { RequestType } from 'vscode-jsonrpc';
2
+ import { TextDocumentRegistrationOptions, StaticRegistrationOptions } from './protocol';
3
+ import { TextDocumentIdentifier, Range, Color, ColorInformation, ColorPresentation } from 'vscode-languageserver-types';
4
+ export interface ColorClientCapabilities {
5
+ /**
6
+ * The text document client capabilities
7
+ */
8
+ textDocument?: {
9
+ /**
10
+ * Capabilities specific to the colorProvider
11
+ */
12
+ colorProvider?: {
13
+ /**
14
+ * Whether implementation supports dynamic registration. If this is set to `true`
15
+ * the client supports the new `(ColorProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions)`
16
+ * return value for the corresponding server capability as well.
17
+ */
18
+ dynamicRegistration?: boolean;
19
+ };
20
+ };
21
+ }
22
+ export interface ColorProviderOptions {
23
+ }
24
+ export interface ColorServerCapabilities {
25
+ /**
26
+ * The server provides color provider support.
27
+ */
28
+ colorProvider?: boolean | ColorProviderOptions | (ColorProviderOptions & TextDocumentRegistrationOptions & StaticRegistrationOptions);
29
+ }
30
+ /**
31
+ * Parameters for a [DocumentColorRequest](#DocumentColorRequest).
32
+ */
33
+ export interface DocumentColorParams {
34
+ /**
35
+ * The text document.
36
+ */
37
+ textDocument: TextDocumentIdentifier;
38
+ }
39
+ /**
40
+ * A request to list all color symbols found in a given text document. The request's
41
+ * parameter is of type [DocumentColorParams](#DocumentColorParams) the
42
+ * response is of type [ColorInformation[]](#ColorInformation) or a Thenable
43
+ * that resolves to such.
44
+ */
45
+ export declare namespace DocumentColorRequest {
46
+ const type: RequestType<DocumentColorParams, ColorInformation[], void, TextDocumentRegistrationOptions>;
47
+ }
48
+ /**
49
+ * Parameters for a [ColorPresentationRequest](#ColorPresentationRequest).
50
+ */
51
+ export interface ColorPresentationParams {
52
+ /**
53
+ * The text document.
54
+ */
55
+ textDocument: TextDocumentIdentifier;
56
+ /**
57
+ * The color to request presentations for.
58
+ */
59
+ color: Color;
60
+ /**
61
+ * The range where the color would be inserted. Serves as a context.
62
+ */
63
+ range: Range;
64
+ }
65
+ /**
66
+ * A request to list all presentation for a color. The request's
67
+ * parameter is of type [ColorPresentationParams](#ColorPresentationParams) the
68
+ * response is of type [ColorInformation[]](#ColorInformation) or a Thenable
69
+ * that resolves to such.
70
+ */
71
+ export declare namespace ColorPresentationRequest {
72
+ const type: RequestType<ColorPresentationParams, ColorPresentation[], void, TextDocumentRegistrationOptions>;
73
+ }
@@ -1,27 +1,27 @@
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
- * A request to list all color symbols found in a given text document. The request's
10
- * parameter is of type [DocumentColorParams](#DocumentColorParams) the
11
- * response is of type [ColorInformation[]](#ColorInformation) or a Thenable
12
- * that resolves to such.
13
- */
14
- var DocumentColorRequest;
15
- (function (DocumentColorRequest) {
16
- DocumentColorRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/documentColor');
17
- })(DocumentColorRequest = exports.DocumentColorRequest || (exports.DocumentColorRequest = {}));
18
- /**
19
- * A request to list all presentation for a color. The request's
20
- * parameter is of type [ColorPresentationParams](#ColorPresentationParams) the
21
- * response is of type [ColorInformation[]](#ColorInformation) or a Thenable
22
- * that resolves to such.
23
- */
24
- var ColorPresentationRequest;
25
- (function (ColorPresentationRequest) {
26
- ColorPresentationRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/colorPresentation');
27
- })(ColorPresentationRequest = exports.ColorPresentationRequest || (exports.ColorPresentationRequest = {}));
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
+ * A request to list all color symbols found in a given text document. The request's
10
+ * parameter is of type [DocumentColorParams](#DocumentColorParams) the
11
+ * response is of type [ColorInformation[]](#ColorInformation) or a Thenable
12
+ * that resolves to such.
13
+ */
14
+ var DocumentColorRequest;
15
+ (function (DocumentColorRequest) {
16
+ DocumentColorRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/documentColor');
17
+ })(DocumentColorRequest = exports.DocumentColorRequest || (exports.DocumentColorRequest = {}));
18
+ /**
19
+ * A request to list all presentation for a color. The request's
20
+ * parameter is of type [ColorPresentationParams](#ColorPresentationParams) the
21
+ * response is of type [ColorInformation[]](#ColorInformation) or a Thenable
22
+ * that resolves to such.
23
+ */
24
+ var ColorPresentationRequest;
25
+ (function (ColorPresentationRequest) {
26
+ ColorPresentationRequest.type = new vscode_jsonrpc_1.RequestType('textDocument/colorPresentation');
27
+ })(ColorPresentationRequest = exports.ColorPresentationRequest || (exports.ColorPresentationRequest = {}));
@@ -1,42 +1,42 @@
1
- import { RequestType, RequestHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
2
- export interface ConfigurationClientCapabilities {
3
- /**
4
- * The workspace client capabilities
5
- */
6
- workspace?: {
7
- /**
8
- * The client supports `workspace/configuration` requests.
9
- */
10
- configuration?: boolean;
11
- };
12
- }
13
- /**
14
- * The 'workspace/configuration' request is sent from the server to the client to fetch a certain
15
- * configuration setting.
16
- *
17
- * This pull model replaces the old push model were the client signaled configuration change via an
18
- * event. If the server still needs to react to configuration changes (since the server caches the
19
- * result of `workspace/configuration` requests) the server should register for an empty configuration
20
- * change event and empty the cache if such an event is received.
21
- */
22
- export declare namespace ConfigurationRequest {
23
- const type: RequestType<ConfigurationParams, any[], void, void>;
24
- type HandlerSignature = RequestHandler<ConfigurationParams, any[], void>;
25
- type MiddlewareSignature = (params: ConfigurationParams, token: CancellationToken, next: HandlerSignature) => HandlerResult<any[], void>;
26
- }
27
- export interface ConfigurationItem {
28
- /**
29
- * The scope to get the configuration section for.
30
- */
31
- scopeUri?: string;
32
- /**
33
- * The configuration section asked for.
34
- */
35
- section?: string;
36
- }
37
- /**
38
- * The parameters of a configuration request.
39
- */
40
- export interface ConfigurationParams {
41
- items: ConfigurationItem[];
42
- }
1
+ import { RequestType, RequestHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
2
+ export interface ConfigurationClientCapabilities {
3
+ /**
4
+ * The workspace client capabilities
5
+ */
6
+ workspace?: {
7
+ /**
8
+ * The client supports `workspace/configuration` requests.
9
+ */
10
+ configuration?: boolean;
11
+ };
12
+ }
13
+ /**
14
+ * The 'workspace/configuration' request is sent from the server to the client to fetch a certain
15
+ * configuration setting.
16
+ *
17
+ * This pull model replaces the old push model were the client signaled configuration change via an
18
+ * event. If the server still needs to react to configuration changes (since the server caches the
19
+ * result of `workspace/configuration` requests) the server should register for an empty configuration
20
+ * change event and empty the cache if such an event is received.
21
+ */
22
+ export declare namespace ConfigurationRequest {
23
+ const type: RequestType<ConfigurationParams, any[], void, void>;
24
+ type HandlerSignature = RequestHandler<ConfigurationParams, any[], void>;
25
+ type MiddlewareSignature = (params: ConfigurationParams, token: CancellationToken, next: HandlerSignature) => HandlerResult<any[], void>;
26
+ }
27
+ export interface ConfigurationItem {
28
+ /**
29
+ * The scope to get the configuration section for.
30
+ */
31
+ scopeUri?: string;
32
+ /**
33
+ * The configuration section asked for.
34
+ */
35
+ section?: string;
36
+ }
37
+ /**
38
+ * The parameters of a configuration request.
39
+ */
40
+ export interface ConfigurationParams {
41
+ items: ConfigurationItem[];
42
+ }
@@ -1,20 +1,20 @@
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/configuration' request is sent from the server to the client to fetch a certain
10
- * configuration setting.
11
- *
12
- * This pull model replaces the old push model were the client signaled configuration change via an
13
- * event. If the server still needs to react to configuration changes (since the server caches the
14
- * result of `workspace/configuration` requests) the server should register for an empty configuration
15
- * change event and empty the cache if such an event is received.
16
- */
17
- var ConfigurationRequest;
18
- (function (ConfigurationRequest) {
19
- ConfigurationRequest.type = new vscode_jsonrpc_1.RequestType('workspace/configuration');
20
- })(ConfigurationRequest = exports.ConfigurationRequest || (exports.ConfigurationRequest = {}));
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/configuration' request is sent from the server to the client to fetch a certain
10
+ * configuration setting.
11
+ *
12
+ * This pull model replaces the old push model were the client signaled configuration change via an
13
+ * event. If the server still needs to react to configuration changes (since the server caches the
14
+ * result of `workspace/configuration` requests) the server should register for an empty configuration
15
+ * change event and empty the cache if such an event is received.
16
+ */
17
+ var ConfigurationRequest;
18
+ (function (ConfigurationRequest) {
19
+ ConfigurationRequest.type = new vscode_jsonrpc_1.RequestType('workspace/configuration');
20
+ })(ConfigurationRequest = exports.ConfigurationRequest || (exports.ConfigurationRequest = {}));