Skip to content

Commit c99a7c6

Browse files
committed
fixed #742
1 parent ec70a1c commit c99a7c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/symbolProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export function symbolProvider(params: DocumentSymbolParams, token?: Cancellatio
180180
if ((s = inherit[k] ?? (gvar[k] ??= winapis[k]))) {
181181
converttype(v, s, s === ahkVars[k]).definition = s;
182182
if (s === gvar[k])
183-
fn.global[k] = v;
183+
(fn.global ??= {})[k] = v;
184184
else fn.declaration[k] = v;
185185
} else {
186186
converttype(fn.declaration[k] = fn.local[k] = v, v).definition = v;

0 commit comments

Comments
 (0)