Commit Graph
7377 Commits
Author SHA1 Message Date
Kirill Bulatov f7ac191988 Use a better name 2023-07-14 14:47:12 +03:00
Kirill Bulatov a050e82102 Allow selecting all search matches in buffer 2023-07-14 14:47:12 +03:00
Mikayla Maki 408eebaaa2 fmt 2023-07-13 22:32:29 -07:00
Mikayla Maki 7a6a3c83dc Refine svelte queries to work with zed-style highlights
Bump scheme dependency:
2023-07-13 22:30:58 -07:00
Mikayla Maki 9c22679c9b Add svelte language server
Add svelte tree sitter
Add svelte config file
Add svelte highlighting
2023-07-13 21:43:53 -07:00
Mikayla Maki 3026e4e6c0 Add line height settings for the editor 2023-07-13 16:14:33 -07:00
Mikayla Maki 100593fcdd WIP: Resizing splits (#2715)
We're finally doing the thing. 


TODO:
- [x] Choose an approach 
- Decided to add a new element just for the pane axis, containing a
slimmed down copy of the flex code.
- [x] Wire through callbacks and pointers so that data goes where it
needs to
- [x] Do the flex juggling math on resize
- [x] Update the flexes when updating the split tree
- [x] Restore the active_pane_magnification setting
- [x] Serialize an axis' flexes

Release Notes:
- Made the center pane group splits resizable. Note that resizing is
disabled if the `active_pane_magnification` setting is changed from
default.
2023-07-13 15:29:34 -07:00
Mikayla Maki b1671a3561 Fix serialization error 2023-07-13 14:48:56 -07:00
Mikayla Maki 0fa93fbecc tidy up names 2023-07-13 14:34:32 -07:00
Mikayla Maki dae77f3bca fmt 2023-07-13 14:21:30 -07:00
Mikayla Maki 39a56db2a3 Add resising serialization 2023-07-13 14:21:14 -07:00
Mikayla Maki 426e0abad7 Restore active pane magnification 2023-07-13 13:10:36 -07:00
Mikayla Maki 905a31254f Styled and refined behavior for split resizing 2023-07-13 11:28:21 -07:00
Mikayla Maki 5902088b70 Add the math for pane resizing 2023-07-12 22:35:51 -07:00
Mikayla Maki 20cb1ae3ca Added the new elements and wired through the pointers to update the pane axis ratios 2023-07-12 17:53:01 -07:00
Joseph T. LyonsandMax Brunsfeld 4516197878 Fix screen sharing panic introduced by call events
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2023-07-12 16:12:07 -04:00
Mikayla Maki fc8f8fb680 WIP 2023-07-12 12:46:56 -07:00
Kirill Bulatov 5d8950e027 Allow all completions with preresolved additional text edits (#2711)
Deals with https://github.com/zed-industries/community/issues/752
Deals with https://github.com/zed-industries/community/issues/566

Currently, when converting from LSP to Zed objects, completions with
non-empty `additional_text_edits` are filtered out.
Later, all other completions form a list and the selected one gets the
`Editor::confirm_completion` call, which always queries an LSP
completion resolve request to get the `additional_text_edits` field.

Otherwise, `additional_text_edits` field is ignored entirely for the
rest of the completion lifetime — and we always pass the selected
completion through the resolve request.

The PR changes the logic, removing the `additional_text_edits` filtering
and instead of resolving every completion, now we check for
`additional_text_edits` in the completion before resolving: resolve
happens only if the data is absent.

Generally, feels like resolve has to happen before the completion
selection: LSP servers may send us markdown for completion documentation
preview pop ups and similar extra info.
Also, the server may lack resolve capabilities entirely, always sending
the request seems dangerous.
For now, the PR does not attempt to change either.

Release Notes:

- Brings rust-analyzer's postfix completions and others completions with
preresolved additional text edits
2023-07-12 22:10:18 +03:00
Kirill BulatovandMax Brunsfeld a05c1daacd Force resolve all completions, to ensure their edits are up-to-date
co-authored-by: Max Brunsfeld <max@zed.dev>
2023-07-12 21:10:01 +03:00
Joseph T. Lyons 1060c2e225 v0.96.x dev 2023-07-12 13:30:28 -04:00
Kirill Bulatov 65b409547a Do not resolve completions if extra edits are available 2023-07-12 20:28:16 +03:00
KCaverly d18911a8f9 merged with main 2023-07-12 13:15:23 -04:00
Piotr Osiewicz d9dab22322 Piotr/z 2556 add create branch button (#2696)
Release Notes:

- N/A
2023-07-12 18:46:33 +02:00
Nate ButlerandPiotr Osiewicz 7010dec952 Update picker footer button style
Co-Authored-By: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
2023-07-12 12:40:37 -04:00
Piotr Osiewicz 45ba98fab1 Merge branch 'main' into piotr/z-2556-add-create-branch-button 2023-07-12 18:11:52 +02:00
Piotr Osiewicz 62ecc36865 Increase trailoff limit for modal branch picker.
Z-2601
2023-07-12 17:58:00 +02:00
Kirill Bulatov 1181f12b44 Draft the postfix completions support 2023-07-12 18:32:03 +03:00
Piotr Osiewicz 7ad2e0acf7 recent_projects: Perform fuzzy search on compacted paths. (#2703)
Match highlighting for recent projects picker was off, because the path
representation was compacted - for a path '/Users/hiro/Projects/zed' we
compact it to use a tilde instead of home directory. However, the
highlight positions were always calculated for a full path, leading to a
mismatch in highlights. This commit addresses this by running fuzzy
search on compacted paths instead of using long paths. This might lead
to a slight performance hit, but given that recent projects modal
shouldn't have that many items in the first place, it should be okay.

Z-2546

Release Notes:

- Fixed result highlighting in "Recent projects" modal.
2023-07-12 11:47:28 +02:00
KCaverly 0eb22a87b4 added test registration for project settings 2023-07-11 20:12:43 -04:00
KCaverly 95143f5fe8 Merge branch 'main' of github.com:zed-industries/zed into vector_store 2023-07-11 20:05:29 -04:00
KCaverly 0192c5232e updated vector store settings to remove batch embeddings size 2023-07-11 19:54:03 -04:00
Max Brunsfeld bf50af123b Define semantic search action regardless of whether the feature is enabled 2023-07-11 15:02:43 -07:00
Max Brunsfeld f29bf2baf1 Fix TSX embedding query 2023-07-11 15:02:19 -07:00
Max BrunsfeldandKyle 4a59d3a0d0 Get vector store test passing - wait for indexing
Co-authored-by: Kyle <kyle@zed.dev>
2023-07-11 14:30:11 -07:00
Max BrunsfeldandKyle c25b6914c2 Update dot product test to use larger vectors
Co-authored-by: Kyle <kyle@zed.dev>
2023-07-11 14:29:48 -07:00
KCaverlyandmaxbrunsfeld d67d7c8c72 added initial keymap for toggle semantic search
Co-authored-by: maxbrunsfeld <max@zed.dev>
2023-07-11 17:13:58 -04:00
KCaverly 6fe92b0851 cleaned up warnings and added javascript 2023-07-11 16:41:08 -04:00
KCaverly 8b4537164b updated embedding queries for tsx and typescript 2023-07-11 16:22:40 -04:00
KCaverly 5e11825ef3 expanded embeddable context to accomodate for struct context and file paths 2023-07-11 15:58:33 -04:00
Mikayla Maki c1c0a979e8 Fix a bug where the terminal would not be closed by the terminal exiting (#2706)
Release Notes:

- Fixed a bug where terminal tabs in the panel would not close on tty
process exit.
2023-07-11 12:23:26 -07:00
Mikayla Maki 9b464bdd9f fmt 2023-07-11 12:17:50 -07:00
Mikayla Maki 0e73ef5339 Fix a bug where the terminal panel's items wouldn't be hooked up properly to workspace actions 2023-07-11 12:12:37 -07:00
Kirill Bulatov ed97216a04 Refactor LSP restart logic (#2705)
Instead of storing `initialization_options` in every LSP adapter as
before, store previous LSP settings in `Project` entirely.

This way, we can later have use multiple different project
configurations per single LSP with its associated adapter.

Release Notes:

- N/A
2023-07-11 22:09:40 +03:00
Kirill BulatovandMax Brunsfeld b214a1af15 Refactor LSP restart logic
Instead of storing `initialization_options` in every LSP adapter as
before, store previous LSP settings in `Project` entirely.

This way, we can later have use multiple different project
configurations per single LSP with its associated adapter.

co-authored-by: Max Brunsfeld <max@zed.dev>
2023-07-11 21:56:55 +03:00
KCaverly f2264fb0a9 brought up to speed with main 2023-07-11 14:50:48 -04:00
KCaverly 6937a77ae9 added versioning to files table 2023-07-11 14:42:03 -04:00
Joseph T. LyonsandMax Brunsfeld b3f5408ed4 Add call events
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2023-07-11 13:58:55 -04:00
Kirill Bulatov 6c4b0b2b2f Revert "Fix language servers improper restarts"
This reverts commit 78ecc82fed.
2023-07-11 20:46:45 +03:00
KCaverly d86877851a added opt-in default settings for vector store 2023-07-11 12:03:56 -04:00
Kirill Bulatov 752a0fa143 Add a test 2023-07-11 17:10:34 +03:00