refactor: remove Visual Studio version detection from launch menu
This commit is contained in:
@@ -10,20 +10,6 @@ if wezterm.target_triple == "x86_64-pc-windows-msvc" then
|
|||||||
label = "PowerShell",
|
label = "PowerShell",
|
||||||
args = { "pwsh.exe", "-NoLogo" },
|
args = { "pwsh.exe", "-NoLogo" },
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Find installed visual studio version(s) and add their compilation
|
|
||||||
-- environment command prompts to the menu
|
|
||||||
for _, vsvers in ipairs(wezterm.glob("Microsoft Visual Studio/20*", "C:/Program Files (x86)")) do
|
|
||||||
local year = vsvers:gsub("Microsoft Visual Studio/", "")
|
|
||||||
table.insert(launch_menu, {
|
|
||||||
label = "x64 Native Tools VS " .. year,
|
|
||||||
args = {
|
|
||||||
"cmd.exe",
|
|
||||||
"/k",
|
|
||||||
"C:/Program Files (x86)/" .. vsvers .. "/BuildTools/VC/Auxiliary/Build/vcvars64.bat",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Set up btop launcher
|
-- Set up btop launcher
|
||||||
|
|||||||
Reference in New Issue
Block a user