Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix duplicate DiagnosticMarkers when reopening a file#1869

Merged
andyleejordan merged 3 commits into
PowerShell:mainPowerShell/PowerShellEditorServices:mainfrom
fflaten:fix-duplicate-diagnosticsfflaten/PowerShellEditorServices:fix-duplicate-diagnosticsCopy head branch name to clipboard
Aug 4, 2022
Merged

Fix duplicate DiagnosticMarkers when reopening a file#1869
andyleejordan merged 3 commits into
PowerShell:mainPowerShell/PowerShellEditorServices:mainfrom
fflaten:fix-duplicate-diagnosticsfflaten/PowerShellEditorServices:fix-duplicate-diagnosticsCopy head branch name to clipboard

Conversation

@fflaten

@fflaten fflaten commented Aug 4, 2022

Copy link
Copy Markdown
Contributor

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

fflaten commented Aug 4, 2022

Copy link
Copy Markdown
Contributor Author

Broke parser-errors. TBC

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

Copy link
Copy Markdown
Member

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

Comment thread src/PowerShellEditorServices/Services/Analysis/AnalysisService.cs Outdated
@andyleejordan andyleejordan enabled auto-merge (squash) August 4, 2022 18:03
@fflaten

fflaten commented Aug 4, 2022

Copy link
Copy Markdown
Contributor Author

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.