Skip to content

Depend on DocumentUri for handing vscode Uri's #1291

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

This needs a change in vscode-powershell as well but now we have DocumentUri types everywhere and don't need a lot of code :)

cc @david-driscoll

Copy link
Contributor

@rjmholt rjmholt left a comment

Choose a reason for hiding this comment

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

Awesome!

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.

It's nice to be able to remove this code from PSES. Let's just hope the OmniSharp impl of DocumentUri.FromFileSystemPath() is pretty solid. :-)

@TylerLeonhardt
Copy link
Member Author

Looks like some of our tests are failing so it would appear that it's not as robust yet. I've given them feedback.

@TylerLeonhardt
Copy link
Member Author

Codacy Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 2
           

Complexity decreasing per file
==============================
+ src/PowerShellEditorServices/Utility/PathUtils.cs  -2
+ src/PowerShellEditorServices/Services/Workspace/WorkspaceService.cs  -4
         

Clones removed
==============
+ src/PowerShellEditorServices/Services/Workspace/Handlers/WorkspaceSymbolsHandler.cs  -5
         

See the complete overview on Codacy

@TylerLeonhardt TylerLeonhardt merged commit 9e3fbcf into PowerShell:master May 21, 2020
@TylerLeonhardt TylerLeonhardt deleted the depend-on-DocumentUri branch May 21, 2020 23:47
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