-
Notifications
You must be signed in to change notification settings - Fork 237
Cherry pick PR 1750 to legacy/1.x branch, fix more issues #880
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
Cherry pick PR 1750 to legacy/1.x branch, fix more issues #880
Conversation
Encode more chars like %, &, ' , etc
Note - this PR will need to be merged back to |
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.
looking good. @rkeithhill are you planning on doing the porting to the master branch or would you like me to do it?
src/PowerShellEditorServices.Host/CodeLens/PesterCodeLensProvider.cs
Outdated
Show resolved
Hide resolved
It doesn't matter too much one way or the other to me. Let me know what you'd prefer. |
I think this PR is good to go. Definintely want to get this in for 1.12. |
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.
LGTM :) one suggestion
Co-Authored-By: rkeithhill <r_keith_hill@hotmail.com>
I've cherry-picked most of the changes... this has put your PR in a bad state, unfortunately :( |
I will squash this. since it has additional changes on top. |
I think I've worked around the compilation issue by replacing
HttpUtility.EncodePath()
withUri.EscapeDataPath()
. The latter API is a much closer match to the RFC 3986 spec that VSCode uses.Also fixed another bug in the ReferenceCodeLensProvider where it was not properly creating a DocumentUri based on my abusive file name of
foo's_~#-[@] +,;=%.ps1
. That filename now works when using the symbol ref code lens.