pucelle / vscode-css-navigation

Allowing Go to definition from HTML to CSS, or Find References from CSS to HTML.
https://marketplace.visualstudio.com/items?itemName=pucelle.vscode-css-navigation
MIT License
64 stars 8 forks source link

definition underline range #75

Open tjx666 opened 2 years ago

tjx666 commented 2 years ago
image

The underline range should contains warning-text. like:

image

In order to implements this, you just need to return DefinitionLink but not Location when find definition. You can ref here:

https://github.com/zyrong/vscode-node-modules/commit/b4c6afec31ae3a60934c029d88c86c1761684253#diff-af536053bebc205974ab5adadb522382f458da257d78020c929970af5c1ad8f2R332

@pucelle

pucelle commented 1 year ago

Try to do so, but cant get any definitions after changed Location to DefinitionLink, data in DefinitionLink is validated to be correct.