[fix] nimsuggest con sometimes doesnt return anything on first pass fixes #23281 (#23282)

fixes #23281
This commit is contained in:
Juan M Gómez
2024-02-05 13:33:48 +00:00
committed by GitHub
parent a1d820367f
commit 6c2fca1a8b

View File

@@ -1000,8 +1000,8 @@ proc executeNoHooksV3(cmd: IdeCmd, file: AbsoluteFile, dirtyfile: AbsoluteFile,
conf.m.trackPosAttached = false
else:
conf.m.trackPos = default(TLineInfo)
graph.recompilePartially(fileIndex)
if cmd != ideCon: #ideCon is recompiled below
graph.recompilePartially(fileIndex)
case cmd
of ideDef:
@@ -1044,6 +1044,7 @@ proc executeNoHooksV3(cmd: IdeCmd, file: AbsoluteFile, dirtyfile: AbsoluteFile,
of ideCon:
graph.markDirty fileIndex
graph.markClientsDirty fileIndex
graph.recompilePartially(fileIndex)
of ideOutline:
let n = parseFile(fileIndex, graph.cache, graph.config)
graph.iterateOutlineNodes(n, graph.fileSymbols(fileIndex).deduplicateSymInfoPair)