fixup! refactor(ts): notify by default
This commit is contained in:
parent
3dbf833a41
commit
7870d35ef1
1 changed files with 4 additions and 4 deletions
|
|
@ -9,25 +9,25 @@ local function generate(row, col)
|
||||||
local ts_utils = require "gopher._utils.ts"
|
local ts_utils = require "gopher._utils.ts"
|
||||||
local comment, ns = nil, nil
|
local comment, ns = nil, nil
|
||||||
|
|
||||||
ns = ts_utils.get_package_node_at_pos(row, col, nil, false)
|
ns = ts_utils.get_package_node_at_pos(row, col, nil)
|
||||||
if ns ~= nil then
|
if ns ~= nil then
|
||||||
comment = "// Package " .. ns.name .. " provides " .. ns.name
|
comment = "// Package " .. ns.name .. " provides " .. ns.name
|
||||||
return comment, ns
|
return comment, ns
|
||||||
end
|
end
|
||||||
|
|
||||||
ns = ts_utils.get_struct_node_at_pos(row, col, nil, false)
|
ns = ts_utils.get_struct_node_at_pos(row, col, nil)
|
||||||
if ns ~= nil then
|
if ns ~= nil then
|
||||||
comment = "// " .. ns.name .. " " .. ns.type .. " "
|
comment = "// " .. ns.name .. " " .. ns.type .. " "
|
||||||
return comment, ns
|
return comment, ns
|
||||||
end
|
end
|
||||||
|
|
||||||
ns = ts_utils.get_func_method_node_at_pos(row, col, nil, false)
|
ns = ts_utils.get_func_method_node_at_pos(row, col, nil)
|
||||||
if ns ~= nil then
|
if ns ~= nil then
|
||||||
comment = "// " .. ns.name .. " " .. ns.type .. " "
|
comment = "// " .. ns.name .. " " .. ns.type .. " "
|
||||||
return comment, ns
|
return comment, ns
|
||||||
end
|
end
|
||||||
|
|
||||||
ns = ts_utils.get_interface_node_at_pos(row, col, nil, false)
|
ns = ts_utils.get_interface_node_at_pos(row, col, nil)
|
||||||
if ns ~= nil then
|
if ns ~= nil then
|
||||||
comment = "// " .. ns.name .. " " .. ns.type .. " "
|
comment = "// " .. ns.name .. " " .. ns.type .. " "
|
||||||
return comment, ns
|
return comment, ns
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue