addannotation async

pull/1860/head
filip mertens 3 years ago committed by yann300
parent 64df6672c8
commit f433b8e6cb
  1. 6
      libs/remix-ui/renderer/src/lib/renderer.tsx

@ -68,9 +68,9 @@ export const Renderer = ({ message, opt = {}, plugin }: RendererProps) => {
return result
}
const addAnnotation = (file, error) => {
if (file === plugin.call('config', 'getAppParameter', 'currentFile')) {
plugin.call('editor', 'addAnnotation', error, file)
const addAnnotation = async (file, error) => {
if (file === await plugin.call('config', 'getAppParameter', 'currentFile')) {
await plugin.call('editor', 'addAnnotation', error, file)
}
}

Loading…
Cancel
Save