diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-10-06 06:06:51 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-10-06 06:06:51 -0400 |
| commit | 11285b2c4863b8d7bbc222c0d11bf96f60a87f86 (patch) | |
| tree | 28013e0ae6dc96faab2437e33d365edd448d83ec | |
| parent | 7916a277e4597e869262a7685bc0b51b5af7916f (diff) | |
Run check unused imports on document refresh
| -rw-r--r-- | src/server/documents.odin | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/documents.odin b/src/server/documents.odin index a23fdf2..cec42cb 100644 --- a/src/server/documents.odin +++ b/src/server/documents.odin @@ -321,6 +321,8 @@ document_refresh :: proc(document: ^Document, config: ^common.Config, writer: ^W remove_diagnostics(.Syntax, document.uri.uri) remove_diagnostics(.Check, document.uri.uri) + check_unused_imports(document, config) + if writer != nil && !config.disable_parser_errors { document.diagnosed_errors = true |