Skip to content

Commit fb9ef10

Browse files
Marc Jakobimrcjkb
authored andcommitted
fix(lsp/dap): fail silently if adding dap config on attach fails
1 parent 989e411 commit fb9ef10

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919
- Config: Don't validate configs whose types are defined in external APIs
2020
such as nvim-dap [[#294](https://github.com/mrcjkb/rustaceanvim/issues/294)].
2121
- DAP: Don't error if adding source/library information fails (warn instead).
22+
- LSP/DAP: Fail silently if adding DAP configurations
23+
on LSP client attach fails [[#295](https://github.com/mrcjkb/rustaceanvim/issues/295)].
2224

2325
## [4.13.0] - 2024-03-15
2426

lua/rustaceanvim/lsp.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ M.start = function(bufnr)
187187
old_on_attach(...)
188188
end
189189
if config.dap.autoload_configurations then
190-
require('rustaceanvim.commands.debuggables').add_dap_debuggables()
190+
pcall(require('rustaceanvim.commands.debuggables').add_dap_debuggables)
191191
end
192192
end
193193

0 commit comments

Comments
 (0)