Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Completion not filtering/sorting by prefix #630

Open
brainoutsource opened this issue Sep 5, 2019 · 2 comments
Open

Completion not filtering/sorting by prefix #630

brainoutsource opened this issue Sep 5, 2019 · 2 comments

Comments

@brainoutsource
Copy link

Hello! I'm working on a tool which uses javascript-typescript-langserver among other LSPs.

Diagnostics work fine, but I'm having trouble (or am I?) with the way completion works. Consider the example:

  1. I invoke completion (| is the position of the cursor I send with CompletionParams.Position):
document.body.|textContent = user; 

and get all kinds of relevant stuff, starting with accessKey, and including the textContent.

  1. Now I invoke the completion here:
document.body.tex|tContent = user; 

and I get the very same result, not filtered or sorted by the tex prefix.

Is it an expected behaviour? Is it LSP client's job to sort/filter the completion suggestions? Thank you!

Btw, theia-ide/typescript-language-server/ displays the same behaviour.

@garyo
Copy link

garyo commented Oct 12, 2019

I'm having the same issue. Any news on this?

@hcnode
Copy link

hcnode commented Jun 6, 2020

Any update on this issue? this seems obviously even I use the vs plugin based on this lib, this issue still happen.

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

No branches or pull requests

3 participants