Skip to content

Commit e4ebaba

Browse files
edrioukCopilot
andauthored
Update src/solutions/solution-problems.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent b1c72f4 commit e4ebaba

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/solutions/solution-problems.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ export class SolutionProblemsImpl implements SolutionProblems {
143143
if (m?.groups) {
144144
const { filename, line, column, message } = m.groups;
145145
const fromMap = files.has(filename) ? files.get(filename) : undefined;
146-
const file = (fromMap || (filename && path.isAbsolute(filename) ? filename : undefined) || this.solutionManager.getCsolution()?.solutionPath) ?? '';
146+
const file = fromMap || (filename && path.isAbsolute(filename) ? filename : undefined) || this.solutionManager.getCsolution()?.solutionPath;
147+
if (!file) {
148+
return false;
149+
}
147150
const startLine = line ? Math.max(Number(line) - 1, 0) : 0;
148151
const startCharacter = column ? Math.max(Number(column) - 1, 0) : 0;
149152
let endCharacter = startCharacter;

0 commit comments

Comments
 (0)