Skip to content

Commit

Permalink
fix(vscode): multiple projects in one workspace not work (#4055)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 authored Aug 12, 2024
1 parent bcac919 commit 1ed1da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vscode/src/contextLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class ContextLoader {
}

isTarget(id: string) {
return !this.contextsMap.get(this.cwd) || isSubdir(this.cwd, id)
return Array.from(this.contextsMap.keys()).some(cwd => isSubdir(cwd, id))
}

get contexts() {
Expand Down

0 comments on commit 1ed1da4

Please sign in to comment.