Skip to content

Commit

Permalink
fix: check if bash-debug-adapter is available then get its data (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-babu authored Apr 9, 2023
1 parent 68fa265 commit b3cf65e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lua/mason-nvim-dap/mappings/configurations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,15 @@ M.delve = {
},
}

local BASHDB_DIR = require('mason-registry').get_package('bash-debug-adapter'):get_install_path()
.. '/extension/bashdb_dir'
local BASHDB_DIR = ''
if
require('mason-registry').has_package('bash-debug-adapter')
and require('mason-registry').get_package('bash-debug-adapter'):is_installed()
then
BASHDB_DIR = require('mason-registry').get_package('bash-debug-adapter'):get_install_path()
.. '/extension/bashdb_dir'
end

M.bash = {
{
type = 'bash',
Expand Down

0 comments on commit b3cf65e

Please sign in to comment.