Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some type annotations (missing dap. prefix) #1312

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading