Fix a case when extension less file is importing other less files#7230
Fix a case when extension less file is importing other less files#7230
Conversation
|
Btw, is there a reason Brackets is still using less |
|
Thanks @le717, I thought I've seen it somewhere but I wasn't sure. Anyway it's not included in this PR. |
|
There's an Extension Utils unit test failing: should attach LESS style sheets |
|
@redmunds It seems my issue only relates to absolute url's. Do we have any function like |
|
I'd probably put the |
|
In thirdparty/path-utils/path-utils.js there's an |
|
Review again please @redmunds |
test/spec/ExtensionUtils-test.js
Outdated
There was a problem hiding this comment.
This comment doesn't seems to make sense. Remove both copies.
|
Looks good. Just 1 minor comment. |
|
Done, comments removed. |
|
Looks good. Thanks for unit test! Merging. |
Fix a case when extension less file is importing other less files
I wanted to split less file my extension is using into more files, but loading failed when using valid import directives. Through debugging, I found out that some properties of file info were not filled as it should.
These are the values for file
brackets.less:And these are the original values calculated for
brackets-git.less:The fix makes fileInfo look the same way as in the
brackets.lesscase and all references are loaded correctly.