-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to control startup behavior per language (#6145)
This change adds a new option that can be used to gain more control of how Positron starts an interpreter for each language. <img width="614" alt="image" src="https://github.com/user-attachments/assets/cb609ebb-d170-4fda-95da-009d5cb07db4" /> The default value, _auto_, gives the automatic behavior we have today; the others (enumerated in documentation elsewhere) are new behaviors. In addition, this PR adds a new feature that allows a language pack to tell Positron which runtime to start for a workspace _before_ discovering all the runtimes on the machine. This happens during the _Starting_ phase of the startup lifecycle. Addresses #3575. ### Release Notes #### New Features - New "startup behavior" option to control whether specific languages will start a console in new Positron windows (#3575). #### Bug Fixes - N/A ### QA Notes This new option replaces the old `interpreters.automaticStartup` option (I think having both would be too confusing). If memory serves we're using that today in the `qa-example-content` repro. PR updating this option here: posit-dev/qa-example-content#44 As a debugging aid, I've added a way to show and clear which runtimes are "affiliated" with the workspace. The new `Interpreter: Clear Saved Interpreter` command can be used to show you which R/Python/etc. versions Positron has saved as the ones for your workspace. <img width="623" alt="image" src="https://github.com/user-attachments/assets/dbd27b05-c914-4e4c-b759-13c2c45720e6" /> We will ultimately need more and better UI for choosing what interpreter is associated with your project; this command should be seen as a stopgap/debugging aid. I've also added a couple of options to the Zed test language runtime so that in a dev build you can try out the 'recommended for workspace' workflow. <img width="375" alt="image" src="https://github.com/user-attachments/assets/5fca1868-cbb5-4ff8-a365-64f438ee333c" /> --------- Signed-off-by: Jonathan <[email protected]> Co-authored-by: sharon <[email protected]>
- Loading branch information
1 parent
b672bb9
commit 5177ff7
Showing
23 changed files
with
667 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.