Commit 22b25e8
committed
fix(@angular/cli): allow ng completion only outside of ng app folders
If an ng app folder was created with an older CLI version, then the ng CLI is upgraded globally,
one cannot perform `ng completion` INSIDE that app folder.
Thus it is advisable to only allow ng completion in places
such as shell start-up code, for which the completion is meant in the first place.
The completion call perfoemd in an ng app folder generated with an older version
issues a warning, which the shell cannot ignored, but tries to interpret as genuine
commands, and thus it fails miserably then and there.
The change constitute a breaking change, because previously `ng completion` could be
called from `everywhere`.1 parent 2d7a6f2 commit 22b25e8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments