vscode-caniuse
vscode-caniuse copied to clipboard
Expand search on hyphenated words
On properties with "-" between words you get entry not found. When you select whole property it works. It would be great if it worked with these properties only with cursor in property.
Example: place cursor in text-decoration and you get entry not found, but when you select whole text-decoration it works. Would be great if it worked with these properties like with one-word properties (eg. border).
Do you mean it should work for properties like border-box
if my cursor is on the border
property?
Yep, that's what i mean.
Thanks for the feedback, to tell you the truth I'm a bit concerned about cases like that, because the user might want to check for border
property. HTML5 and JS properties can also have a lot of conflicts if we "expand" the search when -
characters are found.
I'll evaluate this proposal and update once I study it more, thanks!
I think actual behaviour is confusing. You write css, have your cursor in border
word of border-box
property and you get that you don't need to worry about this property, because it is widely supported as CSS2.1 property and that is not true for border-box
. I don't think that anyone wanted to check border
property while he was in border-box
property. That's my opinion about that situation.
I don't think that it will introduce a lot of conflicts with HTML5 and JS. However, when it will introduce conflicts i would suggest to turn it on at least for css, scss, less files, where HTML5 and JS properties are not so common.
Let's see what you will find out. I really like this plugin and it help me save a lot of time not needing to browse caniuse site manually. Good job.
Thanks for the feedback, you do have a point about expanding this for CSS, Less and Sass files.
I'll report back as soon as I have more info.