usernamehw / vscode-error-lens

VSCode extension that enhances display of errors and warnings.
https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens
MIT License
601 stars 32 forks source link

Errors should move when editing the document #197

Closed erikschul closed 4 months ago

erikschul commented 8 months ago

After editing a document, the errors will still show on the previous line number, instead of moving.

Would it be possible to detect line changes and shift the errors?

Example: before

image

Example: after Expected: error should show on line 17

image
usernamehw commented 4 months ago

I would need steps to reproduce the issue (to fix). Decorations usually follow errors properly.

stefnotch commented 4 months ago

@erikschul I believe this is a rust-analyzer issue. This happens when rust-analyzer executes cargo check and reports the errors in the UI. Then, when editing the file, rust-analyzer only has the old cargo check results to work with.

https://github.com/rust-lang/rust-analyzer/issues/4056