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

End Tag completion should be given higher priority than <!-- and <!CDATA[ #1153

Merged
merged 1 commit into from
Jan 14, 2022

Conversation

angelozerr
Copy link
Contributor

End Tag completion should be given higher priority than <!-- and <!CDATA[

Fixes #1150

Signed-off-by: azerr [email protected]

@angelozerr
Copy link
Contributor Author

Here the PR result, now snippet are after the end tag element:

image

/cc @mickaelistria

@@ -7,6 +7,7 @@
"body": [
"<!-- $1-->"
],
"description": "Insert Comment"
"description": "Insert Comment",
"sortText": "ZZa"
Copy link
Contributor

Choose a reason for hiding this comment

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

sinze 'a'(== 97) > A(==65), should the sortext be zzA instaed to not make it lower than eg Hello ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Your usecase Hello works with my current PR:

image

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe vscode does lozercase the sorttext or something. I'll try with LSP4E soon.

@mickaelistria
Copy link
Contributor

OK, I verified with LSP4E and this would be supposed to work (although some other bug in LSP4E is also in play here and needs to be fixed to get expected results), so it seems good to merge from LemMinX perspective.

@mickaelistria mickaelistria merged commit f02d335 into eclipse:master Jan 14, 2022
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.

End Tag completion should be given higher priority than <!-- and <!CDATA[
2 participants