-
Notifications
You must be signed in to change notification settings - Fork 499
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
Allow passing runspace name #1954
Allow passing runspace name #1954
Conversation
@@ -87,7 +87,7 @@ export class DebugSessionFeature implements IFeature, DebugConfigurationProvider | |||
} | |||
} | |||
|
|||
if (!config.runspaceId) { | |||
if (!config.runspaceId && !config.runspaceName) { | |||
config.runspaceId = await vscode.commands.executeCommand("PowerShell.PickRunspace", config.processId); |
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.
Should we change the runspace picker to allow picking by name instead of id? If not for v1.x, then perhaps for 2.x where we only support >= 5?
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.
Will merge this in once PowerShell/PowerShellEditorServices#951 is signed off on and merged in. |
3c398c4
to
c02b15d
Compare
PR Summary
paired with PowerShell/PowerShellEditorServices#951
Folks will be able to specify a
runspaceName
in theirlaunch.json
. For example:Some actually informative
launch.json
s instead ofrunspaceId: 1
!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