File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,13 +56,13 @@ export class ExistingProjects implements PythonProjectCreator {
5656
5757 if ( filtered . length === 0 ) {
5858 // No new projects found that are not already in the project manager
59+ const formattedProjectPaths =
60+ existingAddUri === undefined ? 'None' : existingAddUri . map ( ( uri ) => uri . fsPath ) . join ( ', ' ) ;
5961 traceInfo (
60- `All selected resources are already registered in the project manager: ${ existingAddUri
61- . map ( ( uri ) => uri . fsPath )
62- . join ( ', ' ) } `,
62+ `All selected resources are already registered in the project manager. Resources selected: ${ formattedProjectPaths } ` ,
6363 ) ;
6464 setImmediate ( ( ) => {
65- if ( existingAddUri . length === 1 ) {
65+ if ( existingAddUri && existingAddUri . length === 1 ) {
6666 showWarningMessage ( `Selected resource already exists as project.` ) ;
6767 } else {
6868 showWarningMessage ( 'Selected resources already exist as projects.' ) ;
You can’t perform that action at this time.
0 commit comments