-
Notifications
You must be signed in to change notification settings - Fork 511
Restart Current Session
in every session quick pick
#1616
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
Conversation
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! Just one request
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!
const currentExePath = (this.powerShellExePath || "").toLowerCase(); | ||
const availablePowerShellExes = | ||
getAvailablePowerShellExes(this.platformDetails, this.sessionSettings); | ||
|
||
let sessionText: string; |
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.
If this.sessionStatus
is not SessionStatus.Running
or SessionStatus.Failed
, will this remain undefined
? What will be shown in the menu?
If we're just branching on different values of an enum, maybe a switch
block would be clearer?
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.
exhaustive switch statements FTW 👍 updated to a switch.
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
PR Summary
fixes #1614
This does some reorganizing of the quick pick dialog for sessions. It makes sure the
Restart Current Session
command is always available and only shows theSwitch to X
when a session is running.PR Checklist
Note: Tick the boxes below that apply to this pull request by putting an
x
between the square brackets.Please mark anything not applicable to this PR
NA
.WIP:
to the beginning of the title and remove the prefix when the PR is ready