vscode-caniuse icon indicating copy to clipboard operation
vscode-caniuse copied to clipboard

Expand search on hyphenated words

Open marlass opened this issue 8 years ago • 5 comments

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

marlass avatar May 06 '16 12:05 marlass

Do you mean it should work for properties like border-box if my cursor is on the border property?

akamud avatar May 06 '16 12:05 akamud

Yep, that's what i mean.

marlass avatar May 10 '16 18:05 marlass

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!

akamud avatar May 10 '16 23:05 akamud

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.

marlass avatar May 12 '16 08:05 marlass

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.

akamud avatar May 12 '16 11:05 akamud