check if position.file === current file

pull/1/head
yann300 7 years ago
parent a44366b3c9
commit 9c2755269f
  1. 2
      src/app.js

@ -395,7 +395,7 @@ function run () {
return compiler.lastCompilationResult
},
highlight: (position, node) => {
if (compiler.lastCompilationResult && compiler.lastCompilationResult.source && compiler.lastCompilationResult.source.target === config.get('currentFile')) {
if (compiler.lastCompilationResult && compiler.lastCompilationResult.data && compiler.lastCompilationResult.data.sourceList[position.file] === config.get('currentFile')) {
position = offsetToLineColumnConverter.offsetToLineColumn(position, position.file, compiler.lastCompilationResult)
var css = 'highlightreference'
if (node.children && node.children.length) {

Loading…
Cancel
Save