@@ -469,7 +469,7 @@ async function pickAdditions(
469
469
if ( items . findIndex ( ( pi ) => pi . Type == "DIR" && pi . Name == app ) == - 1 ) {
470
470
return {
471
471
label : "$(folder) " + app ,
472
- fullName : app ,
472
+ fullName : i ,
473
473
buttons : [
474
474
{
475
475
iconPath : new vscode . ThemeIcon ( "chevron-right" ) ,
@@ -536,7 +536,7 @@ async function pickAdditions(
536
536
if ( category == "CLS" || ! item . fullName . includes ( "/" ) ) {
537
537
tmpParams = [ item . fullName + "/*.cls" , sys , gen , project , item . fullName + "." , item . fullName + "." ] ;
538
538
} else {
539
- tmpParams = [ item . fullName + "/*" , sys , gen , project , item . fullName + "/" ] ;
539
+ tmpParams = [ item . fullName + "/*" , sys , gen , project , item . fullName . slice ( 1 ) + "/" ] ;
540
540
}
541
541
if ( category == undefined ) {
542
542
if ( item . fullName . includes ( "/" ) ) {
@@ -749,7 +749,11 @@ export async function modifyProject(
749
749
750
750
let newAdd : ProjectItem [ ] = [ ] ;
751
751
let newRemove : ProjectItem [ ] = [ ] ;
752
- const addResult = addProjectItem ( type == "CLS" || type == "PKG" ? pick . slice ( 0 , - 4 ) : pick , type , items ) ;
752
+ const addResult = addProjectItem (
753
+ type == "CLS" || type == "PKG" ? pick . slice ( 0 , - 4 ) : type == "CSP" || type == "DIR" ? pick . slice ( 1 ) : pick ,
754
+ type ,
755
+ items
756
+ ) ;
753
757
newAdd = addResult . add ;
754
758
newRemove = addResult . remove ;
755
759
0 commit comments