Open mjbvz opened 4 years ago
This was implemented by 041a5907b1d3437344fda16da784aba7828af520 for CustomTextEditor
. Will discuss the api and look into hooking up CustomEditor
as well this iteration
@mjbvz It seems that VS Code also forgets that it used to have a custom editor open for a file after a rename, so a non-default custom editor will get closed and replaced with a plain text editor.
From #85991
Repo
.abc
editor from https://github.com/mjbvz/vscode-experimental-webview-editor-extension/x.abc
. Open itx.abc
still open, renamex.abc
file toy.abc
in the VS Code file explorerBug Notice that the editor's webview is destroyed and then recreated. It would be preferable in this webview were kept alive across the rename (although perhaps only if the editor capabilities implement a
rename
method)You can better confirm this by putting some sort of state into the webview, such as a script consisting of: