More second command to Ctx
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { Ctx, Cmd } from '../ctx'
|
||||
|
||||
import { analyzerStatus } from './analyzer_status';
|
||||
import * as applySourceChange from './apply_source_change';
|
||||
import * as expandMacro from './expand_macro';
|
||||
@@ -9,6 +11,10 @@ import * as parentModule from './parent_module';
|
||||
import * as runnables from './runnables';
|
||||
import * as syntaxTree from './syntaxTree';
|
||||
|
||||
function collectGarbage(ctx: Ctx): Cmd {
|
||||
return async () => { ctx.client.sendRequest<null>('rust-analyzer/collectGarbage', null) }
|
||||
}
|
||||
|
||||
export {
|
||||
analyzerStatus,
|
||||
applySourceChange,
|
||||
@@ -20,4 +26,5 @@ export {
|
||||
syntaxTree,
|
||||
onEnter,
|
||||
inlayHints,
|
||||
collectGarbage
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user