Fix line skipping in markers processing
This commit is contained in:
parent
9a33556eeb
commit
028172b01d
1 changed files with 8 additions and 2 deletions
|
|
@ -26,7 +26,10 @@ export const checkSyntax =
|
||||||
try {
|
try {
|
||||||
const result = await job;
|
const result = await job;
|
||||||
// console.log(result);
|
// console.log(result);
|
||||||
res(processMergedOutputs(result.mergedOutputs, {shiftSourceLines: {[sourcePath]: 1}}));
|
res(processMergedOutputs(result.mergedOutputs, {shiftSourceLines: {
|
||||||
|
[sourcePath]: 1,
|
||||||
|
[sourcePath.split('/').slice(-1)[0]]: 1
|
||||||
|
}}));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
rej(e);
|
rej(e);
|
||||||
|
|
@ -77,7 +80,10 @@ export const render =
|
||||||
console.log(result);
|
console.log(result);
|
||||||
|
|
||||||
const {logText, markers} = processMergedOutputs(result.mergedOutputs, {
|
const {logText, markers} = processMergedOutputs(result.mergedOutputs, {
|
||||||
shiftSourceLines: {[params.sourcePath]: prefixLines.length}
|
shiftSourceLines: {
|
||||||
|
[params.sourcePath]: prefixLines.length,
|
||||||
|
[params.sourcePath.split('/').slice(-1)[0]]: prefixLines.length
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (result.error) {
|
if (result.error) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue