-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathconfig.ts
61 lines (57 loc) · 1.35 KB
/
config.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import { Message } from "vscode-languageserver-protocol";
export type send = (msg: Message) => void;
export interface extensionConfiguration {
allowBuiltInFormatter?: boolean;
askToStartBuild?: boolean;
inlayHints?: {
enable?: boolean;
maxLength?: number | null;
};
codeLens?: boolean;
binaryPath?: string | null;
platformPath?: string | null;
signatureHelp?: {
enabled?: boolean;
forConstructorPayloads?: boolean;
};
incrementalTypechecking?: {
enabled?: boolean;
acrossFiles?: boolean;
debugLogging?: boolean;
};
cache?: {
projectConfig?: {
enabled?: boolean;
};
};
}
// All values here are temporary, and will be overridden as the server is
// initialized, and the current config is received from the client.
let config: { extensionConfiguration: extensionConfiguration } = {
extensionConfiguration: {
allowBuiltInFormatter: false,
askToStartBuild: true,
inlayHints: {
enable: false,
maxLength: 25,
},
codeLens: false,
binaryPath: null,
platformPath: null,
signatureHelp: {
enabled: true,
forConstructorPayloads: true,
},
incrementalTypechecking: {
enabled: false,
acrossFiles: false,
debugLogging: false,
},
cache: {
projectConfig: {
enabled: false,
},
},
},
};
export default config;