Skip to content

Commit 6c5c00a

Browse files
committed
Update location of 'Preview', 'Render on Save', and 'Source | Visual' on the Positron Editor Action Bar
1 parent 21d404d commit 6c5c00a

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

apps/vscode/package.json

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@
448448
"enablement": "editorLangId == quarto",
449449
"actionBarOptions": {
450450
"controlType": "checkbox",
451-
"checked": "((activeCustomEditorId == 'quarto.visualEditor' || quarto.editor.type == quarto) && quarto.editor.renderOnSave) || ((activeCustomEditorId == 'quarto.visualEditor' || quarto.editor.type == 'quarto-shiny') && quarto.editor.renderOnSaveShiny)"
451+
"checked": "(quarto.editor.type == quarto && quarto.editor.renderOnSave) || (quarto.editor.type == 'quarto-shiny' && quarto.editor.renderOnSaveShiny)"
452452
}
453453
},
454454
{
@@ -634,16 +634,21 @@
634634
}
635635
],
636636
"menus": {
637-
"editor/actions/right": [
637+
"editor/actions/left": [
638+
{
639+
"command": "quarto.preview",
640+
"when": "editorLangId == quarto || editorLangId == markdown || activeCustomEditorId == 'quarto.visualEditor'",
641+
"group": "0_preview"
642+
},
638643
{
639644
"command": "quarto.toggleRenderOnSave",
640-
"when": "(activeCustomEditorId == 'quarto.visualEditor' || editorLangId == quarto) && (quarto.editor.type == quarto || quarto.editor.type == 'quarto-shiny')",
641-
"group": "Quarto"
645+
"when": "editorLangId == quarto || editorLangId == markdown || activeCustomEditorId == 'quarto.visualEditor'",
646+
"group": "0_preview"
642647
},
643648
{
644649
"command": "quarto.toggleEditMode",
645-
"when": "(activeCustomEditorId == 'quarto.visualEditor' || editorLangId == quarto) && (quarto.editor.type == quarto || quarto.editor.type == 'quarto-shiny')",
646-
"group": "Quarto"
650+
"when": "editorLangId == quarto || editorLangId == markdown || activeCustomEditorId == 'quarto.visualEditor'",
651+
"group": "1_editor_mode"
647652
}
648653
],
649654
"editor/context": [

0 commit comments

Comments
 (0)