Skip to content

Commit

Permalink
Uses vim.fs.find for netcoredbg
Browse files Browse the repository at this point in the history
  • Loading branch information
usodst committed Mar 7, 2024
1 parent 8599827 commit a43768a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dap/adapters/coreclr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ local M = {}

M.adapter = {
type = 'executable',
command = vim.fn.stdpath('data') .. "/mason/packages/netcoredbg/netcoredbg",
command = vim.fs.find({"netcoredbg","netcoredbg.exe"},{
path = vim.fn.stdpath('data') .. "/mason/packages/netcoredbg"
})[1],
args = {'--interpreter=vscode'}
}

Expand Down

0 comments on commit a43768a

Please sign in to comment.