Commit 5977d7e
committed
Install further packages automatically
PC has the notion of "dependent" or additional packages. These are
defined in a standard "Package Control.sublime-settings" file, hosted
by the package. (I.e. similar to the "dependencies.json".)
Installing such a package did not install the additional packages in one
go, neither did it notify about the incomplete install. In the end, a
restart is enough and required to trigger `install_missing_packages()`
to catch up and install everything.
We have two options here. (1) to bail out `install_package` with
`return None` and a message to tell the user to restart Sublime, or (2)
to install the packages in a recursive style.
Here we choose (1) which is a simple babystep for a better UX. (2) is
not possible as all install side-effects need to run serialized.1 parent 904eb36 commit 5977d7e
1 file changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1600 | 1600 | | |
1601 | 1601 | | |
1602 | 1602 | | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
1603 | 1630 | | |
1604 | 1631 | | |
1605 | 1632 | | |
| |||
0 commit comments