File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
apps/vscode/src/providers/editor Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,8 @@ export async function reopenEditorInVisualMode(
121121 viewColumn ?: ViewColumn
122122) {
123123 if ( hasHooks ( ) ) {
124+ // note pending switch to visual
125+ VisualEditorProvider . recordPendingSwitchToVisual ( document ) ;
124126 commands . executeCommand ( 'positron.reopenWith' , document . uri , 'quarto.visualEditor' ) ;
125127 } else {
126128 // save then close
@@ -144,6 +146,9 @@ export async function reopenEditorInSourceMode(
144146 viewColumn ?: ViewColumn
145147) {
146148 if ( hasHooks ( ) ) {
149+ // note pending switch to source
150+ VisualEditorProvider . recordPendingSwitchToSource ( document ) ;
151+
147152 commands . executeCommand ( 'positron.reopenWith' , document . uri , 'default' ) ;
148153 } else {
149154 if ( ! document . isUntitled ) {
You can’t perform that action at this time.
0 commit comments