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.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/editors/code/src/commands/index.ts b/editors/code/src/commands/index.ts
index 89af4be90..c28709c8a 100644
--- a/editors/code/src/commands/index.ts
+++ b/editors/code/src/commands/index.ts
@@ -2,6 +2,7 @@ import * as vscode from 'vscode';
2import * as lc from 'vscode-languageclient'; 2import * as lc from 'vscode-languageclient';
3 3
4import { Ctx, Cmd } from '../ctx'; 4import { Ctx, Cmd } from '../ctx';
5import * as sourceChange from '../source_change';
5 6
6import { analyzerStatus } from './analyzer_status'; 7import { analyzerStatus } from './analyzer_status';
7import { matchingBrace } from './matching_brace'; 8import { matchingBrace } from './matching_brace';
@@ -29,6 +30,12 @@ function showReferences(ctx: Ctx): Cmd {
29 }; 30 };
30} 31}
31 32
33function applySourceChange(ctx: Ctx): Cmd {
34 return async (change: sourceChange.SourceChange) => {
35 sourceChange.applySourceChange(ctx, change);
36 }
37}
38
32export { 39export {
33 analyzerStatus, 40 analyzerStatus,
34 expandMacro, 41 expandMacro,
@@ -41,4 +48,5 @@ export {
41 run, 48 run,
42 runSingle, 49 runSingle,
43 showReferences, 50 showReferences,
51 applySourceChange,
44}; 52};