Commit 2702a1ea authored by yann300's avatar yann300

fix highlight

parent 0d66c6f0
......@@ -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()
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment