add sources

editorcontextDummy
filip mertens 2 years ago
parent 7f601c8e0f
commit 51f87f6c7a
  1. 4
      libs/remix-core-plugin/src/lib/editor-context-listener.ts

@ -116,13 +116,15 @@ export class EditorContextListener extends Plugin {
console.log('ERROR POS', error)
let pos = helper.getPositionDetails(error.formattedMessage)
console.log('ERROR POS', pos)
const sources = result.getSourceCode().sources
const source = sources[pos.file]
const lineColumn = await this.call('offsetToLineColumnConverter', 'offsetToLineColumn',
{
start: error.sourceLocation.start,
length: error.sourceLocation.end - error.sourceLocation.start
},
0,
result.getSourceCode().sources,
sources,
null)
console.log('lineColumn', lineColumn)
allErrors.push({ error, lineColumn })

Loading…
Cancel
Save