mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Add StringUtils.htmlEscape() back in.
Remove "types" from a tern query since types are not hinted for identifiers or properties.
This commit is contained in:
1 parent
42ad4f7979
commit
7d52361aa7
2 files changed
+4
-5
No files matched your search
@@ -114,9 +114,9 @@ define(function (require, exports, module) {
|
||||
|
||||
// higlight the matched portion of each hint
|
||||
if (query.length > 0 && index >= 0) {
|
||||
var prefix = hint.slice(0, index),
|
||||
match = hint.slice(index, index + query.length),
|
||||
suffix = hint.slice(index + query.length);
|
||||
var prefix = StringUtils.htmlEscape(hint.slice(0, index)),
|
||||
match = StringUtils.htmlEscape(hint.slice(index, index + query.length)),
|
||||
suffix = StringUtils.htmlEscape(hint.slice(index + query.length));
|
||||
|
||||
$hintObj.append(prefix)
|
||||
.append($("<span>")
|
||||
|
||||
@@ -93,7 +93,6 @@ importScripts("thirdparty/requirejs/require.js");
|
||||
query.filter = false;
|
||||
query.sort = false;
|
||||
query.depths = true;
|
||||
query.types = true;
|
||||
query.guess = false;
|
||||
|
||||
var request = {query:query, files:[], offset:offset};
|
||||
@@ -148,7 +147,7 @@ importScripts("thirdparty/requirejs/require.js");
|
||||
for (var i = 0; i < data.completions.length; ++i) {
|
||||
var completion = data.completions[i];//, className = typeToIcon(completion.type);
|
||||
//if (data.guess) className += " Tern-completion-guess";
|
||||
completions.push({value: completion.name, type: completion.type, depth: completion.depth, guess: completion.guess /*, className: className*/});
|
||||
completions.push({value: completion.name, depth: completion.depth, guess: completion.guess});
|
||||
}
|
||||
|
||||
// Post a message back to the main thread with the completions
|
||||
|
||||
Reference in new issue
Block a user