From 4da5fac453c0e902a75a0cf0455088d06bc43ec6 Mon Sep 17 00:00:00 2001 From: Brad Lewis <22850972+BradLewis@users.noreply.github.com> Date: Fri, 13 Feb 2026 19:32:15 +1100 Subject: Fix workspace symbols search with os changes --- src/server/workspace_symbols.odin | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/server/workspace_symbols.odin b/src/server/workspace_symbols.odin index f732e8b..de346d1 100644 --- a/src/server/workspace_symbols.odin +++ b/src/server/workspace_symbols.odin @@ -11,8 +11,8 @@ import "src:common" dir_blacklist :: []string{"node_modules", ".git"} WorkspaceCache :: struct { - time: time.Time, - pkgs: [dynamic]string, + time: time.Time, + pkgs: [dynamic]string, } @(thread_local, private = "file") @@ -32,12 +32,13 @@ get_workspace_symbols :: proc(query: string) -> (workspace_symbols: []WorkspaceS defer os.walker_destroy(&w) for info in os.walker_walk(&w) { if info.type == .Directory { - dir := filepath.dir(info.fullpath, context.temp_allocator) + dir := strings.clone(info.fullpath, context.temp_allocator) dir_name := filepath.base(dir) found := false for blacklist in dir_blacklist { if blacklist == dir_name { found = true + os.walker_skip_dir(&w) break } } -- cgit v1.2.3