We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 012d457 commit c151c80Copy full SHA for c151c80
apps/vscode/src/providers/editor/toggle.ts
@@ -123,6 +123,11 @@ export async function reopenEditorInVisualMode(
123
if (hasHooks()) {
124
// note pending switch to visual
125
VisualEditorProvider.recordPendingSwitchToVisual(document);
126
+ // if document is untitled, force user to save first
127
+ if (document.isUntitled) {
128
+ await commands.executeCommand("workbench.action.files.save");
129
+ }
130
+ // reopen in visual mode
131
commands.executeCommand('positron.reopenWith', document.uri, 'quarto.visualEditor');
132
} else {
133
// save then close
0 commit comments