Closed ayyash closed 5 years ago
God knows I spent over a day before I wrote this ticket, then I found out you can do this:
"less.scanImportedFiles": false,
Now I was getting another error from this file C:\Users\{user}\.vscode-insiders\extensions\mrmlnc.vscode-less-0.6.3\node_modules\less-symbols-parser\out
Line 15, there is no property 1 of null, so I edited it to have if (!stat) continue;
on line 15. And there, the plugins works again :)
I wish I knew how to code that, I would have! This extension can really be useful if it just does one of two things:
ignore imports, and traverse a list of included paths (instead of "excluding from scanning"). The reasoning behind this is that we usually have third party tools to take care of creating CSS files, which usually come with a
{includePaths:[]}
property to traverse paths, most probably from node_modules, for imports, to simplify the import lines in less files. So usually, we really do not import real paths.OR: make it forgiving, we can make a dummy file of the imported urls, not included in css creation to trick this tool, but as it is right now, if an import is bad, the tool hangs and never works again with
Any volunteers?