File tree 2 files changed +16
-6
lines changed
2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 7
7
* ` FIX ` [ #2083 ]
8
8
* ` FIX ` [ #2088 ]
9
9
* ` FIX ` [ #2110 ]
10
+ * ` FIX ` [ #2129 ]
10
11
11
12
[ #2038 ] : https://github.com./LuaLS/lua-language-server/issues/2038
12
13
[ #2042 ] : https://github.com./LuaLS/lua-language-server/issues/2042
13
14
[ #2062 ] : https://github.com./LuaLS/lua-language-server/issues/2062
14
15
[ #2083 ] : https://github.com./LuaLS/lua-language-server/issues/2083
15
16
[ #2088 ] : https://github.com./LuaLS/lua-language-server/issues/2088
16
17
[ #2110 ] : https://github.com./LuaLS/lua-language-server/issues/2110
18
+ [ #2129 ] : https://github.com./LuaLS/lua-language-server/issues/2129
17
19
18
20
## 3.6.21
19
21
` 2023-5-24 `
Original file line number Diff line number Diff line change @@ -138,12 +138,20 @@ local Care = util.switch()
138
138
local uri = guide .getUri (loc )
139
139
-- 1. 值为函数的局部变量 | Local variable whose value is a function
140
140
if vm .getInfer (source ):hasFunction (uri ) then
141
- results [# results + 1 ] = {
142
- start = source .start ,
143
- finish = source .finish ,
144
- type = define .TokenTypes [' function' ],
145
- modifieres = define .TokenModifiers .declaration ,
146
- }
141
+ if source .type == ' local' then
142
+ results [# results + 1 ] = {
143
+ start = source .start ,
144
+ finish = source .finish ,
145
+ type = define .TokenTypes [' function' ],
146
+ modifieres = define .TokenModifiers .declaration ,
147
+ }
148
+ else
149
+ results [# results + 1 ] = {
150
+ start = source .start ,
151
+ finish = source .finish ,
152
+ type = define .TokenTypes [' function' ],
153
+ }
154
+ end
147
155
return
148
156
end
149
157
-- 3. 特殊变量 | Special variableif source[1] == '_ENV' then
You can’t perform that action at this time.
0 commit comments