From 091b0c3fb1075a13f36e18b1861e29b5b267c447 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 6 Dec 2017 12:02:34 +0100 Subject: [PATCH] move contextChanged after the actual change --- src/app/editor/contextualListener.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) } }