Skip to content

WIP Cherry pick for legacy #883

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

Merged

Conversation

TylerLeonhardt
Copy link
Member

DO NOT SQUASH

Waiting on #881

rkeithhill and others added 8 commits March 13, 2019 13:55
* Added `AsNewFile` switch, plus, if a file is not open, it creates a new one

* Update module/PowerShellEditorServices/Commands/Public/Out-CurrentFile.ps1

Co-Authored-By: dfinke <[email protected]>
* Return the start line number for Describe block

Supports PR 1776 in vscode-powershell

* Null check pesterSymbol.ScriptRegion

* Update comment to cause new build to kick off

* Whitespace change to kick off a new build
* Add attach to local runspace.

* Remove comment.

* Use single runspaceId property.

* Remove unnecessary processId check.

* Factored if.

* Update src/PowerShellEditorServices.Protocol/Server/DebugAdapter.cs

It's neat that we can just commit a suggestion.

Co-Authored-By: adamdriscoll <[email protected]>

* Use runspace rather than dynamic.

* Accept process ID for GetRunspaceRequest.

* Clean up.

psCommand.AddCommand("Get-Runspace");

StringBuilder sb = new StringBuilder();
Copy link
Contributor

Choose a reason for hiding this comment

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

What happened to the var here?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's in #881

processId = "current";
}

var isNotCurrentProcess = processId != null && processId != "current";
Copy link
Contributor

Choose a reason for hiding this comment

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

A few parens here would make this a bit easier to visually parse.

Copy link
Member Author

Choose a reason for hiding this comment

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

Also fixed in #881

Copy link
Contributor

@rkeithhill rkeithhill left a comment

Choose a reason for hiding this comment

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

LGTM other than two minor nits (could ignore them).

@TylerLeonhardt
Copy link
Member Author

not sure why appveyor isn't triggering a build...

@TylerLeonhardt
Copy link
Member Author

since the implementation of #881 would need to be different for legacy, I'm going to merge this in and then send a PR to legacy with that implementation.

@TylerLeonhardt TylerLeonhardt merged commit 257d26c into PowerShell:legacy/1.x Mar 20, 2019
@TylerLeonhardt TylerLeonhardt deleted the test-cherry-picks branch September 16, 2019 16:10
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.

5 participants