Skip to content

Commit

Permalink
Support running async tests
Browse files Browse the repository at this point in the history
Closes #145
  • Loading branch information
Avishayy committed Jun 24, 2024
1 parent ae0225d commit 4eccecb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/dap-python.lua
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,11 @@ function M._get_nodes(source, subject, end_row)
while parent ~= nil do
if parent:type() == "function_definition" then
local ident = parent:child(1)
assert(ident:type() == "identifier")
if parent:child(1):type() == "identifier" then
ident = parent:child(1)
elseif parent:child(2) and parent:child(2):type() == "identifier" then
ident = parent:child(2)
end
result = ident
end
parent = parent:parent()
Expand Down

0 comments on commit 4eccecb

Please sign in to comment.