You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When opening VS Code (1.28 -latest RTM release with the latest RTM 1.9.0 of the extension), with a file foo.ps with the content gci then the user used to see the PSScriptAnalyzer analysis right away e.g. as a squiggle under gci. Since one of the last extension updates (I cannot remember when I noticed that it stopped working), this does not happen any more and one can trigger the run of PSSA only manually by starting to type.
Also seen this and just generally latency with PSScriptAnalyzer. Sometimes, even after fixing an alias to the full expression it still shows in the problem window and has the squiggly line. Have to delete and retype or change one of the other parts of the line (sometimes a few times) to get PSScriptAnalyzer to update the problem.
Uh oh!
There was an error while loading. Please reload this page.
System Details Output
Issue Description
When opening VS Code (1.28 -latest RTM release with the latest RTM
1.9.0
of the extension), with a filefoo.ps
with the contentgci
then the user used to see the PSScriptAnalyzer analysis right away e.g. as a squiggle undergci
. Since one of the last extension updates (I cannot remember when I noticed that it stopped working), this does not happen any more and one can trigger the run of PSSA only manually by starting to type.@SeeminglyScience thinks it might be the line below since "that catch block used to just be return. Pretty sure that's the only analysis related change I made"
https://github.com/PowerShell/PowerShellEditorServices/blob/67af23203c0d7aac52a6c5655d7d7f1202e80dd0/src/PowerShellEditorServices.Protocol/Server/LanguageServer.cs#L1505
Note that this does not happen in the combination of using code-insiders and the
2.0.0
preview of the extension. I suspect the culprit is rather the extension and not VSCode itselfExpected Behaviour
Show PSSA analysis after having opened a file in a new editor
Actual Behaviour
One needs to edit the file to eventually trigger a run of PSSA to see squiggles
Attached Logs
If needed I can supply them in case you cannot repro this issue.
The text was updated successfully, but these errors were encountered: