File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 22// Licensed under the MIT License.
33
44import { inject , injectable , named } from 'inversify' ;
5- import { CancellationToken , Uri } from 'vscode' ;
5+ import { CancellationToken , Uri , workspace } from 'vscode' ;
66import { PythonEnvironment } from '../../platform/pythonEnvironments/info' ;
77import { IDeepnoteToolkitInstaller , DEEPNOTE_TOOLKIT_WHEEL_URL } from './types' ;
88import { 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
You can’t perform that action at this time.
0 commit comments