-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathInitParams.ts
More file actions
46 lines (40 loc) · 1.2 KB
/
InitParams.ts
File metadata and controls
46 lines (40 loc) · 1.2 KB
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
import { LevelWithSilent } from 'pino';
import { DeepReadonly } from 'ts-essentials';
import { InitializeParams } from 'vscode-languageserver';
import { _InitializeParams } from 'vscode-languageserver-protocol';
import { Settings } from '../settings/Settings';
export type ClientInfo = DeepReadonly<_InitializeParams['clientInfo']>;
type _AwsMetadata = {
clientInfo?: {
extension: ClientInfo;
clientId: string;
};
encryption?: {
key: string;
mode: string;
};
telemetryEnabled?: boolean;
logLevel?: LevelWithSilent;
storageDir?: string;
// Overrides for all LSP settings
settings?: Partial<Settings>;
// Custom settings for debugging
cloudformation?: {
endpoint?: string;
};
featureFlags?: {
refreshIntervalMs?: number;
dynamicRefreshIntervalMs?: number;
};
schema?: {
staleDaysThreshold?: number;
};
};
export type AwsMetadata = DeepReadonly<_AwsMetadata>;
interface _ExtendedInitializeParams extends InitializeParams {
initializationOptions?: {
aws?: AwsMetadata;
[key: string]: unknown;
};
}
export type ExtendedInitializeParams = DeepReadonly<_ExtendedInitializeParams>;