feat(comment): add comment on a variable

This commit is contained in:
Oleksandr Smirnov 2025-09-04 15:52:48 +03:00
parent 9bffa2c212
commit 094afb2c21
No known key found for this signature in database
7 changed files with 45 additions and 0 deletions

View file

@ -50,6 +50,14 @@ comment["should add a comment on interface with many method"] = function()
do_the_test("interface_many_method", { 5, 2 })
end
comment["should add a comment on a var"] = function()
do_the_test("var", { 4, 2 })
end
comment["should add a comment on a short declared var"] = function()
do_the_test("svar", { 4, 8 })
end
comment["otherwise should add // above cursor"] = function()
do_the_test("empty", { 1, 1 })
end