We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b03e998 commit a37002dCopy full SHA for a37002d
lib/util/javascript-hint.js
@@ -127,8 +127,9 @@
127
}
128
else {
129
// If not, just look in the window object and any local scope
130
- // (reading into JS mode internals to get at the local variables)
+ // (reading into JS mode internals to get at the local and global variables)
131
for (var v = token.state.localVars; v; v = v.next) maybeAdd(v.name);
132
+ for (var v = token.state.globalVars; v; v = v.next) maybeAdd(v.name);
133
gatherCompletions(window);
134
forEach(keywords, maybeAdd);
135
0 commit comments