We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 378bea7 commit 4d9642fCopy full SHA for 4d9642f
lua/treewalker/targets.lua
@@ -28,6 +28,12 @@ function M.out(node)
28
if not parent then break end
29
node = parent
30
end
31
+ -- After escaping comment, try to find a good ancestor
32
+ -- This handles TypeScript case where we need to move out further
33
+ local temp_candidate = strategies.get_first_ancestor_with_diff_scol(node)
34
+ if temp_candidate then
35
+ node = temp_candidate
36
+ end
37
38
39
0 commit comments