Replies: 1 comment 1 reply
-
You are hitting a border case. There are two different mime types at play here:
You can observe this, if you put a breakpoint in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a feature to automatically close html tags as you can see it here in
VS Code:

or in WebStorm:

So right after I hit ">" I want to insert the closing tag of the corresponding open tag e.g. <div"></div>" In general, it was easy, I found the part in the HtmlTypedTextInterceptor. So I added a function, check for opening tag and automatically add the end tag. So far so good. This works for those examples:
There is, atm just one problem where the inteceptor, not intercept:
<div class="t"> -> <div class="t"> (Code completion comes up)
So my problem is that the difference between
<div class=""> and <div class="t">
is the value inside the quotes of the class attribute. I jumped in with the debugger and I can't figure out why the Interceptor doesn't jump in here. With the value, the HtmlCompletionProvider jumps in.Can someone please give me a hint where to find when the HtmlCompletionProvier jumps in and when HtmlTypedTextInterceptor? I need to check what's going on with the value and trying to fix this.
Beta Was this translation helpful? Give feedback.
All reactions