Skip to content

Commit

Permalink
fix(dap): has_package -> is_installed (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
bas-ie authored Dec 14, 2023
1 parent 1e6d6c9 commit b76ae2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/rustaceanvim/config/internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ local RustaceanDefaultConfig = {
--- @type DapExecutableConfig | DapServerConfig | disable
local result = false
local has_mason, mason_registry = pcall(require, 'mason-registry')
if has_mason and mason_registry.has_package('codelldb') then
if has_mason and mason_registry.is_installed('codelldb') then
local codelldb_package = mason_registry.get_package('codelldb')
local mason_codelldb_path = compat.joinpath(codelldb_package:get_install_path(), 'extension')
local codelldb_path = compat.joinpath(mason_codelldb_path, 'adapter', 'codelldb')
Expand Down

0 comments on commit b76ae2a

Please sign in to comment.