fix highlight

pull/1/head
yann300 7 years ago
parent 0d66c6f050
commit 2702a1eaf7
  1. 9
      src/app/plugin/pluginAPI.js

@ -97,8 +97,15 @@ module.exports = (pluginManager, fileProviders, fileManager, compiler, udapp) =>
}
},
highlight: (mod, lineColumnPos, filePath, hexColor, cb) => {
var position
try {
position = JSON.parse(lineColumnPos)
} catch (e) {
return cb(e.message)
}
highlighter.currentSourceLocation(null)
highlighter.currentSourceLocation(lineColumnPos, filePath, hexColor)
highlighter.currentSourceLocationFromfileName(position, filePath, hexColor)
cb()
}
}
}

Loading…
Cancel
Save