aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/src/commands/index.ts')
-rw-r--r--editors/code/src/commands/index.ts11
1 files changed, 9 insertions, 2 deletions
diff --git a/editors/code/src/commands/index.ts b/editors/code/src/commands/index.ts
index 13a696758..9d9b9c575 100644
--- a/editors/code/src/commands/index.ts
+++ b/editors/code/src/commands/index.ts
@@ -1,14 +1,20 @@
1import * as analyzerStatus from './analyzer_status'; 1import { Ctx, Cmd } from '../ctx'
2
3import { analyzerStatus } from './analyzer_status';
4import { matchingBrace } from './matching_brace';
2import * as applySourceChange from './apply_source_change'; 5import * as applySourceChange from './apply_source_change';
3import * as expandMacro from './expand_macro'; 6import * as expandMacro from './expand_macro';
4import * as inlayHints from './inlay_hints'; 7import * as inlayHints from './inlay_hints';
5import * as joinLines from './join_lines'; 8import * as joinLines from './join_lines';
6import * as matchingBrace from './matching_brace';
7import * as onEnter from './on_enter'; 9import * as onEnter from './on_enter';
8import * as parentModule from './parent_module'; 10import * as parentModule from './parent_module';
9import * as runnables from './runnables'; 11import * as runnables from './runnables';
10import * as syntaxTree from './syntaxTree'; 12import * as syntaxTree from './syntaxTree';
11 13
14function collectGarbage(ctx: Ctx): Cmd {
15 return async () => { ctx.client.sendRequest<null>('rust-analyzer/collectGarbage', null) }
16}
17
12export { 18export {
13 analyzerStatus, 19 analyzerStatus,
14 applySourceChange, 20 applySourceChange,
@@ -20,4 +26,5 @@ export {
20 syntaxTree, 26 syntaxTree,
21 onEnter, 27 onEnter,
22 inlayHints, 28 inlayHints,
29 collectGarbage
23}; 30};