aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-registry/init.lua
Commit message (Collapse)AuthorAgeFilesLines
* fix(registry): ensure there's no duplicate registry entries (#1957)William Boman2025-05-191-2/+2
|
* refactor(registry): change lua registries to not instantiate Package themselvesWilliam Boman2025-05-021-0/+2
| | | | | | | | Instead of having Lua registries instantiate package instances themselves we now do it in the installer of Lua registry sources. This aligns the behaviour of the Lua registry protocol with the other registry protocols.
* fix(registry): fix registry.is_installed()William Boman2025-03-241-2/+2
|
* refactor(registry)!: add events "update:success", "update:start", ↵William Boman2025-03-031-2/+8
| | | | "update:progress" and "update:failed"
* refactor(registry): parallelize registry installationWilliam Boman2025-03-031-14/+28
|
* refactor(registry): refactor registry initializationWilliam Boman2025-03-031-172/+100
|
* refactor!: change Package APIWilliam Boman2025-02-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the following public APIs: **(_breaking_) Events on the `Package` class** The `uninstall:success` event on the `Package` class now receives an `InstallReceipt` as argument, instead of an `InstallHandle`. This receipt is an in-memory representation of what was uninstalled. There's also a new `uninstall:failed` event for situations where uninstallation for some reason fails. Note: this also applies to the registry events (i.e. `package:uninstall:success` and `package:uninstall:failed`). --- **(_breaking_) `Package:uninstall()` is now asynchronous and receives two new arguments, similarly to `Package:install()`** While package uninstallations remain synchronous under the hood, the public API has been changed from synchronous -> asynchronous. Users of this method are recommended to provide a callback in situations where code needs to execute after uninstallation fully completes. --- **(_breaking_) `Package:get_install_path()` has been removed. --- **`Package:install()` now takes an optional callback** This callback allows consumers to be informed whether installation was successful or not without having to go through a different, low-level, API. See below for a comparison between the old and new APIs: ```lua -- before local handle = pkg:install() handle:once("closed", function () -- ... end) -- after pkg:install({}, function (success, result) -- ... end) ```
* refactor(path): use InstallLocation to produce paths, remove static path methodsWilliam Boman2025-02-191-4/+7
|
* feat(registry): add .get_all_package_specs() (#1247)William Boman2023-04-221-0/+10
| | | | This is a faster method than .get_all_packages() due to the fact that it only loads package specifications without instantiating mason-core.package instances. Useful for situations where one only needs to read spec data.
* feat(registry): add ability to register package aliases (#1146)elky2023-04-051-0/+21
|
* refactor: only schedule in a.scheduler() when in fast event (#1170)William Boman2023-04-021-6/+2
| | | Explicitly schedule via `a.wait(vim.schedule)` instead.
* fix(registry): use oneshot channel for updating registry (#1168)William Boman2023-04-021-19/+2
|
* fix(scripts): setup mason and init registries (#1124)William Boman2023-03-231-4/+3
|
* fix: mkdirp if stdpath("state" | "cache") doesn't exist (#1123)William Boman2023-03-231-1/+8
|
* feat: add registry.refresh() method (#1096)William Boman2023-03-141-14/+68
|
* style: enforce import order (#1092)William Boman2023-03-121-4/+4
| | | | | * chore(workflows): update dependencies * style: enforce import order
* feat: add github registry source capabilities (#1091)William Boman2023-03-121-1/+37
|
* feat(ui): display registries in help window (#1062)William Boman2023-03-051-0/+1
|
* tests: add LuaRegistrySource spec (#1027)William Boman2023-02-231-1/+1
|
* refactor: load mason-registry.sources directly (#1021)William Boman2023-02-211-2/+0
| | | This further reduces the amount of modules loaded during setup.
* feat: configurable registries (#1016)William Boman2023-02-201-9/+25
|
* feat(registry): add has_package() method (#847)William Boman2023-01-041-0/+7
|
* fix(mason-registry): don't pass possible nil value to log (#840)William Boman2023-01-031-1/+1
|
* refactor: introduce selene, harden type defs, and use proper EmmyLua syntax ↵William Boman2022-08-151-2/+1
| | | | (#296)
* fix(mason-lspconfig): patch some server's cmd on Windows (#100)William Boman2022-07-191-0/+2
|
* docs: add doc/reference.md for more advanced use cases (#75)William Boman2022-07-151-0/+8
|
* refactor: add mason-schemas and mason-core modules (#29)William Boman2022-07-081-6/+6
| | | | | * refactor: add mason-schemas and move generated filetype map to mason-lspconfig * refactor: add mason-core module
* refactor: move packages to mason-registry (#27)William Boman2022-07-081-0/+90