aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/config.ts
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/src/config.ts')
-rw-r--r--editors/code/src/config.ts22
1 files changed, 11 insertions, 11 deletions
diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts
index fb9e55dd6..2d3b6a54e 100644
--- a/editors/code/src/config.ts
+++ b/editors/code/src/config.ts
@@ -33,14 +33,14 @@ export class Config {
33 trace: 'off', 33 trace: 'off',
34 arguments: '', 34 arguments: '',
35 command: '', 35 command: '',
36 ignore: [] 36 ignore: [],
37 }; 37 };
38 38
39 private prevEnhancedTyping: null | boolean = null; 39 private prevEnhancedTyping: null | boolean = null;
40 40
41 constructor() { 41 constructor() {
42 vscode.workspace.onDidChangeConfiguration(_ => 42 vscode.workspace.onDidChangeConfiguration(_ =>
43 this.userConfigChanged() 43 this.userConfigChanged(),
44 ); 44 );
45 this.userConfigChanged(); 45 this.userConfigChanged();
46 } 46 }
@@ -53,7 +53,7 @@ export class Config {
53 53
54 if (config.has('rainbowHighlightingOn')) { 54 if (config.has('rainbowHighlightingOn')) {
55 this.rainbowHighlightingOn = config.get( 55 this.rainbowHighlightingOn = config.get(
56 'rainbowHighlightingOn' 56 'rainbowHighlightingOn',
57 ) as boolean; 57 ) as boolean;
58 } 58 }
59 59
@@ -63,7 +63,7 @@ export class Config {
63 63
64 if (config.has('enableEnhancedTyping')) { 64 if (config.has('enableEnhancedTyping')) {
65 this.enableEnhancedTyping = config.get( 65 this.enableEnhancedTyping = config.get(
66 'enableEnhancedTyping' 66 'enableEnhancedTyping',
67 ) as boolean; 67 ) as boolean;
68 68
69 if (this.prevEnhancedTyping === null) { 69 if (this.prevEnhancedTyping === null) {
@@ -78,12 +78,12 @@ export class Config {
78 vscode.window 78 vscode.window
79 .showInformationMessage( 79 .showInformationMessage(
80 'Changing enhanced typing setting requires a reload', 80 'Changing enhanced typing setting requires a reload',
81 reloadAction 81 reloadAction,
82 ) 82 )
83 .then(selectedAction => { 83 .then(selectedAction => {
84 if (selectedAction === reloadAction) { 84 if (selectedAction === reloadAction) {
85 vscode.commands.executeCommand( 85 vscode.commands.executeCommand(
86 'workbench.action.reloadWindow' 86 'workbench.action.reloadWindow',
87 ); 87 );
88 } 88 }
89 }); 89 });
@@ -104,28 +104,28 @@ export class Config {
104 if (config.has('trace.cargo-watch')) { 104 if (config.has('trace.cargo-watch')) {
105 this.cargoWatchOptions.trace = config.get<CargoWatchTraceOptions>( 105 this.cargoWatchOptions.trace = config.get<CargoWatchTraceOptions>(
106 'trace.cargo-watch', 106 'trace.cargo-watch',
107 'off' 107 'off',
108 ); 108 );
109 } 109 }
110 110
111 if (config.has('cargo-watch.arguments')) { 111 if (config.has('cargo-watch.arguments')) {
112 this.cargoWatchOptions.arguments = config.get<string>( 112 this.cargoWatchOptions.arguments = config.get<string>(
113 'cargo-watch.arguments', 113 'cargo-watch.arguments',
114 '' 114 '',
115 ); 115 );
116 } 116 }
117 117
118 if (config.has('cargo-watch.command')) { 118 if (config.has('cargo-watch.command')) {
119 this.cargoWatchOptions.command = config.get<string>( 119 this.cargoWatchOptions.command = config.get<string>(
120 'cargo-watch.command', 120 'cargo-watch.command',
121 '' 121 '',
122 ); 122 );
123 } 123 }
124 124
125 if (config.has('cargo-watch.ignore')) { 125 if (config.has('cargo-watch.ignore')) {
126 this.cargoWatchOptions.ignore = config.get<string[]>( 126 this.cargoWatchOptions.ignore = config.get<string[]>(
127 'cargo-watch.ignore', 127 'cargo-watch.ignore',
128 [] 128 [],
129 ); 129 );
130 } 130 }
131 131
@@ -138,7 +138,7 @@ export class Config {
138 } 138 }
139 if (config.has('maxInlayHintLength')) { 139 if (config.has('maxInlayHintLength')) {
140 this.maxInlayHintLength = config.get( 140 this.maxInlayHintLength = config.get(
141 'maxInlayHintLength' 141 'maxInlayHintLength',
142 ) as number; 142 ) as number;
143 } 143 }
144 if (config.has('excludeGlobs')) { 144 if (config.has('excludeGlobs')) {