File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -89,7 +89,9 @@ async function getActivationTelemetryProps(serviceContainer: IServiceContainer):
89
89
return { workspaceFolderCount, terminal : terminalShellType } ;
90
90
}
91
91
const interpreterService = serviceContainer . get < IInterpreterService > ( IInterpreterService ) ;
92
- const mainWorkspaceUri = workspaceService . workspaceFolders ? workspaceService . workspaceFolders [ 0 ] . uri : undefined ;
92
+ const mainWorkspaceUri = workspaceService . workspaceFolders ?. length
93
+ ? workspaceService . workspaceFolders [ 0 ] . uri
94
+ : undefined ;
93
95
const hasPythonThree = await interpreterService . hasInterpreters ( async ( item ) => item . version ?. major === 3 ) ;
94
96
// If an unknown type environment can be found from windows registry or path env var,
95
97
// consider them as global type instead of unknown. Such types can only be known after
You can’t perform that action at this time.
0 commit comments