Skip to content

Fix issue with reference code lens not working with UNC paths #908

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

rkeithhill
Copy link
Contributor

Fixes a few of the failure modes (related to UNC paths) for PowerShell/vscode-powershell#1830

Copy link
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

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

LGTM I could use a more descriptive comment in the place I mentioned

@rkeithhill
Copy link
Contributor Author

I changed the code enough to warrant another review. The Windows code path is a bit more complicated but it avoids having to do inserts later by appending chars as required from the start. Although the !CoreCLR code that replaces ' with %27 ends up resizing to accommodate the extra chars. But that only happens on Windows PowerShell.

@hypercube33
Copy link

Due to constant crashing with UNC PS1 files, I've rolled back to PowerShell-1.11.0.vsix and have disabled auto updating. It's been constantly poor code quality that is super disappointing with this extension all around the last four months.

@rkeithhill rkeithhill force-pushed the rkeithhill/fix-codelens-ref-unc-path branch from db9dd7e to 0a89523 Compare April 10, 2019 04:52
@PowerShell PowerShell deleted a comment Apr 10, 2019
@rkeithhill rkeithhill merged commit be99ccf into PowerShell:master Apr 10, 2019
@rkeithhill rkeithhill deleted the rkeithhill/fix-codelens-ref-unc-path branch April 10, 2019 05:13
rkeithhill added a commit to rkeithhill/PowerShellEditorServices that referenced this pull request Apr 10, 2019
…hell#908)

* Fix issue with reference code lens not working with UNC paths

* Refactor to avoid extra Insert ops. Simplifies macOS/Linux code path.

* Still need to unescape / on macOs & Linux

* Replace compile-time check for .NET Core with runtime check
rjmholt pushed a commit that referenced this pull request Apr 10, 2019
…917)

* Fix issue with reference code lens not working with UNC paths

* Refactor to avoid extra Insert ops. Simplifies macOS/Linux code path.

* Still need to unescape / on macOs & Linux

* Replace compile-time check for .NET Core with runtime check
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.

4 participants