From 836a07ad6e75c5c86dabe094b5bbaec4d8c47e16 Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 10 Nov 2024 19:27:09 -0500 Subject: [PATCH] try to improve the amount of times where multiline completions are given this may yet backfire, but as of yet it's not at all clear to me what that big blob of code i commented out was really trying to accomplish. in my own testing, it seemed to only result in disappointing single- line completions only when i would've expected multi-line completions. and so far in my limited testing, this seems to work fine ...? --- crates/llm-ls/src/main.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/crates/llm-ls/src/main.rs b/crates/llm-ls/src/main.rs index 9b2df5d..f43ff47 100644 --- a/crates/llm-ls/src/main.rs +++ b/crates/llm-ls/src/main.rs @@ -77,6 +77,20 @@ fn should_complete(document: &Document, position: Position) -> Result Result