forked from SAP/ui5-language-assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.d.ts
34 lines (29 loc) · 815 Bytes
/
api.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/**
* Absolute path to the server's "main" module
* This is useful when launching the server in a separate process (e.g via spawn).
*/
import { LogLevel } from "@vscode-logging/types";
export declare const SERVER_PATH: string;
export type ServerInitializationOptions = {
modelCachePath: string;
/**
* optional VSCode publisher name.
*/
publisher?: string;
/**
* optional VSCode ext name.
*/
name?: string;
/**
* Initial logging level for the language server.
* The log level may be changed **after** the server has started
* By sending a custom `changeLogLevel` LSP request
*/
logLevel?: LogLevel;
};
export type FetchResponse<T = unknown> = {
ok: boolean;
status: number;
json: () => Promise<T>;
};
export type Fetcher = (url: string) => Promise<FetchResponse>;