aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mason-core/spawn_spec.lua
Commit message (Collapse)AuthorAgeFilesLines
* fix(spawn): always expand executable path on Windows (#2021)William Boman2025-09-301-6/+27
| | | | | | | | This fixes some issues with the logic for expanding paths on Windows. If a process is spawned with a custom `PATH` (either via the `env` or `env_raw` arg) we still expand the path manually but with a temporarily modified `vim.env.PATH`. Fixes #2009.
* fix(spawn): expand executable paths on Windows before passing to uv_spawn ↵William Boman2025-02-221-35/+71
| | | | | | (#1885) This fixes issues on Windows where uv_spawn fails to locate certain types of executables in PATH.
* refactor: turn StdioSink into a proper classWilliam Boman2025-02-191-11/+11
|
* refactor!: refactor installer internals and add new Package class methods ↵William Boman2025-02-191-181/+156
| | | | | | | | | | | | | | | | | | | (#1523) This contains the following changes: 1) `Package:install()` now accepts a second, optional, callback argument which is called when installation finishes (successfully or not). 2) Adds a `Package:is_installing()` method. This contains the following breaking changes: 1) `Package:install()` will now error when called while an installation is already ongoing. Use the new `Package:is_installing()` method to check whether an installation is already running. This also refactors large portions of the tests by removing test globals, removing async_test, and adding the `mason-test` Lua module instead. Test helpers via globals are problematic to work with due to not being detected through tools like the Lua language server without additional configuration. This has been replaced with a Lua module `mason-test`. `async_test` has also been removed in favour of explicitly making use of the `mason-core.async` API. These changes stands for a significant portion of the diff.
* style: enforce import order (#1092)William Boman2023-03-121-3/+3
| | | | | * chore(workflows): update dependencies * style: enforce import order
* Revert "fix(spawn): always expand cmd if PATH is not modified (#773)" (#783)William Boman2022-12-211-47/+15
| | | This reverts commit dd04b4105e84620685c37efb6ca935d282e11465.
* fix(spawn): always expand cmd if PATH is not modified (#773)William Boman2022-12-201-15/+47
| | | | | fix(spawn): always expand cmd on Windows Closes #720.
* refactor: add mason-schemas and mason-core modules (#29)William Boman2022-07-081-0/+216
* refactor: add mason-schemas and move generated filetype map to mason-lspconfig * refactor: add mason-core module