Fix some type annotations (missing dap. prefix)

This commit is contained in:
Mathias Fussenegger 2024-08-09 11:05:03 +02:00 committed by Mathias Fußenegger
parent 6a12fe51ed
commit cef212e28f
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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)