Skip to content

Commit b76ae2a

Browse files
authored
fix(dap): has_package -> is_installed (#97)
1 parent 1e6d6c9 commit b76ae2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/rustaceanvim/config/internal.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ local RustaceanDefaultConfig = {
210210
--- @type DapExecutableConfig | DapServerConfig | disable
211211
local result = false
212212
local has_mason, mason_registry = pcall(require, 'mason-registry')
213-
if has_mason and mason_registry.has_package('codelldb') then
213+
if has_mason and mason_registry.is_installed('codelldb') then
214214
local codelldb_package = mason_registry.get_package('codelldb')
215215
local mason_codelldb_path = compat.joinpath(codelldb_package:get_install_path(), 'extension')
216216
local codelldb_path = compat.joinpath(mason_codelldb_path, 'adapter', 'codelldb')

0 commit comments

Comments
 (0)