1 | import { RequestHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
|
2 | import { LSPAny, URI } from 'vscode-languageserver-types';
|
3 | import { MessageDirection, ProtocolRequestType } from './messages';
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | export declare namespace ConfigurationRequest {
|
14 | const method: 'workspace/configuration';
|
15 | const messageDirection: MessageDirection;
|
16 | const type: ProtocolRequestType<ConfigurationParams, any[], never, void, void>;
|
17 | type HandlerSignature = RequestHandler<ConfigurationParams, LSPAny[], void>;
|
18 | type MiddlewareSignature = (params: ConfigurationParams, token: CancellationToken, next: HandlerSignature) => HandlerResult<LSPAny[], void>;
|
19 | }
|
20 | export interface ConfigurationItem {
|
21 | |
22 |
|
23 |
|
24 | scopeUri?: URI;
|
25 | |
26 |
|
27 |
|
28 | section?: string;
|
29 | }
|
30 |
|
31 |
|
32 |
|
33 | export interface ConfigurationParams {
|
34 | items: ConfigurationItem[];
|
35 | }
|