diff options
Diffstat (limited to 'editors/code/src/commands/index.ts')
-rw-r--r-- | editors/code/src/commands/index.ts | 11 |
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 @@ | |||
1 | import * as analyzerStatus from './analyzer_status'; | 1 | import { Ctx, Cmd } from '../ctx' |
2 | |||
3 | import { analyzerStatus } from './analyzer_status'; | ||
4 | import { matchingBrace } from './matching_brace'; | ||
2 | import * as applySourceChange from './apply_source_change'; | 5 | import * as applySourceChange from './apply_source_change'; |
3 | import * as expandMacro from './expand_macro'; | 6 | import * as expandMacro from './expand_macro'; |
4 | import * as inlayHints from './inlay_hints'; | 7 | import * as inlayHints from './inlay_hints'; |
5 | import * as joinLines from './join_lines'; | 8 | import * as joinLines from './join_lines'; |
6 | import * as matchingBrace from './matching_brace'; | ||
7 | import * as onEnter from './on_enter'; | 9 | import * as onEnter from './on_enter'; |
8 | import * as parentModule from './parent_module'; | 10 | import * as parentModule from './parent_module'; |
9 | import * as runnables from './runnables'; | 11 | import * as runnables from './runnables'; |
10 | import * as syntaxTree from './syntaxTree'; | 12 | import * as syntaxTree from './syntaxTree'; |
11 | 13 | ||
14 | function collectGarbage(ctx: Ctx): Cmd { | ||
15 | return async () => { ctx.client.sendRequest<null>('rust-analyzer/collectGarbage', null) } | ||
16 | } | ||
17 | |||
12 | export { | 18 | export { |
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 | }; |