Skip to content

Commit 82ad53c

Browse files
committed
fix: rm broken venv dir recursively
1 parent fb6c201 commit 82ad53c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/kernels/deepnote/deepnoteToolkitInstaller.node.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the MIT License.
33

44
import { inject, injectable, named } from 'inversify';
5-
import { CancellationToken, Uri } from 'vscode';
5+
import { CancellationToken, Uri, workspace } from 'vscode';
66
import { PythonEnvironment } from '../../platform/pythonEnvironments/info';
77
import { IDeepnoteToolkitInstaller, DEEPNOTE_TOOLKIT_WHEEL_URL } from './types';
88
import { IProcessServiceFactory } from '../../platform/common/process/types.node';
@@ -130,7 +130,7 @@ export class DeepnoteToolkitInstaller implements IDeepnoteToolkitInstaller {
130130
// Remove old venv if it exists but is broken
131131
if (await this.fs.exists(venvPath)) {
132132
logger.info('Removing existing broken venv');
133-
await this.fs.delete(venvPath);
133+
await workspace.fs.delete(venvPath, { recursive: true });
134134
}
135135

136136
// Create new venv

0 commit comments

Comments
 (0)