-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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 |
@@ -137,6 +137,36 @@ define(function (require, exports, module) { | |||
expect(testWindow.$.contains(testWindow.document, result)).toBeTruthy(); | |||
}); | |||
}); | |||
|
|||
// putting everything LESS related in 1 test so it runs faster |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.less
case and all references are loaded correctly.