File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -276,23 +276,13 @@ async function isNixOs(): Promise<boolean> {
276
276
}
277
277
278
278
function warnAboutExtensionConflicts ( ) {
279
- const conflicting = [
280
- [ "rust-analyzer" , "matklad.rust-analyzer" ] ,
281
- [ "Rust" , "rust-lang.rust" ] ,
282
- ] ;
283
-
284
- const found = conflicting . filter (
285
- nameId => vscode . extensions . getExtension ( nameId [ 1 ] ) !== undefined ) ;
286
-
287
- if ( found . length > 1 ) {
288
- const fst = found [ 0 ] ;
289
- const sec = found [ 1 ] ;
279
+ if ( vscode . extensions . getExtension ( "rust-lang.rust" ) ) {
290
280
vscode . window . showWarningMessage (
291
- `You have both the ${ fst [ 0 ] } ( ${ fst [ 1 ] } ) and ${ sec [ 0 ] } ( ${ sec [ 1 ] } ) ` +
281
+ `You have both the rust-analyzer (matklad.rust-analyzer ) and Rust (rust-lang.rust ) ` +
292
282
"plugins enabled. These are known to conflict and cause various functions of " +
293
283
"both plugins to not work correctly. You should disable one of them." , "Got it" )
294
284
. then ( ( ) => { } , console . error ) ;
295
- } ;
285
+ }
296
286
}
297
287
298
288
/**
You can’t perform that action at this time.
0 commit comments