diff options
| author | William Boman <william@redwill.se> | 2023-04-08 13:52:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-08 13:52:39 +0200 |
| commit | 33e0d59e52dd6da0f48f0052c63dfa9ef98a8229 (patch) | |
| tree | 80e58653073fab20252187c040e31ff4e5fb11bc /lua | |
| parent | chore: autogenerate (#1195) (diff) | |
| download | mason-33e0d59e52dd6da0f48f0052c63dfa9ef98a8229.tar mason-33e0d59e52dd6da0f48f0052c63dfa9ef98a8229.tar.gz mason-33e0d59e52dd6da0f48f0052c63dfa9ef98a8229.tar.bz2 mason-33e0d59e52dd6da0f48f0052c63dfa9ef98a8229.tar.lz mason-33e0d59e52dd6da0f48f0052c63dfa9ef98a8229.tar.xz mason-33e0d59e52dd6da0f48f0052c63dfa9ef98a8229.tar.zst mason-33e0d59e52dd6da0f48f0052c63dfa9ef98a8229.zip | |
fix(powershell): close stdin (#1197)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/mason-core/managers/powershell/init.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/mason-core/managers/powershell/init.lua b/lua/mason-core/managers/powershell/init.lua index 66045bc4..0e7f4145 100644 --- a/lua/mason-core/managers/powershell/init.lua +++ b/lua/mason-core/managers/powershell/init.lua @@ -34,6 +34,10 @@ function M.command(command, opts, custom_spawn) "-Command", PWSHOPT.error_action_preference .. PWSHOPT.progress_preference .. PWSHOPT.security_protocol .. command, env_raw = process.graft_env(opts.env or {}, { "PSMODULEPATH" }), + on_spawn = function(_, stdio) + local stdin = stdio[1] + stdin:close() + end, }, opts)) end |
