pranaygp / vscode-css-peek

A vscode extension for peeking at CSS definitions from a class or id tag in HTML
MIT License
146 stars 32 forks source link

Peek and Go to Definition both shows / duplicate #48

Closed thwyster closed 4 years ago

thwyster commented 5 years ago

Hi,

When I press F12 (Go To: jump directly to the css file or open it in a new editor), the Css Peek Go to File and show a Peek in Css File, it's confusing!

image

In F12 must be go to css file, not show a peek. Peek just only show using Ctrl+Shift+12 but if I use Ctrl+Shift+F12 in sass class, not show peek

image

What's Happens??

pranaygp commented 4 years ago

This doesn't look like an issue with CSS Peek

If there are multiple definitions available for a css element, like in the screenshot above, then VSCode will always show the peek window instead of jumping.

In the first screenshot, that's not using CSS Peek. Peeking a css class inside a .css file happens directly using the CSS support built into VSCode. it's not handled by CSS Peek.

If CSS Peek is not working in the second example, when it should, please update to latest CSS Peek and try again. If it's still an issue, please open a new issue here with and example repo/codebase I can use to test and reproduce the issue