-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select interpreter command #3213
Conversation
Smoke test is failing on CI: https://github.com/posit-dev/positron/actions/runs/9176612586/job/25232287089... Need to look into it. |
abc169f
to
958b679
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM modulo some localization nits.
|
||
input.canSelectMany = false; | ||
const languageName = languageService.getLanguageName(languageId); | ||
input.title = `Select ${languageName} Interpreter`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This (and several other strings in this file) needs to be localized
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, fixed in 653bdf8.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Great job!
Intent
Address #3118.
Approach
Added the
workbench.action.languageRuntime.select
command withf1: false
. Language packs can implement their own commands in the command palette that call down to this, with alanguageId
.I replaced the
workbench.action.languageRuntime.start
command since this feels like it handles all of the same usecases but with a nicer UX. Happy to revert if I missed something.I also updated smoke tests to use this.
QA Notes
Smoke tests should pass in CI and locally. Try out the R select interpreter command too.