only preview rename and code actions

This commit is contained in:
Johannes Rieken
2020-01-07 12:54:15 +01:00
parent d5a5421bbf
commit 3892a7d05f
3 changed files with 14 additions and 10 deletions

View File

@@ -217,7 +217,7 @@ export class MainThreadTextEditors implements MainThreadTextEditorsShape {
$tryApplyWorkspaceEdit(dto: IWorkspaceEditDto): Promise<boolean> {
const { edits } = reviveWorkspaceEditDto(dto);
return this._bulkEditService.apply({ edits }, undefined).then(() => true, err => false);
return this._bulkEditService.apply({ edits }, { noPreview: true }).then(() => true, err => false);
}
$tryInsertSnippet(id: string, template: string, ranges: readonly IRange[], opts: IUndoStopOptions): Promise<boolean> {