@@ -140,7 +140,7 @@ function createCommands(): Record<string, CommandFactory> {
140140 health : "stopped" ,
141141 } ) ;
142142 } ,
143- disabled : ( _ ) => async ( ) => { } ,
143+ disabled : ( _ ) => async ( ) => { } ,
144144 } ,
145145
146146 analyzerStatus : { enabled : commands . analyzerStatus } ,
@@ -197,24 +197,28 @@ function conflictExtDetect() {
197197 vscode . window
198198 . showWarningMessage (
199199 `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" ,
203203 )
204- . then ( ( ) => { } , console . error ) ;
204+ . then ( ( ) => { } , console . error ) ;
205205 }
206206
207207 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" ) ;
210214 if ( isRustAnalyzerCheckOnSave && isCargoAutomaticCheck ) {
211215 vscode . window
212216 . showWarningMessage (
213217 `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" ,
216220 )
217- . then ( ( ) => { } , console . error ) ;
221+ . then ( ( ) => { } , console . error ) ;
218222 }
219223 }
220- }
224+ }
0 commit comments