rust-analyzer/crates/ra_ide/src
Andrew Gallant c1a31d4261
main: eagerly prime goto-definition caches
This commit makes RA more aggressive about eagerly priming the caches.
In particular, this fixes an issue where even after RA was done priming
its caches, an initial goto-definition request would have very high
latency. This fixes that issue by requesting syntax highlighting for
everything. It is presumed that this is a tad wasteful, but not overly
so.

This commit also tweaks the logic that determines when the cache is
primed. Namely, instead of just priming it when the state is loaded
initially, we attempt to prime it whenever some state changes. This
fixes an issue where if a modification notification is seen before cache
priming is done, it would stop the cache priming early.
2020-04-25 09:28:34 -04:00
..
completion Merge #4128 2020-04-24 21:11:19 +00:00
display Merge #3954 2020-04-23 21:48:45 +00:00
references Add test 2020-03-22 19:53:34 +08:00
snapshots Merge #3998 #4006 2020-04-24 20:10:54 +00:00
syntax_highlighting Merge #3998 #4006 2020-04-24 20:10:54 +00:00
typing Continue multiline non-doc comment blocks 2020-03-11 12:58:16 +01:00
assists.rs Add target file information to AssistAction 2020-04-21 23:04:44 +02:00
call_hierarchy.rs Refactor primary IDE API 2020-02-26 12:55:50 +01:00
call_info.rs Introduce ActiveParameter 2020-04-24 01:46:00 +02:00
completion.rs Adds attribute completions (#3941) 2020-04-24 17:54:52 +02:00
diagnostics.rs Correctly highlight ranges of diagnostics from macros 2020-04-17 13:56:38 +02:00
display.rs Remove some unwraps 2020-03-28 12:27:54 +01:00
expand_macro.rs Generalise syntax rewriting infrastructure to allow removal of nodes 2020-03-24 17:14:33 +01:00
extend_selection.rs Some clippy fixes 2020-04-19 15:15:49 -04:00
folding_ranges.rs rename ra_ide_api -> ra_ide 2019-11-27 21:35:06 +03:00
goto_definition.rs Fix goto definition for record patterns 2020-04-18 22:11:49 +02:00
goto_type_definition.rs Fix unnecessary braces warnings 2020-04-06 17:21:33 +03:00
hover.rs Remove dat fixme 2020-03-16 14:13:50 +02:00
impls.rs Rename ast::ImplBlock -> ast::ImplDef 2020-02-29 21:33:15 +01:00
inlay_hints.rs Omit more parameter hints in the presence of underscores 2020-04-18 10:53:48 +03:00
join_lines.rs When joining lines, unwrap trivial diverging blocks 2020-02-24 17:17:05 +01:00
lib.rs Introduce ActiveParameter 2020-04-24 01:46:00 +02:00
marks.rs Add test marks 2020-04-24 01:48:32 +02:00
matching_brace.rs rename ra_ide_api -> ra_ide 2019-11-27 21:35:06 +03:00
mock_analysis.rs Add ProcMacroClient 2020-03-26 03:29:45 +08:00
parent_module.rs Add ProcMacroClient 2020-03-26 03:29:45 +08:00
prime_caches.rs main: eagerly prime goto-definition caches 2020-04-25 09:28:34 -04:00
references.rs Simpler acessors for keywords 2020-04-09 23:42:01 +02:00
runnables.rs feat: run ignored tests 2020-04-22 23:54:09 +02:00
source_change.rs rename ra_ide_api -> ra_ide 2019-11-27 21:35:06 +03:00
ssr.rs Adds to SSR match for semantically equivalent call and method call 2020-04-02 20:18:44 +01:00
status.rs cleanup imports 2020-02-06 14:03:45 +01:00
syntax_highlighting.rs Merge #3998 #4006 2020-04-24 20:10:54 +00:00
syntax_tree.rs Rename some tokens 2020-04-10 17:07:09 +02:00
test_utils.rs rename ra_ide_api -> ra_ide 2019-11-27 21:35:06 +03:00
typing.rs Semicolon token 2020-04-10 16:10:28 +02:00