-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
do not suggest lang when editing attributes #469
do not suggest lang when editing attributes #469
Conversation
how do i add test for this? |
You can have a test similar to this one
setup('<div sty') and filter the return list see if lang completion exists |
Note: You need to merge the changes from master in and do |
I noticed there is an easier (and possibly more performant) way to fix this: The completion for tags has const styleScriptTemplateCompletions = completions.filter((completion) =>
completion.kind === CompletionItemKind.Property && ['template', 'style', 'script'].includes(completion.label),
; |
e71d408
to
14ed766
Compare
ok , updated the branch and added test case |
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.
Nice!
const styleScriptTemplateCompletions = completions.filter( | ||
(completion) => | ||
completion.kind === CompletionItemKind.Property && | ||
this.styleScriptTemplate.has(completion.label), |
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.
That's a great optimization!
Before
After