-
Notifications
You must be signed in to change notification settings - Fork 36
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
Remove ${} from completion items' sortText #279
Conversation
@@ -100,6 +100,14 @@ export class ConfigCompletionItemProvider implements vscode.CompletionItemProvid | |||
completionItem.range = overwriteRange; | |||
completionItem.insertText = value + separator; | |||
completionItem.kind = vscode.CompletionItemKind.Value; | |||
|
|||
// Deprioritize image placeholders with platform (e.g., ${MODULES.SampleModule.amd64}) in completion item list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what I am thinking is not deprioritize, but the correct group together of names. Can we use the value without "${}" for sort?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean sort the content in ${ }, MODULES.SampleFunction... Instead of the whole string ${MODULES.SampleFunction....} . use "split by ." is not robust. Since user may have folder name containing "."
Order with this change: