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

Added command to open caniuse.com for feature.

Open nchutchind opened this issue 8 years ago • 3 comments

Used the same as the default behavior, but with a different shortcut will open the browser to caniuse.com/selectedWord.

nchutchind avatar Jul 07 '16 22:07 nchutchind

Coverage Status

Coverage remained the same at 100.0% when pulling 00eaea82771fb9cf4e7e148afad4e705deb1c304 on nchutchind:master into 8fb16adcc079f58d10519b75c2dcd386876c58d5 on akamud:master.

coveralls avatar Jul 07 '16 22:07 coveralls

Hi, thank you for sending this, I looked at the code and I see that you are using the selected word to send to CanIUse, they use keywords for most of the rules, so just sending the selected word won't work for many rules.

To address this I started using a "mapping" file so it always send the correct keyword to CanIUse. You can see it in use in here.

You should change your code to use this mapping file before calling caniuse.com

akamud avatar Jul 16 '16 12:07 akamud

I think click the status bar to open caniuse.com is also a good feature.

yangg avatar Oct 11 '16 03:10 yangg