Skip to content

Commit be1f519

Browse files
committed
Fix issues with completing field with using.
1 parent 7acc163 commit be1f519

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/server/analysis.odin

+3
Original file line numberDiff line numberDiff line change
@@ -1497,6 +1497,9 @@ expand_struct_usings :: proc(ast_context: ^AstContext, symbol: Symbol, value: Sy
14971497
}
14981498
}
14991499
}
1500+
1501+
//We have to resolve the expressions two times, so clear it to prevent it from being picked up as recursion.
1502+
delete_key(&ast_context.recursion_map, value.types[k])
15001503
}
15011504

15021505
if .ObjC in symbol.flags {

src/server/check.odin

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,14 @@ check :: proc(paths: []string, uri: common.Uri, writer: ^Writer, config: ^common
174174
diagnostics = {},
175175
}
176176

177-
notifaction := Notification {
177+
notification := Notification {
178178
jsonrpc = "2.0",
179179
method = "textDocument/publishDiagnostics",
180180
params = params,
181181
}
182182

183183
if writer != nil {
184-
send_notification(notifaction, writer)
184+
send_notification(notification, writer)
185185
}
186186

187187
delete(uri)

0 commit comments

Comments
 (0)