fix(vim.ui.open): try wslview before explorer.exe #28424

Problem:
explorer.exe is unreliable on WSL.

Solution:
Try wslview before explorer.exe.

fix #28410
This commit is contained in:
Justin M. Keyes
2024-04-20 05:47:08 -07:00
committed by GitHub
parent 0ea38c9a53
commit fd085d9082
2 changed files with 4 additions and 2 deletions

View File

@@ -151,7 +151,7 @@ describe('vim.ui', function()
vim.fn.executable = function() return 0 end
]]
eq(
'vim.ui.open: no handler found (tried: explorer.exe, xdg-open)',
'vim.ui.open: no handler found (tried: wslview, explorer.exe, xdg-open)',
exec_lua [[local _, err = vim.ui.open('foo') ; return err]]
)
end)