Add API to reopen document with specific CustomTextEditor #169921
Labels
api
custom-editors
Custom editor API (webview based editors)
feature-request
Request for new features or functionality
Milestone
My use case is this:
CustomTextEditor
for viewing.md
files.workbench.action.closeActiveEditor
chained with.then
callingvscode.openWith
to open my editor. There are problems with this...Could there be an addition to the VS Code API that lets you seamlessly switch editors while keeping the file dirty and not losing the undo history?
I tried
workbench.action.reopenWithEditor
but this seems to behave the same as closing the current editor and opening a new one.The text was updated successfully, but these errors were encountered: