-
Notifications
You must be signed in to change notification settings - Fork 185
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
Completions overhaul #2010
Completions overhaul #2010
Conversation
It's missing something, it doesn't strip the label at the end For comparison, VSCode:
|
Uses this logic in that case: Lines 963 to 969 in ac91446
Could possibly show |
Maybe it would be more consistent to use CompletionItem.detail should be used for e.g. types: /**
* A human-readable string with additional information
* about this item, like type or symbol information.
*/
detail?: string; CompletionItem.labelDetails.description should be used for e.g. file paths: /**
* An optional string which is rendered less prominently after
* {@link CompletionItemLabelDetails.detail}. Should be used for fully qualified
* names or file path.
*/
description?: string; I would argue that file path or fully qualified name is less important than type information, and therefore should go into ST "details" pane at the bottom (currently used logic). But feel free to open a PR with an improvement. However, if we change the "annotation" as suggested above, and another server uses the fields according to the descriptions in the docs, then we have a problem. Also it says that |
That make sense, i will try to send a PR to fix that behavior for this particular server |
Alternative to and discussed in #2002.