Commit e4baa7b
committed
fix(@angular/cli): throw on out-of-roots workspace in best-practices tool
Aligns get_best_practices with resolveWorkspaceAndProject, which throws
when a caller-supplied workspacePath falls outside the client's declared
MCP roots rather than silently falling back. The try/catch now wraps only
the isAllowedWorkspacePath call so genuine verification failures (e.g. a
non-existent path) still fall back to the bundled guide, while a path
outside the roots surfaces an actionable error pointing at list_projects.1 parent 5c054c0 commit e4baa7b
1 file changed
Lines changed: 9 additions & 8 deletions
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 102 | + | |
109 | 103 | | |
110 | 104 | | |
111 | 105 | | |
| |||
114 | 108 | | |
115 | 109 | | |
116 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
0 commit comments