diff options
| author | William Boman <william@redwill.se> | 2022-12-28 10:36:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-28 10:36:15 +0100 |
| commit | e28907b69dbfbae6b4cf66a906533edc5cfe9844 (patch) | |
| tree | 353f8090c91665586d0f1d227e3133c312f6d933 /lua/mason-core | |
| parent | fix(libuv): shutdown -> close (#816) (diff) | |
| download | mason-e28907b69dbfbae6b4cf66a906533edc5cfe9844.tar mason-e28907b69dbfbae6b4cf66a906533edc5cfe9844.tar.gz mason-e28907b69dbfbae6b4cf66a906533edc5cfe9844.tar.bz2 mason-e28907b69dbfbae6b4cf66a906533edc5cfe9844.tar.lz mason-e28907b69dbfbae6b4cf66a906533edc5cfe9844.tar.xz mason-e28907b69dbfbae6b4cf66a906533edc5cfe9844.tar.zst mason-e28907b69dbfbae6b4cf66a906533edc5cfe9844.zip | |
fix(powershell): terminate stdin with newline (#818)
Powershell doesn't seem to be closing the process after commands finsh
executing and stdin is closed, not entirely sure why. This seems to fix
the issue.
Diffstat (limited to 'lua/mason-core')
| -rw-r--r-- | lua/mason-core/managers/powershell/init.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lua/mason-core/managers/powershell/init.lua b/lua/mason-core/managers/powershell/init.lua index 4133df23..35261ab9 100644 --- a/lua/mason-core/managers/powershell/init.lua +++ b/lua/mason-core/managers/powershell/init.lua @@ -28,6 +28,7 @@ function M.script(script, opts, custom_spawn) async_uv.write(stdin, PWSHOPT.progress_preference) async_uv.write(stdin, PWSHOPT.security_protocol) async_uv.write(stdin, script) + async_uv.write(stdin, "\n") async_uv.shutdown(stdin) async_uv.close(stdin) end), |
