diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2025-10-20 00:49:06 +0200 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2025-10-20 00:49:06 +0200 |
| commit | 7d293c322ef85e4b60c943c220f1a6dd45895672 (patch) | |
| tree | 26d38920bbda6266b94ea95887d25c594cfbd68e /src/server | |
| parent | e3c53e064708cf9c0701c3f186f716c457a574ec (diff) | |
Make sure to remove_diagnostics with the correct uri.
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/documents.odin | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/documents.odin b/src/server/documents.odin index e19deb5..a042ee0 100644 --- a/src/server/documents.odin +++ b/src/server/documents.odin @@ -318,16 +318,16 @@ document_refresh :: proc(document: ^Document, config: ^common.Config, writer: ^W return .None } - remove_diagnostics(.Syntax, document.uri.uri) - remove_diagnostics(.Check, document.uri.uri) + uri := common.create_uri(document.uri.path, context.temp_allocator) + + remove_diagnostics(.Syntax, uri.uri) + remove_diagnostics(.Check, uri.uri) check_unused_imports(document, config) if writer != nil && !config.disable_parser_errors { document.diagnosed_errors = true - uri := common.create_uri(document.uri.path, context.temp_allocator) - for error, i in errors { add_diagnostics( .Syntax, |