1 | import { WorkspaceFolder } from 'vscode-languageserver-types';
|
2 | import { RequestHandler0, NotificationHandler, HandlerResult, CancellationToken } from 'vscode-jsonrpc';
|
3 | import { MessageDirection, ProtocolRequestType0, ProtocolNotificationType } from './messages';
|
4 | export interface WorkspaceFoldersInitializeParams {
|
5 | |
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | workspaceFolders?: WorkspaceFolder[] | null;
|
15 | }
|
16 | export interface WorkspaceFoldersServerCapabilities {
|
17 | |
18 |
|
19 |
|
20 | supported?: boolean;
|
21 | |
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | changeNotifications?: string | boolean;
|
31 | }
|
32 |
|
33 |
|
34 |
|
35 | export declare namespace WorkspaceFoldersRequest {
|
36 | const method: 'workspace/workspaceFolders';
|
37 | const messageDirection: MessageDirection;
|
38 | const type: ProtocolRequestType0<WorkspaceFolder[] | null, never, void, void>;
|
39 | type HandlerSignature = RequestHandler0<WorkspaceFolder[] | null, void>;
|
40 | type MiddlewareSignature = (token: CancellationToken, next: HandlerSignature) => HandlerResult<WorkspaceFolder[] | null, void>;
|
41 | }
|
42 |
|
43 |
|
44 |
|
45 |
|
46 | export declare namespace DidChangeWorkspaceFoldersNotification {
|
47 | const method: 'workspace/didChangeWorkspaceFolders';
|
48 | const messageDirection: MessageDirection;
|
49 | const type: ProtocolNotificationType<DidChangeWorkspaceFoldersParams, void>;
|
50 | type HandlerSignature = NotificationHandler<DidChangeWorkspaceFoldersParams>;
|
51 | type MiddlewareSignature = (params: DidChangeWorkspaceFoldersParams, next: HandlerSignature) => void;
|
52 | }
|
53 |
|
54 |
|
55 |
|
56 | export interface DidChangeWorkspaceFoldersParams {
|
57 | |
58 |
|
59 |
|
60 | event: WorkspaceFoldersChangeEvent;
|
61 | }
|
62 |
|
63 |
|
64 |
|
65 | export interface WorkspaceFoldersChangeEvent {
|
66 | |
67 |
|
68 |
|
69 | added: WorkspaceFolder[];
|
70 | |
71 |
|
72 |
|
73 | removed: WorkspaceFolder[];
|
74 | }
|