diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-12-30 22:49:20 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2019-12-30 22:49:20 +0000 |
commit | 44d6ab2650bce0faac87b87ef279674d6f63f8ec (patch) | |
tree | faac0da2bd561bb42d2ad62af0f2e9e80a5ff344 /editors/code/src/commands | |
parent | 09649a991d0a9915266e32539de488f5adca0665 (diff) | |
parent | 68b7d84974aac3c5eec98b43f63e806dac60b86e (diff) |
Merge #2697
2697: Restore internal applySourceChange command r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'editors/code/src/commands')
-rw-r--r-- | editors/code/src/commands/index.ts | 8 |
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'; | |||
2 | import * as lc from 'vscode-languageclient'; | 2 | import * as lc from 'vscode-languageclient'; |
3 | 3 | ||
4 | import { Ctx, Cmd } from '../ctx'; | 4 | import { Ctx, Cmd } from '../ctx'; |
5 | import * as sourceChange from '../source_change'; | ||
5 | 6 | ||
6 | import { analyzerStatus } from './analyzer_status'; | 7 | import { analyzerStatus } from './analyzer_status'; |
7 | import { matchingBrace } from './matching_brace'; | 8 | import { matchingBrace } from './matching_brace'; |
@@ -29,6 +30,12 @@ function showReferences(ctx: Ctx): Cmd { | |||
29 | }; | 30 | }; |
30 | } | 31 | } |
31 | 32 | ||
33 | function applySourceChange(ctx: Ctx): Cmd { | ||
34 | return async (change: sourceChange.SourceChange) => { | ||
35 | sourceChange.applySourceChange(ctx, change); | ||
36 | } | ||
37 | } | ||
38 | |||
32 | export { | 39 | export { |
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 | }; |