diff options
author | Juan M Gómez <info@jmgomez.me> | 2024-02-05 13:33:48 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-05 14:33:48 +0100 |
commit | 6c2fca1a8b054601d7af1b93ba5e3c9ed18637ee (patch) | |
tree | 75ce627b352a832e545cc28779593c0ac9203801 /nimsuggest/nimsuggest.nim | |
parent | a1d820367f677d06c2c9f93d1c2f88105e7d7b36 (diff) | |
download | Nim-6c2fca1a8b054601d7af1b93ba5e3c9ed18637ee.tar.gz |
[fix] nimsuggest `con` sometimes doesnt return anything on first pass fixes #23281 (#23282)
fixes #23281
Diffstat (limited to 'nimsuggest/nimsuggest.nim')
-rw-r--r-- | nimsuggest/nimsuggest.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nimsuggest/nimsuggest.nim b/nimsuggest/nimsuggest.nim index df59bc6fa..64d2dedc8 100644 --- a/nimsuggest/nimsuggest.nim +++ b/nimsuggest/nimsuggest.nim @@ -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) |