diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-30 20:05:06 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-07-30 20:05:06 -0400 |
| commit | edf9fdfd8e624f925b034e7411d64ce7a1251293 (patch) | |
| tree | 2d36e7a3f6213955fa4bcedd8d433c12b8c3d9e1 /src/server | |
| parent | 0e4157ebfd357e5fdb181408185cca42dcd24047 (diff) | |
Only limit identifier completions to maintain consistency from before the changes
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/completion.odin | 8 |
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) |