diff --git a/libs/remix-ui/renderer/src/lib/renderer.tsx b/libs/remix-ui/renderer/src/lib/renderer.tsx index f83223e14b..eae9e0d4b0 100644 --- a/libs/remix-ui/renderer/src/lib/renderer.tsx +++ b/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) } }