Skip to content

Commit

Permalink
chore: use tasks to find projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Konings committed May 20, 2024
1 parent 946d506 commit 83a0571
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,14 +341,14 @@ async function findProjectInFolder(workspaceFolder?: vscode.WorkspaceFolder) {
return [];
}
const exclusions: string[] = ["**/node_modules", "**/cdk.out", "**/dist"];
const pattern: string = "**/.projen/deps.json";
const pattern: string = "**/.projen/tasks.json";
const depFileList = await vscode.workspace.findFiles(
new vscode.RelativePattern(workspaceFolder, pattern),
`{${exclusions.join(",")}}`
);

const cleanupList = depFileList.map((f) => {
return f.with({ path: f.path.replace("/.projen/deps.json", "") });
return f.with({ path: f.path.replace("/.projen/tasks.json", "") });
});

return cleanupList;
Expand Down

0 comments on commit 83a0571

Please sign in to comment.