Skip to content

Commit

Permalink
revert change to writeFile
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Sep 19, 2024
1 parent 3a84cca commit 5a8bc8b
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1158,12 +1158,7 @@ export class TestServerHost implements server.ServerHost, FormatDiagnosticsHost,

// base folder has to be present
const base = getDirectoryPath(file.path);
const folder = this.getRealFolder(base);
// this line can throw on purpose, don't use Debug.assert to avoid redundant debugger hits
// eslint-disable-next-line no-restricted-syntax
if (folder === null || folder === undefined) {
throw new Error(`Directory not found: ${base}`);
}
const folder = Debug.checkDefined(this.getRealFolder(base));

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

0 comments on commit 5a8bc8b

Please sign in to comment.