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 ddafba7 commit 3f901c5Copy full SHA for 3f901c5
addon/hint/javascript-hint.js
@@ -147,6 +147,8 @@
147
// If not, just look in the global object and any local scope
148
// (reading into JS mode internals to get at the local and global variables)
149
for (var v = token.state.localVars; v; v = v.next) maybeAdd(v.name);
150
+ for (var c = token.state.context; c; c = c.prev)
151
+ for (var v = c.vars; v; v = v.next) maybeAdd(v.name)
152
for (var v = token.state.globalVars; v; v = v.next) maybeAdd(v.name);
153
if (!options || options.useGlobalScope !== false)
154
gatherCompletions(global);
0 commit comments