Skip to content

Commit

Permalink
Replace Debug.checkDefined to avoid redundant debugger stops (#60009)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Sep 19, 2024
1 parent 49ad1a3 commit 9f150e0
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,11 @@ export class TestServerHost implements server.ServerHost, FormatDiagnosticsHost,

// base folder has to be present
const base = getDirectoryPath(file.path);
const folder = Debug.checkDefined(this.getRealFolder(base));
const folder = this.getRealFolder(base);

if (!folder) {
throw new Error(`Directory not found: ${base}`);
}

if (folder.path === base) {
if (!this.fs.has(file.path)) {
Expand Down

0 comments on commit 9f150e0

Please sign in to comment.