This repository has been archived by the owner on Oct 10, 2018. It is now read-only.
/
ExtensionConfig.ts
68 lines (61 loc) · 1.62 KB
/
ExtensionConfig.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
62
63
64
65
66
67
68
import { Uri } from 'vscode';
import { CodeCompletionConfig } from './CodeCompletionConfig';
import { CodeOutlineConfig } from './CodeOutlineConfig';
import { ResolverConfig } from './ResolverConfig';
/**
* Configuration interface for TypeScript Hero
* Contains all exposed config endpoints.
*
* @export
* @interface ExtensionConfig
*/
export interface ExtensionConfig {
/**
* The given resource URI (if any) for the actual configuration.
* Is needed to determine the actual config values for multi root environments.
*
* @readonly
* @type {Uri}
* @memberof ExtensionConfig
*/
resource?: Uri;
/**
* The actual log level.
*
* @readonly
* @type {'error' | 'warn' | 'info' | 'debug'}
* @memberof ExtensionConfig
*/
verbosity: 'error' | 'warn' | 'info' | 'debug';
/**
* Returns a list of possible language IDs that are registered within this extension.
*
* @type {string[]}
* @memberof ExtensionConfig
*/
possibleLanguages: string[];
/**
* Configuration object for the resolver extension.
*
* @readonly
* @type {ResolverConfig}
* @memberof ExtensionConfig
*/
resolver: ResolverConfig;
/**
* Configuration object for the code outline extension.
*
* @readonly
* @type {CodeOutlineConfig}
* @memberof ExtensionConfig
*/
codeOutline: CodeOutlineConfig;
/**
* Configuration object for the code completion extension.
*
* @readonly
* @type {CodeCompletionConfig}
* @memberof ExtensionConfig
*/
codeCompletion: CodeCompletionConfig;
}