diff --git a/src/app/editor/contextualListener.js b/src/app/editor/contextualListener.js index aa3292414b..6f5363eb09 100644 --- a/src/app/editor/contextualListener.js +++ b/src/app/editor/contextualListener.js @@ -67,10 +67,10 @@ class ContextualListener { this.currentFile = file if (compilationResult && compilationResult.data && compilationResult.data.sources[file]) { var nodes = this.sourceMappingDecoder.nodesAtPosition(null, cursorPosition, compilationResult.data.sources[file]) - this.event.trigger('contextChanged', [nodes]) if (nodes && nodes.length && nodes[nodes.length - 1]) { this._highlightExpressions(nodes[nodes.length - 1], compilationResult) } + this.event.trigger('contextChanged', [nodes]) } }