Commit Graph
39175 Commits
Author SHA1 Message Date
Kirill BulatovandAntonio Scandurra dd43426e4a Fix the duplicate hints
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:25:49 +03:00
Kirill BulatovandAntonio Scandurra aa03364d16 Better bias selection for hints that prefix the type
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:25:49 +03:00
Antonio Scandurra ad0a5a18ca Simplify InlayMap::splice interface 2023-06-29 22:25:49 +03:00
Antonio Scandurra f19b8c73b2 Fix point/offset translation and clipping in the InlayMap
This makes all randomized tests pass. We're only missing `buffer_rows`
now and we should move the map right above `MultiBuffer` and below `FoldMap`.
2023-06-29 22:25:49 +03:00
Kirill Bulatov 1ff43841df React with inlay updates on excerpt events 2023-06-29 22:25:49 +03:00
Kirill Bulatov d52924862d Reuse the copilot suggestion style for inlays 2023-06-29 22:25:49 +03:00
Kirill BulatovandAntonio Scandurra 08e709a6eb Fixed inlay hints' edits generation and moved on with the randomized
test

Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:25:49 +03:00
Antonio Scandurra 4818567278 Make the randomized tests pass
Right now we only check that the text is correct, but I think
we're getting there.
2023-06-29 22:25:49 +03:00
Kirill BulatovandAntonio Scandurra 73a8b1c751 Fix the randomized tests
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:25:49 +03:00
Kirill BulatovandAntonio Scandurra d12de34a7a Add inlay hint randomization in the text
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:25:49 +03:00
Kirill BulatovandAntonio Scandurra ffe8d639a6 Fix splice edits generation
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:25:49 +03:00
Kirill BulatovandAntonio Scandurra 30bb7c056f Generate edits for inlay hints
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:25:49 +03:00
Kirill BulatovandAntonio Scandurra 474c3e6c3f Add inlay hints randomized test, fix the errors
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:25:49 +03:00
Kirill BulatovandAntonio Scandurra 4e55c7ea59 Implement initial changes reporting for inlay hints
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:25:49 +03:00
Kirill BulatovandAntonio Scandurra 53a9b7ddd2 Report the edits per transform summary generated
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:25:49 +03:00
Kirill BulatovandAntonio Scandurra 48b754390f Add line_len snapshot method
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:25:49 +03:00
Kirill BulatovandAntonio Scandurra 0f2ed21771 Add more InlaySnapshot text summary impls
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:25:49 +03:00
Kirill BulatovandAntonio Scandurra c5a13716e5 Implement more InlaySnapshot methods
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:25:49 +03:00
Kirill Bulatov 629567a8e3 Calculate anchors for new hints 2023-06-29 22:25:49 +03:00
Kirill BulatovandAntonio Scandurra 81bfdb617f Implement InlayHint sync method and fix the bugs
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:25:48 +03:00
Kirill BulatovandAntonio Scandurra 90bf54ad21 Implement chunks of the InlayMap
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:25:48 +03:00
Kirill Bulatov 60d1e53d26 Improve on inlya locations 2023-06-29 22:25:48 +03:00
Kirill BulatovandAntonio Scandurra c8bee220a9 Initial InlayMap tests and splice fn impl
Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
2023-06-29 22:25:48 +03:00
Kirill Bulatov a9f98e6188 Simplify inlay hint version handling 2023-06-29 22:25:48 +03:00
Kirill Bulatov 987fd630b9 Correctly pass inlay hints 2023-06-29 22:25:48 +03:00
Kirill Bulatov bd14705f79 Rename the new map 2023-06-29 22:25:48 +03:00
Kirill Bulatov e2c2f11aaf Prepare to find diffs between inlay hint generations 2023-06-29 22:25:48 +03:00
Kirill Bulatov 90d04453d0 Store hints in the new map only 2023-06-29 22:25:48 +03:00
Kirill Bulatov c1b6022d5d Replace todo!s with stub calls to make Zed work 2023-06-29 22:25:48 +03:00
Kirill Bulatov b8458256c5 Draft the hint render data flow 2023-06-29 22:25:48 +03:00
Kirill Bulatov bae553e04e Add basic infrastructure for inlay hints map 2023-06-29 22:25:48 +03:00
Kirill Bulatov 9a80c8c8d0 Draft the initial protobuf changes 2023-06-29 22:25:48 +03:00
Kirill Bulatov 08b91eef95 Request hints for all buffers in editor 2023-06-29 22:25:48 +03:00
Kirill BulatovandJulia Risley 79b91fdb7b React on message-less LSP requests properly
Co-Authored-By: Julia Risley <julia@zed.dev>
2023-06-29 22:25:48 +03:00
Kirill Bulatov d1b0cf22e5 Improve obvious faults 2023-06-29 22:25:48 +03:00
Kirill Bulatov 39c104f2c2 Stub initial hint requests 2023-06-29 22:25:48 +03:00
Kirill Bulatov e3654b4b8b Initial protocol check commit 2023-06-29 22:25:48 +03:00
KCaverly 5e4c3bb185 updated vector_store db to leverage EMBEDDINGS_DIR path 2023-06-29 15:18:32 -04:00
Max Brunsfeld 3e75f6fc61 Avoid redundant FS scans when LSPs changed watched files (#2663)
Release Notes:

- Fixed a performance problem that could occur when a language server
requested to watch a set of files (preview only).
2023-06-29 12:07:24 -07:00
Max Brunsfeld 8fe863951c Tweak debug log message when ignoring fs events 2023-06-29 12:01:59 -07:00
Max Brunsfeld d0bc39d7fe Add test coverage for FS events happening inside unloaded dirs 2023-06-29 11:55:25 -07:00
Nate Butler 6d2b6c1edf Re-add missing active state (#2664)
[[PR Description]]

Release Notes:

- Fixes project panel active state that was incorrectly removed.
2023-06-29 14:45:19 -04:00
Nate Butler 189aaed13a Re-add missing active state 2023-06-29 14:40:00 -04:00
Max Brunsfeld d137351c99 Avoid redundant FS scans when LSPs changed watched files
* Don't scan directories if they were already loaded.
* Do less work when FS events occur inside unloaded directories.
2023-06-29 11:35:49 -07:00
KCaverly 28e2328326 updated semantic search modal to manage for duplicate queries 2023-06-29 13:50:49 -04:00
Nate Butler 31f3f17fc5 snake_case theme (#2661)
This PR moves the theme / `/styles` typescript app to use snake_case to
better align with the rust app and make it easier to reference things
across both apps.

It also configures ESLint in the styles app and fixes many ESLint
errors.

Going forward from this PR we will use `snake_case` throughout the
theme.

Release Notes:

- N/A (No public facing changes)
2023-06-29 12:47:15 -04:00
KCaverly 914f4e8956 added navigation on confirm to semantic search modal 2023-06-29 11:58:47 -04:00
Nate Butler 0f3993c59c Delete snake_case.ts 2023-06-29 11:56:14 -04:00
Nate Butler 8d87200639 Update package-lock.json 2023-06-29 11:48:17 -04:00
Nate Butler 250662b1e1 Organize and update dotfiles 2023-06-29 11:47:58 -04:00