addannotation async

pull/5370/head
filip mertens 3 years ago committed by yann300
parent 791c26403f
commit 2fa172ac8b
  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