Skip to content

Protect against no RootUri (no open workspace) - #1107

Merged
TylerLeonhardt merged 1 commit into
PowerShell:masterfrom
TylerLeonhardt:protect-against-no-rooturi
Nov 19, 2019
Merged

Protect against no RootUri (no open workspace)#1107
TylerLeonhardt merged 1 commit into
PowerShell:masterfrom
TylerLeonhardt:protect-against-no-rooturi

Conversation

@TylerLeonhardt

@TylerLeonhardt TylerLeonhardt commented Nov 19, 2019

Copy link
Copy Markdown
Member

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
Copy Markdown
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