mirror of
https://github.com/mfussenegger/nvim-dap
synced 2024-09-16 14:24:03 +02:00
Fix some type annotations (missing dap. prefix)
This commit is contained in:
parent
6a12fe51ed
commit
cef212e28f
2 changed files with 4 additions and 4 deletions
|
@ -33,10 +33,10 @@ function M.check()
|
|||
health.info("Adapter is a function. Can't validate it")
|
||||
else
|
||||
if adapter.type == "executable" then
|
||||
adapter = adapter --[[@as ExecutableAdapter]]
|
||||
adapter = adapter --[[@as dap.ExecutableAdapter]]
|
||||
check_executable(adapter.command)
|
||||
elseif adapter.type == "server" then
|
||||
adapter = adapter --[[@as ServerAdapter]]
|
||||
adapter = adapter --[[@as dap.ServerAdapter]]
|
||||
if not adapter.port then
|
||||
health.error("Missing required `port` property")
|
||||
end
|
||||
|
@ -44,7 +44,7 @@ function M.check()
|
|||
check_executable(adapter.executable.command)
|
||||
end
|
||||
elseif adapter.type == "pipe" then
|
||||
adapter = adapter --[[@as PipeAdapter]]
|
||||
adapter = adapter --[[@as dap.PipeAdapter]]
|
||||
if not adapter.pipe then
|
||||
health.error("Missing required `pipe` property")
|
||||
end
|
||||
|
|
|
@ -652,7 +652,7 @@ function M.sidebar(widget, winopts, wincmd)
|
|||
end
|
||||
|
||||
|
||||
---@param session Session
|
||||
---@param session dap.Session
|
||||
---@param expr string
|
||||
---@param max_level integer
|
||||
local function get_var_lines(session, expr, max_level)
|
||||
|
|
Loading…
Reference in a new issue