Skip to content

Commit 75d82a9

Browse files
authored
Fix missing windows diagnostics (#1305)
Use the Uri's fsPath right away so we don't need to worry about mismatches downstream Issue: #1304
1 parent 3398bd2 commit 75d82a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/DiagnosticsManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ export class DiagnosticsManager implements vscode.Disposable {
360360
if (!match) {
361361
return;
362362
}
363-
const uri = match[1];
363+
const uri = vscode.Uri.file(match[1]).fsPath;
364364
const message = this.capitalize(match[5]).trim();
365365
const range = this.range(match[2], match[3]);
366366
const severity = this.severity(match[4]);

test/integration-tests/DiagnosticsManager.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ suite("DiagnosticsManager Test Suite", async function () {
157157
([_uri, diagnostics]) => diagnostics.length > 0
158158
);
159159
console.error(
160-
`${title} - Not all diagnostics were fulfilled`,
160+
`${title} - Not all diagnostics were fulfilled. Remaining:`,
161161
JSON.stringify(remainingDiagnostics, undefined, " ")
162162
);
163163
}

0 commit comments

Comments
 (0)