Skip to content

Commit f3d9197

Browse files
committed
don't assume that handle uri remains valid after refreshLspSyncedDocument
1 parent 2e7cae3 commit f3d9197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Server.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ fn changeDocumentHandler(server: *Server, _: std.mem.Allocator, notification: ty
11651165

11661166
if (server.client_capabilities.supports_publish_diagnostics) {
11671167
try server.pushJob(.{
1168-
.generate_diagnostics = try server.allocator.dupe(u8, handle.uri),
1168+
.generate_diagnostics = try server.allocator.dupe(u8, notification.textDocument.uri),
11691169
});
11701170
}
11711171
}

0 commit comments

Comments
 (0)