Skip to content

Prevent some exceptions - #1500

Merged
Andy Jordan (andyleejordan) merged 7 commits into
masterfrom
andschwa/fixes
Jun 16, 2021
Merged

Prevent some exceptions#1500
Andy Jordan (andyleejordan) merged 7 commits into
masterfrom
andschwa/fixes

Conversation

@andyleejordan

@andyleejordanAndy Jordan (andyleejordan) commented Jun 15, 2021

Copy link
Copy Markdown
Member

Fixes#1495, #1498, and #1476.

This was actually the documented parameter, but at some point it changed to take
a file. It was better to use the `_workspaceService` service directly and safely
attempt to get the file than to require the user to do that beforehand.
Used by the `MonacoLanguageClient`. Because it has no real file backing, we had
to check that no file was returned in the prior commit.
As it can fail if the editor is being re-initialized.
Comment threadsrc/PowerShellEditorServices/Services/Analysis/AnalysisService.cs Outdated
@andyleejordan

Copy link
Copy Markdown
MemberAuthor

Rob Holt (@rjmholt) Applied.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

3 participants

@andyleejordan@dkattan@rjmholt