Skip to content
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

🐛 Fix VS Code not showing multi-line completions #1185

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SPGoding
Copy link
Member

@SPGoding SPGoding commented May 20, 2024

Based on #1180 (only changes are in 7d0ae87).

Fixes #1183.

multi-line-completion.mp4

Note that this workaround is only implemented for language clients that set hasFlawedMultiLineCompletionItemFiltering to true in the initialization options, since the original code in Afro's PR works fine for text editors with proper multi-line completion item filtering support (e.g. Helix) and although the workaround makes the completion items show up to the user, it does not do any filtering when the user is not on the first line of the multi-line range due to #1184.

no-filtering-on-second-line.mp4

@SPGoding SPGoding force-pushed the multi-line-completion-fix branch 3 times, most recently from ddc88a6 to 7d0ae87 Compare May 20, 2024 11:46
@TheAfroOfDoom TheAfroOfDoom self-requested a review May 20, 2024 16:05
@SPGoding SPGoding added the pr:blocked Progress on this is blocked by another item label May 24, 2024
@NeunEinser NeunEinser self-requested a review May 26, 2024 20:37
@TheAfroOfDoom TheAfroOfDoom removed the pr:blocked Progress on this is blocked by another item label May 26, 2024
@SPGoding SPGoding force-pushed the multi-line-completion-fix branch from 902518c to c629077 Compare May 26, 2024 22:19
@SPGoding SPGoding marked this pull request as draft May 26, 2024 22:43
@SPGoding
Copy link
Member Author

i wrote this at 5 am while i was frustrated with VS Code. need to double check everything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multi-line completions are not shown in VS Code
3 participants