-
Notifications
You must be signed in to change notification settings - Fork 227
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
Fix PSSA settings discovery + pick up changes to settings file #1206
Conversation
src/PowerShellEditorServices/Services/Analysis/AnalysisService.cs
Outdated
Show resolved
Hide resolved
src/PowerShellEditorServices/Services/Analysis/AnalysisService.cs
Outdated
Show resolved
Hide resolved
src/PowerShellEditorServices/Services/Analysis/AnalysisService.cs
Outdated
Show resolved
Hide resolved
Some code comments but I can already confirm that this fixes the problem of not seeing PSSA warnings when there is no settings . Thanks for taking the time :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks ok, I can re-test tomorrow again if the fix is still working after the last commits if you want to?
Yes please. I've tested (and stepped through in the debugger) all the scenarios I could think of:
But could always use more eyes |
src/PowerShellEditorServices/Services/Analysis/AnalysisService.cs
Outdated
Show resolved
Hide resolved
Co-Authored-By: Tyler James Leonhardt <tylerl0706@gmail.com>
src/PowerShellEditorServices/Services/Analysis/PssaCmdletAnalysisEngine.cs
Show resolved
Hide resolved
We don't need the FileSystemWatcher if we still check if the file exists on every invoke. Refactor to not have file watcher. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-tested with latest changes ✅
Fixes PowerShell/vscode-powershell#2489.