File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -196,17 +196,20 @@ export class VenvManager implements EnvironmentManager {
196196 }
197197
198198 // Open the parent folder of the venv in the current window immediately after creation
199- const envParent = path . dirname ( environment . sysPrefix ) ;
199+ const envParent = environment . sysPrefix ;
200200 try {
201- await commands . executeCommand ( 'vscode.openFolder' , Uri . file ( envParent ) , {
202- forceNewWindow : false ,
203- } ) ;
201+ await commands . executeCommand ( 'revealInExplorer' , Uri . file ( envParent ) ) ;
204202 } catch ( error ) {
205203 showErrorMessage (
206- l10n . t ( 'Failed to open venv parent folder: but venv was still created in {0}' , envParent ) ,
204+ l10n . t (
205+ 'Failed to reveal venv parent folder in VS Code Explorer: but venv was still created in {0}' ,
206+ envParent ,
207+ ) ,
207208 ) ;
208209 traceError (
209- `Failed to open venv parent folder: ${ error instanceof Error ? error . message : String ( error ) } ` ,
210+ `Failed to reveal venv parent folder in VS Code Explorer: ${
211+ error instanceof Error ? error . message : String ( error )
212+ } `,
210213 ) ;
211214 }
212215 }
You can’t perform that action at this time.
0 commit comments