|
|
|
@ -225,19 +225,9 @@ export default class CodeParserCompiler { |
|
|
|
|
} |
|
|
|
|
for (const fileName of filesWithOutErrors) { |
|
|
|
|
const fileTarget = await this.plugin.call('fileManager', 'getPathFromUrl', fileName) |
|
|
|
|
const decorator: fileDecoration = { |
|
|
|
|
path: fileTarget.file, |
|
|
|
|
isDirectory: false, |
|
|
|
|
fileStateType: fileDecorationType.None, |
|
|
|
|
fileStateLabelClass: '', |
|
|
|
|
fileStateIconClass: '', |
|
|
|
|
fileStateIcon: '', |
|
|
|
|
text: '', |
|
|
|
|
owner: 'code-parser', |
|
|
|
|
bubble: false |
|
|
|
|
} |
|
|
|
|
decorators.push(decorator) |
|
|
|
|
await this.plugin.call('fileDecorator', 'clearFileDecorators', fileTarget.file) |
|
|
|
|
} |
|
|
|
|
if(decorators.length > 0) |
|
|
|
|
await this.plugin.call('fileDecorator', 'setFileDecorators', decorators) |
|
|
|
|
await this.plugin.call('editor', 'clearErrorMarkers', filesWithOutErrors) |
|
|
|
|
|
|
|
|
@ -265,22 +255,8 @@ export default class CodeParserCompiler { |
|
|
|
|
const decorators: fileDecoration[] = [] |
|
|
|
|
if (!sources) return |
|
|
|
|
for (const fileName of Object.keys(sources)) { |
|
|
|
|
const decorator: fileDecoration = { |
|
|
|
|
path: fileName, |
|
|
|
|
isDirectory: false, |
|
|
|
|
fileStateType: fileDecorationType.None, |
|
|
|
|
fileStateLabelClass: '', |
|
|
|
|
fileStateIconClass: '', |
|
|
|
|
fileStateIcon: '', |
|
|
|
|
text: '', |
|
|
|
|
owner: 'code-parser', |
|
|
|
|
bubble: false |
|
|
|
|
await this.plugin.call('fileDecorator', 'clearFileDecorators', fileName) |
|
|
|
|
} |
|
|
|
|
decorators.push(decorator) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await this.plugin.call('fileDecorator', 'setFileDecorators', decorators) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async getPositionForImportErrors(importedFileName: string, text: string) { |
|
|
|
|