Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/mason-core/managers/powershell/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local M = {}
local PWSHOPT = {
progress_preference = [[ $ProgressPreference = 'SilentlyContinue'; ]], -- https://stackoverflow.com/a/63301751
security_protocol = [[ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; ]],
error_action_preference = [[ $ErrorActionPreference = "Stop"; ]],
error_action_preference = [[ $ErrorActionPreference = 'Stop'; ]],
}

local powershell = _.lazy(function()
Expand Down
6 changes: 3 additions & 3 deletions lua/mason/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,13 @@ local function check_core_utils()

if platform.is.win then
check {
cmd = "pwsh",
cmd = (vim.fn.executable "pwsh" == 1 and "pwsh" or "powershell"),
args = {
"-NoProfile",
"-Command",
[[$PSVersionTable.PSVersion, $PSVersionTable.OS, $PSVersionTable.Platform -join " "]],
[[$PSVersionTable.PSVersion, $PSVersionTable.OS, $PSVersionTable.Platform -join ' ']],
},
name = "pwsh",
name = (vim.fn.executable "pwsh" == 1 and "pwsh" or "powershell") -- mason switched back to a powershell default
}
check { cmd = "7z", args = { "--help" }, name = "7z", relaxed = true }
end
Expand Down