zls
zls copied to clipboard
watch for filesystem events on imported files
Zig Version
0.14.0-dev.365+6a16b27
ZLS Version
0.14.0-dev.2802+257054a14
Client / Code Editor / Extensions
VSCodium 1.94.2 with vscode-zig v0.6.4
Steps to Reproduce and Observed Behavior
- create the following two files on disk
- open
root.zigin the editor (don't openmod.zig) - request for completions in
root.zigwhich will showHello👍 - edit
mod.zigin a different editor instance, changeHellotoWorld. - request for completions in
root.zigwhich will still showHello👎
/// root.zig
const mod = @import("mod.zig");
test {
mod.<request code completions here>
}
/// mod.zig
pub const Hello = struct {};
Expected Behavior
Show World as the completion item.
ZLS should use workspace/didChangeWatchedFiles to be notified about changed files.
Relevant log output
Thanks, for the record I'm the one who brought it up on Discord, I'm happy to help with extra diagnostics etc. if needed.
I found this with neovim v0.10.3 AppImage running on Debian 12.
(Although I see that @Techatrix has already done a great job with the report :) )