From 68b7d84974aac3c5eec98b43f63e806dac60b86e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 30 Dec 2019 23:45:50 +0100 Subject: Restore internal applySourceChange command --- editors/code/src/commands/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'editors/code/src/commands') 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'; import * as lc from 'vscode-languageclient'; import { Ctx, Cmd } from '../ctx'; +import * as sourceChange from '../source_change'; import { analyzerStatus } from './analyzer_status'; import { matchingBrace } from './matching_brace'; @@ -29,6 +30,12 @@ function showReferences(ctx: Ctx): Cmd { }; } +function applySourceChange(ctx: Ctx): Cmd { + return async (change: sourceChange.SourceChange) => { + sourceChange.applySourceChange(ctx, change); + } +} + export { analyzerStatus, expandMacro, @@ -41,4 +48,5 @@ export { run, runSingle, showReferences, + applySourceChange, }; -- cgit v1.2.3