-
Notifications
You must be signed in to change notification settings - Fork 10
/
Configuration.ts
65 lines (52 loc) · 1.31 KB
/
Configuration.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
export class Configuration {
private _workspace:string;
private _useBundler:Boolean;
private _bundlerPath:string;
private _commandPath:string;
private _withSnippets:Boolean;
private _viewsPath:string;
public constructor(workspace:string = null, useBundler:Boolean = false, bundlerPath:string = "bundle", commandPath:string = 'solargraph', withSnippets:Boolean = false, viewsPath:string = null) {
this._workspace = workspace;
this._useBundler = useBundler;
this._bundlerPath = bundlerPath;
this._commandPath = commandPath;
this._withSnippets = withSnippets;
this._viewsPath = viewsPath;
}
get workspace():string {
return this._workspace;
}
set workspace(path:string) {
this._workspace = path;
}
get useBundler():Boolean {
return this._useBundler;
}
set useBundler(bool:Boolean) {
this._useBundler = bool;
}
get bundlerPath():string {
return this._bundlerPath;
}
set bundlerPath(path:string) {
this._bundlerPath = path;
}
get commandPath():string {
return this._commandPath;
}
set commandPath(path:string) {
this._commandPath = path;
}
get withSnippets():Boolean {
return this._withSnippets;
}
set withSnippets(bool:Boolean) {
this._withSnippets = bool;
}
get viewsPath():string {
return this._viewsPath;
}
set viewsPath(path:string) {
this._viewsPath = path;
}
}