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 issue #83 #119

Closed
wants to merge 2 commits into from
Closed

Fix issue #83 #119

wants to merge 2 commits into from

Conversation

thomasjm
Copy link
Contributor

@thomasjm thomasjm commented Apr 8, 2019

This is an attempt to fix #83. See my comments there for more context on the problem.

This PR adds filtering to the completion results, so you only get complete results for which the current word you're typing is a prefix.

The main challenge here was to improve the analyser.wordAtPoint function so that it retrieves the correct word when you're at the edge of a word (as is usually the case when using completion).

Note: I suspect that similar boundary issues are the reason for the "Hack" code on line 321 of the original code, so maybe that can be removed now but I'm not sure how to test.

@skovhus

@mads-hartmann
Copy link
Collaborator

Thanks a lot for creating this PR @thomasjm. If you could include a test or two that would be lovely.

skovhus added a commit that referenced this pull request Mar 3, 2020
Most of the implementation was done by @thomasjm in #119
skovhus added a commit that referenced this pull request Mar 4, 2020
Most of the implementation was done by @thomasjm in #119
@skovhus skovhus closed this Mar 4, 2020
@skovhus
Copy link
Collaborator

skovhus commented Mar 4, 2020

Released as part of #192

Thanks for your contribution!

domnewkirk added a commit to domnewkirk/bash-language-server that referenced this pull request Jul 20, 2024
Most of the implementation was done by @thomasjm in bash-lsp/bash-language-server#119
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.

VSCode prompts non-sense.
3 participants