Skip to content

Commit

Permalink
Fix some type annotations (missing dap. prefix)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfussenegger committed Aug 9, 2024
1 parent 6a12fe5 commit cef212e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lua/dap/health.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,18 @@ 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
if adapter.executable then
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
Expand Down
2 changes: 1 addition & 1 deletion lua/dap/ui/widgets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cef212e

Please sign in to comment.