[CustomTextEditor extensions] Untitled document content is lost when doing "Reopen with..." custom text editor #150142
Labels
bug
Issue identified by VS Code Team member as probable bug
custom-editors
Custom editor API (webview based editors)
Milestone
Does this issue occur when all extensions are disabled?: Yes/No
When doing "Reopen with... Cat Scratch" on untitled file, the content is lost
Steps to Reproduce:
catScratchEditor.ts
updateWebview
code to add logging:console.log("updateWebview called. Document length = " + document.getText().length);
I expect the untitled document content to be preserved when reopening with custom editor.
2022-05-22.18-15-33.mp4
The text was updated successfully, but these errors were encountered: