Skip to content

Commit f669b7d

Browse files
committed
Update project.ts
1 parent 95cd96b commit f669b7d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/commands/project.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ async function pickAdditions(
469469
if (items.findIndex((pi) => pi.Type == "DIR" && pi.Name == app) == -1) {
470470
return {
471471
label: "$(folder) " + app,
472-
fullName: app,
472+
fullName: i,
473473
buttons: [
474474
{
475475
iconPath: new vscode.ThemeIcon("chevron-right"),
@@ -536,7 +536,7 @@ async function pickAdditions(
536536
if (category == "CLS" || !item.fullName.includes("/")) {
537537
tmpParams = [item.fullName + "/*.cls", sys, gen, project, item.fullName + ".", item.fullName + "."];
538538
} else {
539-
tmpParams = [item.fullName + "/*", sys, gen, project, item.fullName + "/"];
539+
tmpParams = [item.fullName + "/*", sys, gen, project, item.fullName.slice(1) + "/"];
540540
}
541541
if (category == undefined) {
542542
if (item.fullName.includes("/")) {
@@ -749,7 +749,11 @@ export async function modifyProject(
749749

750750
let newAdd: ProjectItem[] = [];
751751
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+
);
753757
newAdd = addResult.add;
754758
newRemove = addResult.remove;
755759

0 commit comments

Comments
 (0)