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

Protect against no RootUri (no open workspace) #1107

Merged

Conversation

TylerLeonhardt
Copy link
Member

@TylerLeonhardt TylerLeonhardt commented Nov 19, 2019

Fixes PowerShell/vscode-powershell#2311

As you can see, when WorkspacePath is null, it's handled on the next line and this is consistent with the behavior of the legacy code.

@TylerLeonhardt
Copy link
Member Author

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

Complexity increasing per file
==============================
- src/PowerShellEditorServices/Server/PsesLanguageServer.cs  1
         

See the complete overview on Codacy

@TylerLeonhardt TylerLeonhardt merged commit c6b4535 into PowerShell:master Nov 19, 2019
@TylerLeonhardt TylerLeonhardt deleted the protect-against-no-rooturi branch November 19, 2019 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NullReferenceException from PSES if no folder is open when Preview Extension Loaded
2 participants