pranaygp / vscode-css-peek

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

less files not working! #13

Closed andreskebe closed 6 years ago

andreskebe commented 6 years ago

Tried with an existing project, with a new project, tried changing the stylesheets in the test folder to .less files and VS code does not recognize any of the classes or tags in less files!

I'm on Mac OS 10.12.6 running VS Code 1.18.1

.css and .scss are working fine (tested it with the files in the test folder)

pranaygp commented 6 years ago

That's odd. There's a configuration option css_peek.searchFileExtensions, which, by default, supports ".css", ".less" and ".scss" file extensions. That said, for ".less" files, it also parses the less file using the less preprocessor (https://github.com/less/less.js). I suppose if your less file is invalid or doesn't get parsed correctly, it might not work?

I'll test it myself in a bit, and even add .less files to the test folder

andreskebe commented 6 years ago

I figured it was odd, since it was working perfectly with css and scss! I'll test it with a valid less file and will let you know.

Were your tests successful? Thank you!

pranaygp commented 6 years ago

@andreskebe I am in the middle of a rewrite of the codebase for this extension (making use of the new Language Server Protocol).

I'll make sure to test and ensure less support when releasing the new version (2.0)

pranaygp commented 6 years ago

I think .less files are now working (update to version 2.0)

I've included a .less file in my test_files as well (manual testing) and I can confirm that the file works when I tested it.

Please re-open this issue if you're still having troubles after the update

andreskebe commented 6 years ago

Works perfectly! Thank you