mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Fix for #3589. In code hints, sort leading _ names to bottom.
This also alters StringMatch.multiFieldSort to use an array to define the sort order,
though I stopped short of deprecating the old { key: priority } format.
This commit is contained in:
1 parent
13a0077138
commit
9672c7e19d
5 files changed
+137
-24
No files matched your search
@@ -1040,6 +1040,12 @@ define(function (require, exports, module) {
|
||||
expectNoHints(JSCodeHints.jsHintProvider);
|
||||
});
|
||||
});
|
||||
|
||||
it("should sort underscore names to the bottom", function () {
|
||||
testEditor.setCursorPos({ line: 146, ch: 0 });
|
||||
var hintObj = expectHints(JSCodeHints.jsHintProvider);
|
||||
hintsPresentOrdered(hintObj, ["A1", "A2", "A3", "funB", "_A1"]);
|
||||
});
|
||||
});
|
||||
|
||||
describe("JavaScript Code Hinting in a HTML file", function () {
|
||||
|
||||
Reference in new issue
Block a user