mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Restore internal applySourceChange command
This commit is contained in:
parent
c65e90f7b8
commit
68b7d84974
2 changed files with 9 additions and 0 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue