swiftlang / vscode-swift

Visual Studio Code Extension for Swift
https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang
Apache License 2.0
713 stars 47 forks source link

Mark compiler issues as stale if a file is edited #750

Closed ahoppen closed 4 weeks ago

ahoppen commented 3 months ago

When compilation of a file produces errors and those errors, these errors are displayed in the source editor. However, even when the source file has been modified, the issue will linger around until I build again. I’m not sure if it’s possible at all, but I think it would be great if build errors could be marked as stale (eg. gray instead of red) when the source file has been edited. That way, it’s easy to tell which errors are live errors from sourcekit-lsp that still need to be addressed and which ones are from a previous build.

adam-fowler commented 3 months ago

I have no control over how the problems view is rendered.

matthewbastien commented 2 months ago

I can investigate this one to figure out the feasibility.

adam-fowler commented 2 months ago

See #759

award999 commented 2 months ago

I'd love to run with this issue

adam-fowler commented 2 months ago

@award999 #759 gives a possible route to solving this.

award999 commented 1 month ago

Not working

matthewbastien commented 4 weeks ago

Verified with b461f8f