Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client): show stacktrace information when adapter fails (#397)
Problem: Warning messages via `vim.notify` do not retain stack trace, which makes errors or bugs happened on the adapters' side difficult to troubleshoot. E.g.: ``` neotest-python: vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback ``` Solution: Use `xpcall`, instead of `pcall` to access the stacktrace information, and use it when showing warning (error) messages. E.g.:
- Loading branch information