You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Completion list is filtered on leading whitespace #66860
However, if you type a space (as shown above, to have whitespace between : and the value), the completion list gets filtered and disappears. While it's possible to set <space> as a trigger character, that results in the completion provider being called a lot (for example on every space inside comments) which then need to be filtered out by the extension.
Is it reasonable to ignore leading whitespace when filtering the completion list to simplify things? It seems almost certain that no provider is ever going to return completion items with leading spaces expecting them to be precisely filtered?
We have a great developer community over on slack where extension authors help each other. This is a great place for you to ask questions and find support.
Johannes Rieken (@jrieken) Do you mean prefix the filterText for all entries with spaces? I can certainly try this, but it feels a bit weird as a solution.
Activity
jrieken commentedon Jan 21, 2019
You must
filterTextandsortTextthen, the simple, label-only, completion doesn't cover this case.vscodebot commentedon Jan 21, 2019
We have a great developer community over on slack where extension authors help each other. This is a great place for you to ask questions and find support.
Happy Coding!
DanTup commentedon Jan 22, 2019
Johannes Rieken (@jrieken) Do you mean prefix the
filterTextfor all entries with spaces? I can certainly try this, but it feels a bit weird as a solution.