File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -303,6 +303,9 @@ impl GlobalState {
303
303
let files_config = self . config . files ( ) ;
304
304
let project_folders = ProjectFolders :: new ( & self . workspaces , & files_config. exclude ) ;
305
305
306
+ let standalone_server_name =
307
+ format ! ( "rust-analyzer-proc-macro-srv{}" , std:: env:: consts:: EXE_SUFFIX ) ;
308
+
306
309
if self . proc_macro_clients . is_empty ( ) {
307
310
if let Some ( ( path, args) ) = self . config . proc_macro_srv ( ) {
308
311
self . proc_macro_clients = self
@@ -316,10 +319,8 @@ impl GlobalState {
316
319
tracing:: info!( "Found a cargo workspace..." ) ;
317
320
if let Some ( sysroot) = sysroot. as_ref ( ) {
318
321
tracing:: info!( "Found a cargo workspace with a sysroot..." ) ;
319
- let server_path = sysroot
320
- . root ( )
321
- . join ( "libexec" )
322
- . join ( "rust-analyzer-proc-macro-srv" ) ;
322
+ let server_path =
323
+ sysroot. root ( ) . join ( "libexec" ) . join ( & standalone_server_name) ;
323
324
if std:: fs:: metadata ( & server_path) . is_ok ( ) {
324
325
tracing:: info!(
325
326
"And the server exists at {}" ,
You can’t perform that action at this time.
0 commit comments