Kirill Bulatov
|
2c7900e11b
|
Use excerpt visible range in query filtering
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
83b3a914bc
|
Support better inlay cache parallelization
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
890b164278
|
Forward inlay hint refresh requests to clients, test coop inlay hints
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
a68e68a0d9
|
Properly filter out new hints outside of excerpts' visible ranges
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
ba3d1e4dba
|
Deduplicate inlay hints queries with buffer versions
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
f25a09bfd8
|
Avoid excessive allocations with Arc around excerpt cached inlays
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
48982c3036
|
Filter away new hints not in excerpt range
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
316e19ce94
|
Remove stale cancelled inlay hints workaround
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
96a34ad0ee
|
Use text anchors as hint position in hints cache
co-authored-by: Max Brunsfeld <max@zed.dev>
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
781fa0cff4
|
Deduplicate LSP requests on multibuffer scroll
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
c61de29c11
|
Use proper anchors for remote LSP queries
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
cb4b92aa61
|
Simplify hint event management slightly
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
d59e91aff2
|
Insert new hints into cache better
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
d6828583d8
|
Box the cache for better performance
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
1722d61190
|
Mitigate odd offset calculations
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
7fddc223cd
|
Move away heavy inlay computations into background tasks
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
31f0f9f7b1
|
Forbid extra inlay updates
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
97e5d40579
|
Add snapshot version to use when avoiding wrong state updates
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
8d982a6c2d
|
Finish modelling
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
4c78019317
|
Start to model the background threads for InlayHintCache
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
2f1a27631e
|
React on multibuffer scrolls again
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
a31d3eca45
|
Spawn cache updates in separate tasks
|
2023-06-29 22:25:49 +03:00 |
|
Antonio Scandurra
|
9698b51524
|
Prevent insertion of empty inlays into InlayMap
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
3b9a2e3261
|
Do not track editor ranges in InlayHintCache
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
70a45fc800
|
Fix cache incremental updates
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
7ac1885449
|
Properly refresh hints on editor open
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
58343563ba
|
Fix hint querying bugs
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
debdc3603e
|
Finish rest of the inlay cache logic
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
ddcbc73bf0
|
Implement inlay hint replaces for conflict-less case
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
6368cf1a27
|
Merge excerpt-related hint data, move next_inlay_id into Editor
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
8c03e9e122
|
Move InlayId generation back to InlayCache
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
e82b4d8957
|
Properly handle hint addition queries
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
5322aa09b9
|
Properly handle settings toggle
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
8f68688a64
|
Allow readding inlays with existing ids, move inlay types
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
49c00fd571
|
Generate InlayIds in InlayMap, prepare InlayCache for refactoring
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
e217a95fcc
|
Cleanup the warnings
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
76d35b7122
|
Use proper, limited excerpt ranges and manage inlay cache properly
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
2b989a9f12
|
Fix all the tests
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
d4d88252c3
|
Fix most of the FoldMap random tests with inlays
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
f2c510000b
|
Fix all FoldMap tests (without real inlays inside)
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
29bb6c67b0
|
Fix first FoldMap methods after the map move
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
9ae611fa89
|
Fix InlayMap bugs after the map order revers
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
05dc672c2a
|
Apply questionable changes to make things compile
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
10765d69f4
|
Move inlay map to be the first one
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
e744fb8842
|
Avoid having carriage returns (\r) in inlays
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
d2fef07782
|
Remove the SuggestionMap
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
8cdf1a0faf
|
Switch over to inlay map for Copilot suggestions
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
|
2023-06-29 22:25:49 +03:00 |
|
Antonio Scandurra
|
89137e2e83
|
Fix InlayMap::buffer_rows
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
34c6d66d04
|
Implement InlayBufferRows properly
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
|
2023-06-29 22:25:49 +03:00 |
|
Kirill Bulatov
|
bec9c26fa2
|
Fix more inlay_map corner cases and hangings
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
|
2023-06-29 22:25:49 +03:00 |
|