aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands/index.ts
blob: 9d9b9c5754994360a550f99483a1d908b96d3d26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { Ctx, Cmd } from '../ctx'

import { analyzerStatus } from './analyzer_status';
import { matchingBrace } from './matching_brace';
import * as applySourceChange from './apply_source_change';
import * as expandMacro from './expand_macro';
import * as inlayHints from './inlay_hints';
import * as joinLines from './join_lines';
import * as onEnter from './on_enter';
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,
    expandMacro,
    joinLines,
    matchingBrace,
    parentModule,
    runnables,
    syntaxTree,
    onEnter,
    inlayHints,
    collectGarbage
};