Skip to content

Fix duplicate DiagnosticMarkers when reopening a file #1869

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

Merged
merged 3 commits into from
Aug 4, 2022

Conversation

fflaten
Copy link
Contributor

@fflaten fflaten commented Aug 4, 2022

PR Summary

Clears the cached DiagnosticsMarkers for a file before adding new results from full script analysis.

PR Context

Reopening a file with PSSA-findings will be duplicated each time the file is closed and reopened.

Fix PowerShell/vscode-powershell#3252

@fflaten fflaten requested a review from a team August 4, 2022 15:29
@fflaten fflaten marked this pull request as draft August 4, 2022 16:02
@fflaten
Copy link
Contributor Author

fflaten commented Aug 4, 2022

Broke parser-errors. TBC

@fflaten fflaten marked this pull request as ready for review August 4, 2022 16:18
@andyleejordan
Copy link
Member

Wow, nice fix @fflaten! Thanks so much, this one had been bugging me immensely.

@andyleejordan andyleejordan enabled auto-merge (squash) August 4, 2022 18:03
@fflaten
Copy link
Contributor Author

fflaten commented Aug 4, 2022

Wow, nice fix @fflaten! Thanks so much, this one had been bugging me immensely.

Same, which is why I really had to give PSES debugging a second attempt again. Last time was when I created the issue. 😄 So thank you!

@andyleejordan andyleejordan merged commit c5a55fe into PowerShell:main Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Duplicate PSSA-entries in Problem-tab after reopening file
2 participants