Skip to content

Commit a02ea6a

Browse files
committed
Preserve focus on custom editor rename
Fixes microsoft#91862
1 parent f20250c commit a02ea6a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/vs/workbench/contrib/customEditor/browser/customEditors.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,9 @@ export class CustomEditorService extends Disposable implements ICustomEditorServ
326326
this.editorService.replaceEditors([{
327327
editor: editor,
328328
replacement: replacement,
329+
options: {
330+
preserveFocus: true
331+
}
329332
}], group);
330333
}
331334
}

0 commit comments

Comments
 (0)