We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8963183 commit c45d862Copy full SHA for c45d862
script/core/semantic-tokens.lua
@@ -165,7 +165,11 @@ local Care = util.switch()
165
-- 5. Class declaration
166
-- only search this local
167
if loc.bindDocs then
168
- for i, doc in ipairs(loc.bindDocs) do
+ for i = #loc.bindDocs, 1, -1 do
169
+ local doc = loc.bindDocs[i]
170
+ if doc.type == 'doc.type' then
171
+ break
172
+ end
173
if doc.type == "doc.class" and doc.bindSources then
174
for _, src in ipairs(doc.bindSources) do
175
if src == loc then
0 commit comments