-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
completion fix #1819
completion fix #1819
Conversation
666b3cf
to
0f6a0b4
Compare
How to reproduce the issue? Oh, I just realized I have this issue. |
I don't quite understand the issue, we track the initial helix/helix-term/src/commands.rs Line 3490 in 7eb013c
Then we use that trigger offset when needed: helix/helix-term/src/ui/completion.rs Lines 111 to 117 in 7eb013c
We also remove any extra text: helix/helix-term/src/ui/completion.rs Lines 133 to 134 in 7eb013c
|
We might need to call helix/helix-term/src/ui/completion.rs Lines 152 to 153 in 0062af6
|
Yes |
a590d6c
to
ed44941
Compare
I've been seeing the same completion problems with ElixirLS and ErlangLS. I'm not sure if it's the slowness of the LS or my low I just took this branch for a spin though and it seems to solve my completion problems. |
edit: this is my own doing - going into verbose mode and tailing the logs shows that it's the server that's being slow. |
334c92b
to
dd4dc76
Compare
6912c7b
to
486b095
Compare
Hey @cossonleo I want to finally get this merged but I'm trying to understand the fix. Does it immediately set a save point, then when completion data arrives it filters that based on new input? |
Yes, Method |
c57e900
to
a1811c8
Compare
Looks like my comments didn't get posted last time: I think moving |
We should discard the completion's result responsed after trigger the next completion. So we need to store the version to determine whether to discard. |
738d142
to
d818cff
Compare
d818cff
to
aec001a
Compare
if !config.auto_completion { | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to add one more check to show completion beside this check, it's to check whether it's running from a macro (or repeat_last_motion
), I notice this erratic behavior of completion popping up (and sometimes not closing and sometimes quickly switching between multiple different completions) when I type ..
This is already an issue in master but since you have this patch I think might as well just put a comment here.
On my system, this patch causes completion to fail completely. Logs show
This is gopls 0.9.5 with go 1.19.2. EDIT: with |
I think this is the code that handles it in VSCode: https://github.com/microsoft/vscode/blob/ba9399b83d048e780646896d5f81bcc08d759c6b/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.ts#L539-L548 |
I don't have enough context to be confident in my conflict resolutions, but I merged this into |
Superseded by #6173 |
Completion will not work correct When We type chars between sended to completion request and recived the result. These chars will not be replaced by completion items.