Commit d3653b0
RSRP-500888 Long Delay in Resolving Candidate Symbols
Fixes RSRP-500888
Using of annotation provider on a hot path from code completion
caused lots of unnecessary and expensive computation
(especially `TypeElementUtil.GetAllSuperTypes`).
This commit removes the `EmbeddedAnnotationProvider` altogether,
and replaces its usage with direct call to `HasAttributeInstance`
which is actually super fast on type elements.
This commit also changes the API itself:
from `DeclaredElementExtensions.IsInternalsVisibleToApplies(this IDeclaredElement, IPsiModule)`
to `AccessUtil.IsInternalSymbolAccessible(ITypeMember, IPsiModule)`
GitOrigin-RevId: e62a6e0fba186f7705e9cb7ecb15a88b3088935f1 parent 31d42f9 commit d3653b0
File tree
2 files changed
+3
-2
lines changed- ReSharper.FSharp/src/FSharp/FSharp.Psi/src
- Impl
2 files changed
+3
-2
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
163 | | - | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| |||
0 commit comments