aboutsummaryrefslogtreecommitdiff
path: root/src/server
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-25 21:02:52 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-08-25 21:02:52 -0400
commit3ea3a7b0f69bab0b867ed1d6273d606d00c5d308 (patch)
treecc1ec0464a9021a1143d28883770e221b1dd2d6a /src/server
parent7e9d53239f6e8ebff7cf8444d7b97458020317d5 (diff)
Don't filter private workspace symbols and remove debug log
Diffstat (limited to 'src/server')
-rw-r--r--src/server/indexer.odin4
-rw-r--r--src/server/workspace_symbols.odin2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/server/indexer.odin b/src/server/indexer.odin
index 3a9a3fe..89817d2 100644
--- a/src/server/indexer.odin
+++ b/src/server/indexer.odin
@@ -31,6 +31,10 @@ should_skip_private_symbol :: proc(symbol: Symbol, current_file: string) -> bool
return false
}
+ if current_file == "" {
+ return false
+ }
+
symbol_file := strings.trim_prefix(symbol.uri, "file://")
current_file := strings.trim_prefix(current_file, "file://")
if .PrivateFile in symbol.flags && symbol_file != current_file {
diff --git a/src/server/workspace_symbols.odin b/src/server/workspace_symbols.odin
index ac4e9dd..e5aff20 100644
--- a/src/server/workspace_symbols.odin
+++ b/src/server/workspace_symbols.odin
@@ -38,8 +38,6 @@ get_workspace_symbols :: proc(query: string) -> (workspace_symbols: []WorkspaceS
filepath.walk(uri.path, walk_dir, &pkgs)
- log.error(pkgs)
-
_pkg: for pkg in pkgs {
matches, err := filepath.glob(fmt.tprintf("%v/*.odin", pkg), context.temp_allocator)