-
Notifications
You must be signed in to change notification settings - Fork 511
Change debugger type field back to "PowerShell" from powershell #1773
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
This allows the debugger to start but not sure why powershell doesn't work. That said, the previous change meant that users would have to update their launch.json to change the type to "powershell". But even when I do that, the debugger still doesn't launch. So I'm a bit puzzled. But this gets the debugger working again on master. Also fixed some warnings in session.ts.
@@ -411,8 +411,9 @@ export class SessionManager implements Middleware { | |||
if (!this.suppressRestartPrompt && | |||
(settings.useX86Host !== this.sessionSettings.useX86Host || | |||
settings.powerShellExePath.toLowerCase() !== this.sessionSettings.powerShellExePath.toLowerCase() || | |||
settings.developer.powerShellExePath.toLowerCase() !== | |||
this.sessionSettings.developer.powerShellExePath.toLowerCase() || | |||
(settings.developer.powerShellExePath ? settings.developer.powerShellExePath.toLowerCase() : null) !== |
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.
I really wish TypeScript had C#'s ?!
operator.
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.
well... at least now we know for sure what lowercasing it did... LGTM
I think this PR forgot these: |
PR Summary
This allows the debugger to start but not sure why (lower-case) "powershell" doesn't
work. That said, the previous change meant that users would have to
update their launch.json to change the type to "powershell". But
even when I do that, the debugger still doesn't launch. So I'm a bit
puzzled. But this gets the debugger working again on master.
Also fixed some warnings in session.ts.
Fix #1768
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