Description
Shared by @MariaSemple and @jthomasmock on Slack
quarto create
does try to be clever by detecting editors, and opening the new created project inside the same editor in a new window
This is a problem inside Posit Workbench where Positron can be opened. And from @jthomasmock
On Workbench, inside a Positron terminal, $ quarto create with a new project will create the files and then relaunch the Positron session into that folder without prompting the user.
and from @MariaSemple
the behaviour in Workbench feels unexpected for a user and could lead to some undesirable circumstances we're trying to avoid
Supported editors
quarto-cli/src/command/create/editor.ts
Lines 43 to 47 in f2bb894
Each editor defines a open function like
quarto-cli/src/command/create/editor.ts
Lines 153 to 169 in f2bb894
and quarto tries to check for editor and if detected, use the open function
quarto-cli/src/command/create/cmd.ts
Lines 105 to 114 in f2bb894
quarto-cli/src/command/create/cmd.ts
Lines 199 to 203 in f2bb894
So we need to detect and make an exception inside workbench that we can already detect
quarto-cli/src/core/platform.ts
Lines 37 to 41 in f2bb894