From c7a5163c4460089e6e0655d7932d93158ad58fed Mon Sep 17 00:00:00 2001 From: seem Date: Thu, 11 Jun 2026 10:25:03 +0200 Subject: [PATCH] fix: enable preview commands in any ipynb editor --- apps/vscode/CHANGELOG.md | 2 ++ apps/vscode/package.json | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/vscode/CHANGELOG.md b/apps/vscode/CHANGELOG.md index 20b974d9..0cdfaf7a 100644 --- a/apps/vscode/CHANGELOG.md +++ b/apps/vscode/CHANGELOG.md @@ -2,6 +2,8 @@ ## 1.134.0 (Unreleased) +- The "Preview" and "Preview Format..." commands now show in the Positron Notebook Editor overflow menu (). + ## 1.133.0 (Release on 2026-06-03) - Added diagnostics (i.e. squiggly underlines) to code cells in qmds (). diff --git a/apps/vscode/package.json b/apps/vscode/package.json index 9a7f526a..dc478136 100644 --- a/apps/vscode/package.json +++ b/apps/vscode/package.json @@ -711,7 +711,7 @@ }, { "command": "quarto.preview", - "when": "editorLangId == quarto || editorLangId == markdown || activeCustomEditorId == 'quarto.visualEditor'", + "when": "editorLangId == quarto || editorLangId == markdown || resourceExtname == .ipynb || activeCustomEditorId == 'quarto.visualEditor'", "group": "q_zPreview" }, { @@ -721,7 +721,7 @@ }, { "command": "quarto.previewFormat", - "when": "editorLangId == quarto || editorLangId == markdown || activeCustomEditorId == 'quarto.visualEditor' || quartoRenderScriptActive", + "when": "editorLangId == quarto || editorLangId == markdown || resourceExtname == .ipynb || activeCustomEditorId == 'quarto.visualEditor' || quartoRenderScriptActive", "group": "q_zPreview" } ], @@ -806,11 +806,11 @@ }, { "command": "quarto.preview", - "when": "editorLangId == quarto || editorLangId == markdown || activeEditor == 'workbench.editor.notebook' || activeCustomEditorId == 'quarto.visualEditor' || quartoRenderDocActive" + "when": "editorLangId == quarto || editorLangId == markdown || resourceExtname == .ipynb || activeEditor == 'workbench.editor.notebook' || activeCustomEditorId == 'quarto.visualEditor' || quartoRenderDocActive" }, { "command": "quarto.previewFormat", - "when": "editorLangId == quarto || editorLangId == markdown || activeEditor == 'workbench.editor.notebook' || activeCustomEditorId == 'quarto.visualEditor' || quartoRenderDocActive" + "when": "editorLangId == quarto || editorLangId == markdown || resourceExtname == .ipynb || activeEditor == 'workbench.editor.notebook' || activeCustomEditorId == 'quarto.visualEditor' || quartoRenderDocActive" }, { "command": "quarto.previewDiagram",