aboutsummaryrefslogtreecommitdiff
path: root/src/server/check.odin
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/check.odin')
-rw-r--r--src/server/check.odin6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/server/check.odin b/src/server/check.odin
index b53d7e2..b4bc674 100644
--- a/src/server/check.odin
+++ b/src/server/check.odin
@@ -72,12 +72,14 @@ check_unused_imports :: proc(document: ^Document, config: ^common.Config) {
unused_imports := find_unused_imports(document, context.temp_allocator)
- remove_diagnostics(.Unused, document.uri.uri)
+ uri := common.create_uri(document.uri.path, context.temp_allocator)
+
+ remove_diagnostics(.Unused, uri.uri)
for imp in unused_imports {
add_diagnostics(
.Unused,
- document.uri.uri,
+ uri.uri,
Diagnostic {
range = common.get_token_range(imp.import_decl, document.ast.src),
severity = DiagnosticSeverity.Hint,