mrcrowl / vscode-easy-less

Easy LESS extension for Visual Studio Code
MIT License
67 stars 23 forks source link

Relative path to .less file, goes two directories up #38

Closed marcing closed 4 years ago

marcing commented 6 years ago

Following code does not look for theme.less in correct directory. Instead of parent directory, it looks for it in parent of parent.

"less.compile": { "main": ["../theme.less"], }

Cheers

DifficultNick commented 5 years ago

If settings.json in parent directory contains "main": ["./style.less"] then files in subdirectory are using ./parent/sub/style.less instead of ./parent/style.less.

It would be great if it would be solved

mrcrowl commented 4 years ago

In this situation, I would recommend using the ${workspaceRoot} variable in your main setting. e.g.

{    
    "less.compile": {
        "main": "${workspaceRoot}/style.less"
    }
}