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

Remove ${} from completion items' sortText #279

Merged
merged 4 commits into from
Nov 8, 2018
Merged

Remove ${} from completion items' sortText #279

merged 4 commits into from
Nov 8, 2018

Conversation

LazarusX
Copy link
Contributor

@LazarusX LazarusX commented Nov 8, 2018

Order with this change:
image

@@ -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
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's already grouped (master branch):
image

Do you mean we also need to remove platforms like amd64 from sortText?

Copy link
Member

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 "."

@LazarusX LazarusX changed the title Deprioritize image placeholders with platform in completion item list Remove ${} from completion items' sortText Nov 8, 2018
@LazarusX
Copy link
Contributor Author

LazarusX commented Nov 8, 2018

New order:
image

@LazarusX LazarusX merged commit bfffb87 into master Nov 8, 2018
@LazarusX LazarusX deleted the ray-order branch November 8, 2018 05:26
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.

2 participants