aboutsummaryrefslogtreecommitdiff
path: root/src/server/completion.odin
diff options
context:
space:
mode:
authorBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-07-30 20:05:06 -0400
committerBrad Lewis <22850972+BradLewis@users.noreply.github.com>2025-07-30 20:05:06 -0400
commitedf9fdfd8e624f925b034e7411d64ce7a1251293 (patch)
tree2d36e7a3f6213955fa4bcedd8d433c12b8c3d9e1 /src/server/completion.odin
parent0e4157ebfd357e5fdb181408185cca42dcd24047 (diff)
Only limit identifier completions to maintain consistency from before the changes
Diffstat (limited to 'src/server/completion.odin')
-rw-r--r--src/server/completion.odin8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/server/completion.odin b/src/server/completion.odin
index cc0bdbb..16662fe 100644
--- a/src/server/completion.odin
+++ b/src/server/completion.odin
@@ -187,8 +187,12 @@ convert_completion_results :: proc(
return j.score < i.score
})
- //hard code for now
- top_results := results[0:(min(100, len(results)))]
+ top_results := results
+ // Just to keep consistency to what it was before these changes
+ if completion_type == .Identifier {
+ //hard code for now
+ top_results = results[0:(min(100, len(results)))]
+ }
items := make([dynamic]CompletionItem, 0, len(top_results), allocator = context.temp_allocator)