Does ZLS maintain a private cache

it could be my imagination, but ZLS will sometimes “degrade” over a long session (in VSCode)… this is most noticeable with auto-completion, where ZLS doesn’t offer ANY suggestions where it might have before…

i’ve tried starting/stopping/reloading ZLS, but with little success… is there perhaps a private cache used by ZLS which i can purge???

1 Like

From ZLS Configuration Options

zls option global_cache_path type ?[]const u8 default value null
Path to a directory that will be used as zig’s cache. null is equivalent to ${KnownFolders.Cache}/zls

In my (linux) computer it is ~/.cache/zls
It is different from zig global cache ~/.cache/zig

1 Like