When typing, only automatically show hints for the "." character and JS identifier characters.

This commit is contained in:
dloverin committed 2013-04-17 17:29:48 -04:00
1 parent 725a1e8553
commit f6a073ca3d
4 files changed
+63 -51

No files matched your search

@@ -182,7 +182,9 @@ define(function (require, exports, module) {
query = "";
if (token) {
if (token.string !== "." && token.string !== "(" && token.string !== ',') {
// If the token string is not an identifier, then the query string
// is empty.
if (HintUtils.maybeIdentifier(token.string)) {
query = token.string.substring(0, token.string.length - (token.end - cursor.ch));
query = query.trim();
}