Skip to content

Commit

Permalink
make microsoft#1656 a little better.
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAndOr committed Jun 27, 2024
1 parent 5f238bd commit 0824547
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/targets/browser/browserLauncher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*--------------------------------------------------------*/

import { IBrowserFinder, isQuality } from '@vscode/js-debug-browsers';
import * as fs from 'fs';
import { promises as fsp } from 'fs';
import { inject, injectable } from 'inversify';
import * as path from 'path';
import { CancellationToken } from 'vscode';
Expand Down Expand Up @@ -108,11 +108,11 @@ export abstract class BrowserLauncher<T extends AnyChromiumLaunchConfiguration>
);
}

fs.mkdirSync(this.storagePath, { recursive: true });
await fsp.mkdir(this.storagePath, { recursive: true });

if (resolvedDataDir) {
fs.mkdirSync(resolvedDataDir, { recursive: true });
resolvedDataDir = fs.realpathSync(resolvedDataDir);
await fsp.mkdir(resolvedDataDir, { recursive: true });
resolvedDataDir = await fsp.realpath(resolvedDataDir);
}

return await launcher.launch(
Expand Down

0 comments on commit 0824547

Please sign in to comment.