From e28907b69dbfbae6b4cf66a906533edc5cfe9844 Mon Sep 17 00:00:00 2001 From: William Boman Date: Wed, 28 Dec 2022 10:36:15 +0100 Subject: 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. --- lua/mason-core/managers/powershell/init.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'lua') 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), -- cgit v1.2.3-70-g09d2