Commit Graph
25009 Commits
Author SHA1 Message Date
Kirill Bulatov 54a4c0d0e3 Better tests, invalidate multibuffer excerpts better 2023-06-29 22:39:18 +03:00
Kirill Bulatov 95cc88678e Simplify hint task queueing 2023-06-29 22:39:18 +03:00
Kirill Bulatov 7ae67fc0b1 More inlay hint cache tests 2023-06-29 22:39:18 +03:00
Kirill BulatovandAntonio Scandurra 379325c8c4 Use fold points to go to display map's prev/next line boundary
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:39:18 +03:00
Kirill BulatovandAntonio Scandurra 9bdbf83f2e Fix wrap map test
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:39:18 +03:00
Kirill BulatovandAntonio Scandurra 4b5e5c8206 Fix fold map tests
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:39:18 +03:00
Kirill Bulatov a92bc13f72 Add more hint tests 2023-06-29 22:39:18 +03:00
Kirill Bulatov aefc4e1748 Move highlights from fold to inlay randomized tests 2023-06-29 22:39:18 +03:00
Kirill Bulatov ff5645c43b Move hint settings on the language level 2023-06-29 22:39:18 +03:00
Kirill Bulatov 62c136a59d Theme hints and suggestions differently 2023-06-29 22:39:18 +03:00
Kirill BulatovandAntonio Scandurra 16ffe2d503 Improve inlay hint highlights
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:39:18 +03:00
Kirill Bulatov b85bb724fa Test inlay hint cache 2023-06-29 22:39:18 +03:00
Nate Butler b39ef4ba1b Update Hint Style
zzz
2023-06-29 22:39:17 +03:00
Kirill Bulatov 31eb20a5a6 Only skip /refresh inlay queries when vislble range is not updated 2023-06-29 22:25:50 +03:00
Kirill Bulatov 26d34594b2 Revert useless changes, simplify 2023-06-29 22:25:50 +03:00
Antonio Scandurra 1a0d9873b2 Account for inlay biases when clipping a point 2023-06-29 22:25:50 +03:00
Antonio Scandurra bf853d0f25 Add Cursor::next_item 2023-06-29 22:25:50 +03:00
Kirill Bulatov d2577744d8 Properly filter out task hints 2023-06-29 22:25:50 +03:00
Kirill Bulatov 536ed453a3 Remove mutex usage from *Map contents 2023-06-29 22:25:50 +03:00
Kirill Bulatov c4dc09f02c Query hints when editors gets open and visible 2023-06-29 22:25:50 +03:00
Kirill Bulatov 05415a2cf9 Do not eagerly cancel running tasks 2023-06-29 22:25:49 +03:00
Kirill Bulatov ab04c82a64 Split excerpts into mutliple ranges for inlay hint queries 2023-06-29 22:25:49 +03:00
Kirill Bulatov 146a00a247 Use excerpt visible range in query filtering 2023-06-29 22:25:49 +03:00
Kirill Bulatov b4cf47d0dd Support better inlay cache parallelization 2023-06-29 22:25:49 +03:00
Kirill Bulatov 25129daf7a Forward inlay hint refresh requests to clients, test coop inlay hints 2023-06-29 22:25:49 +03:00
Kirill Bulatov ec8e1aeefe Properly filter out new hints outside of excerpts' visible ranges 2023-06-29 22:25:49 +03:00
Kirill Bulatov fdc6e51357 Deduplicate inlay hints queries with buffer versions 2023-06-29 22:25:49 +03:00
Kirill Bulatov 350798d1b1 Avoid excessive allocations with Arc around excerpt cached inlays 2023-06-29 22:25:49 +03:00
Kirill Bulatov ccfd00e070 Filter away new hints not in excerpt range 2023-06-29 22:25:49 +03:00
Kirill Bulatov fa1196dabf Remove stale cancelled inlay hints workaround 2023-06-29 22:25:49 +03:00
Kirill BulatovandMax Brunsfeld 157922935e 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 53aeae3a30 Deduplicate LSP requests on multibuffer scroll 2023-06-29 22:25:49 +03:00
Kirill Bulatov 901ff983fd Use proper anchors for remote LSP queries 2023-06-29 22:25:49 +03:00
Kirill Bulatov e1555caaae Simplify hint event management slightly 2023-06-29 22:25:49 +03:00
Kirill Bulatov 9f8a6a2e35 Insert new hints into cache better 2023-06-29 22:25:49 +03:00
Kirill Bulatov 87b0fb2bc6 Box the cache for better performance 2023-06-29 22:25:49 +03:00
Kirill Bulatov e153097ad3 Mitigate odd offset calculations 2023-06-29 22:25:49 +03:00
Kirill Bulatov a555d28a65 Move away heavy inlay computations into background tasks 2023-06-29 22:25:49 +03:00
Kirill Bulatov 684a6a5fa4 Forbid extra inlay updates 2023-06-29 22:25:49 +03:00
Kirill Bulatov 840e53417d Add snapshot version to use when avoiding wrong state updates 2023-06-29 22:25:49 +03:00
Kirill Bulatov db21f8ddc3 Finish modelling 2023-06-29 22:25:49 +03:00
Kirill Bulatov 7dbfa4ca3d Start to model the background threads for InlayHintCache 2023-06-29 22:25:49 +03:00
Kirill Bulatov 0a2f26dcd7 React on multibuffer scrolls again 2023-06-29 22:25:49 +03:00
Kirill Bulatov 804882a6b2 Spawn cache updates in separate tasks 2023-06-29 22:25:49 +03:00
Antonio Scandurra e0b5c9abbe Prevent insertion of empty inlays into InlayMap 2023-06-29 22:25:49 +03:00
Kirill Bulatov c3d31a916e Do not track editor ranges in InlayHintCache 2023-06-29 22:25:49 +03:00
Kirill Bulatov 5faf026423 Fix cache incremental updates 2023-06-29 22:25:49 +03:00
Kirill Bulatov 952872eeca Properly refresh hints on editor open 2023-06-29 22:25:49 +03:00
Kirill Bulatov 5c99f55046 Fix hint querying bugs 2023-06-29 22:25:49 +03:00
Kirill Bulatov c2c83223d5 Finish rest of the inlay cache logic 2023-06-29 22:25:49 +03:00