@@ -140,7 +140,7 @@ function createCommands(): Record<string, CommandFactory> {
140
140
health : "stopped" ,
141
141
} ) ;
142
142
} ,
143
- disabled : ( _ ) => async ( ) => { } ,
143
+ disabled : ( _ ) => async ( ) => { } ,
144
144
} ,
145
145
146
146
analyzerStatus : { enabled : commands . analyzerStatus } ,
@@ -197,24 +197,28 @@ function conflictExtDetect() {
197
197
vscode . window
198
198
. showWarningMessage (
199
199
`You have both the rust-analyzer (rust-lang.rust-analyzer) and Rust (rust-lang.rust) ` +
200
- "plugins enabled. These are known to conflict and cause various functions of " +
201
- "both plugins to not work correctly. You should disable one of them." ,
202
- "Got it"
200
+ "plugins enabled. These are known to conflict and cause various functions of " +
201
+ "both plugins to not work correctly. You should disable one of them." ,
202
+ "Got it" ,
203
203
)
204
- . then ( ( ) => { } , console . error ) ;
204
+ . then ( ( ) => { } , console . error ) ;
205
205
}
206
206
207
207
if ( vscode . extensions . getExtension ( "panicbit.cargo" ) ) {
208
- let isRustAnalyzerCheckOnSave = vscode . workspace . getConfiguration ( "rust-analyzer" ) . get ( "checkOnSave" ) ;
209
- let isCargoAutomaticCheck = vscode . workspace . getConfiguration ( "cargo" ) . get ( "automaticCheck" ) ;
208
+ const isRustAnalyzerCheckOnSave = vscode . workspace
209
+ . getConfiguration ( "rust-analyzer" )
210
+ . get ( "checkOnSave" ) ;
211
+ const isCargoAutomaticCheck = vscode . workspace
212
+ . getConfiguration ( "cargo" )
213
+ . get ( "automaticCheck" ) ;
210
214
if ( isRustAnalyzerCheckOnSave && isCargoAutomaticCheck ) {
211
215
vscode . window
212
216
. showWarningMessage (
213
217
`You have Cargo (panicbit.cargo) enabled with 'cargo.automaticCheck' set to true(default), ` +
214
- " you can disable it or set {\ "cargo.automaticCheck\ ": false} in settings.json to avoid invoke cargo twice" ,
215
- "Got it"
218
+ ' you can disable it or set {"cargo.automaticCheck": false} in settings.json to avoid invoke cargo twice' ,
219
+ "Got it" ,
216
220
)
217
- . then ( ( ) => { } , console . error ) ;
221
+ . then ( ( ) => { } , console . error ) ;
218
222
}
219
223
}
220
- }
224
+ }
0 commit comments