fix error line shift for bundled files
This commit is contained in:
parent
38806c13f5
commit
980bf30323
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ export function parseMergedOutputs(mergedOutputs: MergedOutputs, opts: MergedOut
|
||||||
const shiftSourceName = opts.shiftSourceLines && opts.shiftSourceLines.sourcePath;
|
const shiftSourceName = opts.shiftSourceLines && opts.shiftSourceLines.sourcePath;
|
||||||
const getLine = (path: string, lineStr: string) => {
|
const getLine = (path: string, lineStr: string) => {
|
||||||
const line = Number(lineStr);
|
const line = Number(lineStr);
|
||||||
if (shiftSourceName && (path == shiftSourceName)) {
|
if (shiftSourceName && path.endsWith(shiftSourceName)) {
|
||||||
return line - opts.shiftSourceLines!.skipLines;
|
return line - opts.shiftSourceLines!.skipLines;
|
||||||
} else {
|
} else {
|
||||||
return line;
|
return line;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue