|
|
@ -69,7 +69,7 @@ export const Renderer = ({ message, opt = {}, plugin }: RendererProps) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const addAnnotation = (file, error) => { |
|
|
|
const addAnnotation = (file, error) => { |
|
|
|
if (file === plugin.getAppParameter('currentFile')) { |
|
|
|
if (file === plugin.call('app', 'getAppParameter', 'currentFile')) { |
|
|
|
plugin.call('editor', 'addAnnotation', error, file) |
|
|
|
plugin.call('editor', 'addAnnotation', error, file) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -87,10 +87,10 @@ export const Renderer = ({ message, opt = {}, plugin }: RendererProps) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const _errorClick = async (errFile, errLine, errCol) => { |
|
|
|
const _errorClick = async (errFile, errLine, errCol) => { |
|
|
|
if (errFile !== plugin.getAppParameter('currentFile')) { |
|
|
|
if (errFile !== plugin.call('app', 'getAppParameter', 'currentFile')) { |
|
|
|
// TODO: refactor with this._components.contextView.jumpTo
|
|
|
|
// TODO: refactor with this._components.contextView.jumpTo
|
|
|
|
if (await plugin.fileExists(errFile)) { |
|
|
|
if (await plugin.call('fileManager', 'exists', errFile)) { |
|
|
|
plugin.open(errFile) |
|
|
|
plugin.call('fileManager', 'open', errFile) |
|
|
|
plugin.call('editor', 'gotoLine', errLine, errCol) |
|
|
|
plugin.call('editor', 'gotoLine', errLine, errCol) |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|