Skip to content
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

Merged

Conversation

TylerLeonhardt
Copy link
Member

PR Summary

paired with PowerShell/PowerShellEditorServices#951

Folks will be able to specify a runspaceName in their launch.json. For example:

{
    "type": "powershell",
    "request": "attach",
    "runspaceName":"PowerShellManager",
    "customPipeName":"AzureFunctionsPSWorker"
}

Some actually informative launch.jsons instead of runspaceId: 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.

  • PR has a meaningful title
  • Summarized changes
  • PR has tests - debugging tests are near impossible right now :(
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

@@ -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);
Copy link
Contributor

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

It says the name in the runspace picker so I think we're good here

@TylerLeonhardt
Copy link
Member Author

Will merge this in once PowerShell/PowerShellEditorServices#951 is signed off on and merged in.

@TylerLeonhardt TylerLeonhardt force-pushed the allow-passing-runspacename branch from 3c398c4 to c02b15d Compare May 13, 2019 19:48
@TylerLeonhardt TylerLeonhardt merged commit 728b5e4 into PowerShell:master May 21, 2019
@TylerLeonhardt TylerLeonhardt deleted the allow-passing-runspacename branch May 21, 2019 21:34
@TylerLeonhardt TylerLeonhardt restored the allow-passing-runspacename branch May 21, 2019 23:30
TylerLeonhardt added a commit to TylerLeonhardt/vscode-powershell that referenced this pull request May 21, 2019
@TylerLeonhardt TylerLeonhardt deleted the allow-passing-runspacename branch August 10, 2020 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants