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 Brunsfeld and Kyle
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 Brunsfeld and Kyle
c25b6914c2
Update dot product test to use larger vectors
...
Co-authored-by: Kyle <kyle@zed.dev >
2023-07-11 14:29:48 -07:00
KCaverly and maxbrunsfeld
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 Bulatov and Max 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. Lyons and Max 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
KCaverly
36c689777b
updated vector_store to handle for removed files
2023-07-11 10:03:53 -04:00
Kirill Bulatov
78ecc82fed
Fix language servers improper restarts
...
Language servers mixed `initialization_options` from hardcodes and user
settings, fix that to ensure we restart servers on their settings
changes only.
2023-07-11 16:36:20 +03:00
Piotr Osiewicz
dbe919558f
fixup! recent_projects: Perform fuzzy search on compacted paths.
2023-07-11 15:29:15 +02:00
Piotr Osiewicz
32bb87561a
recent_projects: Perform fuzzy search on compacted paths.
...
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
2023-07-11 15:23:17 +02:00
Piotr Osiewicz
1d424e1793
branches: Add a modal branch list. ( #2697 )
...
Extract branch list into a separate vcs_menu crate akin to
recent_projects. Add current bind for a modal branch to branch popover's
tooltip.
Z-2555
Release Notes:
- N/A
2023-07-11 14:40:00 +02:00
Piotr Osiewicz
351a2219d9
Add rudimentary PHP syntax highlighting
2023-07-11 12:31:20 +02:00
Piotr Osiewicz
362d9e87cf
Piotr/z 2590 search result marks jump around in scrollbar as cursor ( #2700 )
...
This closes ticket Z-2590 reported by @JosephTLyons . Thanks Joseph =)
Release Notes:
- N/A
2023-07-11 09:40:00 +02:00
Piotr Osiewicz
b1414eb285
Rename background_highlights_in_range_for_key to background_highlights_in_range_for
2023-07-11 09:31:08 +02:00
Piotr Osiewicz
27e4c4f9a7
Highlight only search results
2023-07-11 09:28:34 +02:00
KCaverly
5f879286e1
updated tests to accomodate for new dot location
2023-07-10 18:19:29 -04:00
KCaverly and maxbrunsfeld
e4e8f6cb0e
Reduced redundant database connections on each worktree change.
...
Co-authored-by: maxbrunsfeld <max@zed.dev >
2023-07-10 17:50:19 -04:00
KCaverly and maxbrunsfeld
0001cf99fe
Updated batching to accomodate for full flushes, and cleaned up reindexing.
...
Co-authored-by: maxbrunsfeld <max@zed.dev >
2023-07-10 16:33:14 -04:00
Piotr Osiewicz
659dda1703
editor: Keep scrollbar up if there are selections
...
Z-2556
2023-07-10 17:44:27 +02:00
Piotr Osiewicz
37eb264926
branches: Add a modal branch list.
...
Extract branch list into a separate vcs_menu crate akin to recent_projects.
Add current bind for a modal branch to branch popover's tooltip.
Z-2555
2023-07-10 17:18:12 +02:00
Nate Butler
7fadcea4c7
Update assistant styles ( #2665 )
...
Updates the assistant with some style quality of life changes.
## Changes
Restyled the conversation list
<img width="646" alt="CleanShot 2023-07-10 at 10 25 23@2x"
src="https://github.com/zed-industries/zed/assets/1714999/5c9a4f94-11c1-4d28-8aac-4d38141829a9 ">
Updated the assistant header to be a bit more compact, and use a new tab
bar icon style. The existing tab bar icons will be updated in a later
PR.
<img width="646" alt="CleanShot 2023-07-10 at 10 26 30@2x"
src="https://github.com/zed-industries/zed/assets/1714999/3ef9a053-59fa-4d34-9b76-3bb2701acb33 ">
Updated the remaining token indicator to have 3 steps:
<img width="662" alt="CleanShot 2023-07-10 at 10 29 51@2x"
src="https://github.com/zed-industries/zed/assets/1714999/13d31545-5b00-427c-b7da-b4dfeac037d6 ">
Updated role labels, added a hover state to make it more clear these are
interactive
<img width="984" alt="CleanShot 2023-07-10 at 10 32 28@2x"
src="https://github.com/zed-industries/zed/assets/1714999/24748495-dde4-4ee9-98f1-6a082f0c1d4d ">
Release Notes:
- Improved the UI of some elements in the Assistant panel.
2023-07-10 10:54:20 -04:00
Piotr Osiewicz
d9850cefab
Add tooltip to recent projects button ( #2694 )
...
Z-2545
Release Notes:
- N/A
2023-07-10 16:53:50 +02:00
Piotr Osiewicz
2db48dc666
Add styles for branch create button
2023-07-10 16:51:18 +02:00
Nate Butler
83cf0f7092
Merge branch 'main' into update-assistant-styles
2023-07-10 10:22:18 -04:00
KCaverly
4a047a5625
pulled treesitter parsing to own file for ease of testing and management
2023-07-10 10:06:07 -04:00
Piotr Osiewicz
76f2040473
Display key bind of a modal project picker
2023-07-10 14:29:30 +02:00
Piotr Osiewicz
bb0b96106a
project_search: display result count on cmd-enter
...
It also focuses the first result (just like a normal enter).
2023-07-10 14:21:55 +02:00
Piotr Osiewicz
c386f548f1
collab_ui: Add tooltip to branches popover ( #2695 )
...
Z-2554
Release Notes:
- N/A
2023-07-10 14:20:12 +02:00
Conrad Irwin
385cc12725
Rebuild vim search experience on refactored code
2023-07-07 15:57:54 -06:00
Conrad Irwin and Antonio
04e5a0f3a5
Make search less magic
...
Co-Authored-By: Antonio <antonio@zed.dev >
2023-07-07 15:57:54 -06:00
Conrad Irwin
2cdf99a37b
Better waiting in tests
2023-07-07 15:57:54 -06:00
Conrad Irwin
1b1c0d472f
vim: ? to search backwards, and /<enter> to repeat search
2023-07-07 15:57:52 -06:00
Conrad Irwin
b4a01fb7dd
vim: add */#/g*/g# for jumping to next word
...
As in vim, this toggles the normal search experience.
2023-07-07 15:57:35 -06:00
Conrad Irwin
23ccb140d5
vim: Enter/n/N to navigate search results
2023-07-07 15:57:14 -06:00
Conrad Irwin
6e6b7b87ca
vim: Don't enter visual mode in search/go to definition
...
Fixes : zed-industries/community#1514
Contributes: zed-industries/community#1284
2023-07-07 15:56:37 -06:00
Conrad Irwin
21402356fa
search: Allow running a search with different options
...
Refactor search options to use bitflags so that we can represent
the entire set of settings in one place.
2023-07-07 15:56:37 -06:00
Conrad Irwin
5978a6b221
vim: indent in visual mode uses only one <
...
Fixes : zed-industries/community#1562
2023-07-07 15:56:35 -06:00