This repository was archived by the owner on Nov 18, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
rust-analyzer/editors/code Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 61
61
"activationEvents" : [
62
62
" onLanguage:rust" ,
63
63
" onCommand:rust-analyzer.analyzerStatus" ,
64
- " onCommand:rust-analyzer.collectGarbage " ,
64
+ " onCommand:rust-analyzer.reloadWorkspace " ,
65
65
" workspaceContains:**/Cargo.toml"
66
66
],
67
67
"main" : " ./out/src/main" ,
143
143
"category" : " Rust Analyzer"
144
144
},
145
145
{
146
- "command" : " rust-analyzer.collectGarbage " ,
147
- "title" : " Run garbage collection " ,
146
+ "command" : " rust-analyzer.reloadWorkspace " ,
147
+ "title" : " Reload workspace " ,
148
148
"category" : " Rust Analyzer"
149
149
},
150
150
{
815
815
"when" : " inRustProject"
816
816
},
817
817
{
818
- "command" : " rust-analyzer.collectGarbage " ,
818
+ "command" : " rust-analyzer.reloadWorkspace " ,
819
819
"when" : " inRustProject"
820
820
},
821
821
{
Original file line number Diff line number Diff line change @@ -330,8 +330,8 @@ export function expandMacro(ctx: Ctx): Cmd {
330
330
} ;
331
331
}
332
332
333
- export function collectGarbage ( ctx : Ctx ) : Cmd {
334
- return async ( ) => ctx . client . sendRequest ( ra . collectGarbage , null ) ;
333
+ export function reloadWorkspace ( ctx : Ctx ) : Cmd {
334
+ return async ( ) => ctx . client . sendRequest ( ra . reloadWorkspace , null ) ;
335
335
}
336
336
337
337
export function showReferences ( ctx : Ctx ) : Cmd {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import * as lc from "vscode-languageclient";
6
6
7
7
export const analyzerStatus = new lc . RequestType < null , string , void > ( "rust-analyzer/analyzerStatus" ) ;
8
8
9
- export const collectGarbage = new lc . RequestType < null , null , void > ( "rust-analyzer/collectGarbage " ) ;
9
+ export const reloadWorkspace = new lc . RequestType < null , null , void > ( "rust-analyzer/reloadWorkspace " ) ;
10
10
11
11
export interface SyntaxTreeParams {
12
12
textDocument : lc . TextDocumentIdentifier ;
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ export async function activate(context: vscode.ExtensionContext) {
88
88
} ) ;
89
89
90
90
ctx . registerCommand ( 'analyzerStatus' , commands . analyzerStatus ) ;
91
- ctx . registerCommand ( 'collectGarbage ' , commands . collectGarbage ) ;
91
+ ctx . registerCommand ( 'reloadWorkspace ' , commands . reloadWorkspace ) ;
92
92
ctx . registerCommand ( 'matchingBrace' , commands . matchingBrace ) ;
93
93
ctx . registerCommand ( 'joinLines' , commands . joinLines ) ;
94
94
ctx . registerCommand ( 'parentModule' , commands . parentModule ) ;
You can’t perform that action at this time.
0 commit comments