Skip to content

Commit

Permalink
fix: add QUARTO_VISUAL_EDITOR_CONFIRMED=true
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanouil committed Feb 9, 2025
1 parent 0e3ba08 commit 7ef1497
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 1.119.0 (unreleased)

- Use `CI` to bypass the Visual Editor confirmation dialogue (<https://github.com/quarto-dev/quarto/pull/654>).
- Use `CI=true` or `QUARTO_VISUAL_EDITOR_CONFIRMED=true` to bypass the Visual Editor confirmation dialogue (<https://github.com/quarto-dev/quarto/pull/654>).

## 1.118.0 (Release on 2024-11-26)

Expand Down
2 changes: 1 addition & 1 deletion apps/vscode/src/providers/editor/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export class VisualEditorProvider implements CustomTextEditorProvider {

// prompt the user
const kVisualModeConfirmed = "visualModeConfirmed";
if (process.env.CI === "true") {
if (process.env.CI === "true" || process.env.QUARTO_VISUAL_EDITOR_CONFIRMED === "true") {
this.context.globalState.update(kVisualModeConfirmed, true);
}
if (this.context.globalState.get(kVisualModeConfirmed) !== true) {
Expand Down

0 comments on commit 7ef1497

Please sign in to comment.