ZIm/crates
Smit Barmase 65a1d09d24
editor: Use fuzzy crate in code completions tests instead of hard coded values (#32565)
This PR makes it a lot cleaner to write code completion tests. It
doesn't contain any logical changes, just refactoring.

Before, we used to depend on hard-coded values of fuzzy score and its
positions for tests. Now we don't need them, as fuzzy crate will handle
that for us. This is possible because fuzzy match score isn't dependent
on relative candidates or the number of candidates; rather, it's just a
one-to-one mapping for each candidate and its score.

This also makes it test robust for future purposes if there are changes
in fuzzy score logic.

Before:
```rs
  SortableMatch {
            string_match: StringMatch {  // -> whole struct provided by fuzzy crate
                candidate_id: 1115,
                score: 1.0,
                positions: vec![],
                string: "Item".to_string(),
            },
            is_snippet: false,  // -> changed to snippet kind
            sort_text: Some("16"),
            sort_kind: 3, // -> changed to function, constant, variable kind
            sort_label: "Item",
        },
```

After:
```rs
  CompletionBuilder::function("Item", "16")
```

Release Notes:

- N/A
2025-06-11 23:26:19 +05:30
..
activity_indicator debugger: Add spinners while session is starting up (#31548) 2025-05-29 01:58:40 +00:00
agent agent: Add completion cancellation when editing messages (#32533) 2025-06-11 09:36:21 +00:00
agent_settings Store profile per thread (#31907) 2025-06-06 12:05:27 +00:00
anthropic More resilient eval (#32257) 2025-06-09 18:07:22 +00:00
askpass askpass: Workaround rust lang 69343 (#30774) 2025-05-16 05:04:36 -04:00
assets Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
assistant_context_editor More resilient eval (#32257) 2025-06-09 18:07:22 +00:00
assistant_slash_command chore: Make terminal_view own the TerminalSlashCommand (#31070) 2025-05-21 09:27:54 +00:00
assistant_slash_commands context_server: Make notifications type safe (#32396) 2025-06-09 15:11:01 +00:00
assistant_tool gemini: Fix edge case when transforming MCP tool schema (#32373) 2025-06-09 10:27:21 +00:00
assistant_tools eval: Add jitter to retry attempts (#32542) 2025-06-11 12:56:23 +00:00
audio agent: Add sound notification when done generating (#31472) 2025-05-26 21:20:41 -03:00
auto_update Show version info when downloading and installing updates (#31568) 2025-05-28 11:51:21 -04:00
auto_update_helper Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
auto_update_ui markdown_preview: Fix release notes title being overridden (#31703) 2025-05-30 08:29:52 +00:00
aws_http_client Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
bedrock Enable cross-region inference for Claude 4 family models on Amazon Bedrock provider (#32235) 2025-06-09 23:38:39 -07:00
breadcrumbs breadcrumbs: Stylize filename in breadcrumbs when tab-bar is off and file is dirty (#30507) 2025-05-30 08:32:54 -07:00
buffer_diff zlog: Replace usages of env_logger in tests with zlog (#31436) 2025-05-26 11:48:50 -04:00
call Use read-only access methods for read-only entity operations (#31479) 2025-05-26 23:04:31 -04:00
channel chore: Fix warnings for Rust 1.89 (#32378) 2025-06-09 13:11:57 +02:00
cli Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
client chore: Fix warnings for Rust 1.89 (#32378) 2025-06-09 13:11:57 +02:00
clock Add the ability to follow the agent as it makes edits (#29839) 2025-05-04 08:28:39 +00:00
collab debugger: Mark DebugAdapterBinary::program as optional (#32534) 2025-06-11 12:38:12 +02:00
collab_ui Add default method for CompletionProvider::resolve_completions (#32045) 2025-06-05 19:15:06 +00:00
collections Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
command_palette Validate actions in docs (#31073) 2025-06-04 19:18:12 +00:00
command_palette_hooks Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
component Fix typo (#32160) 2025-06-05 12:59:22 +00:00
context_server context_server: Make notifications type safe (#32396) 2025-06-09 15:11:01 +00:00
copilot Add GitHub token environment variable support for Copilot (#31392) 2025-06-09 12:39:44 +02:00
credentials_provider Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
dap debugger: Mark DebugAdapterBinary::program as optional (#32534) 2025-06-11 12:38:12 +02:00
dap_adapters debugger: Mark DebugAdapterBinary::program as optional (#32534) 2025-06-11 12:38:12 +02:00
db Add end of service notifications (#30982) 2025-05-20 00:20:00 +00:00
debug_adapter_extension debugger beta: Fix dap_schema for DAP extensions (#31173) 2025-05-22 07:24:46 -04:00
debugger_tools Rename debug: commands to dev: (#30675) 2025-05-14 11:15:27 +02:00
debugger_ui debugger: Fix preselection of debug adapters to not pick CodeLLDB by default (#32557) 2025-06-11 16:37:26 +00:00
deepseek Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
diagnostics Pull diagnostics fixes (#32242) 2025-06-06 16:18:05 +03:00
docs_preprocessor Validate actions in docs (#31073) 2025-06-04 19:18:12 +00:00
editor editor: Use fuzzy crate in code completions tests instead of hard coded values (#32565) 2025-06-11 23:26:19 +05:30
eval Replace async-watch with a custom watch (#32245) 2025-06-06 16:00:09 +00:00
extension extension: Update to wasm32-wasip2 target (#30953) 2025-05-26 16:06:38 +02:00
extension_api debugger: Mark DebugAdapterBinary::program as optional (#32534) 2025-06-11 12:38:12 +02:00
extension_cli Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
extension_host extension_host: Fix SSH reconnect breaks language server (#32457) 2025-06-10 19:45:57 +05:30
extensions_ui gpui: Simplify uniform list API by removing entity param (#32480) 2025-06-10 18:50:57 +00:00
feature_flags Add a picker for jj bookmark list (#30883) 2025-05-17 16:42:45 +00:00
feedback Use shortened SHA when displaying version to install (#31281) 2025-05-23 14:53:53 +00:00
file_finder Use proper paths when determining file finder icons for external files (#32274) 2025-06-06 23:04:49 +00:00
file_icons Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
fs git: Pick which remote to fetch (#26897) 2025-06-06 11:28:07 -04:00
fsevent Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
fuzzy Fix out-of-bounds panic in fuzzy matcher with Unicode/multibyte characters (#30546) 2025-05-12 14:43:14 +00:00
git chore: Fix warnings for Rust 1.89 (#32378) 2025-06-09 13:11:57 +02:00
git_hosting_providers Allow configuring custom git hosting providers in project settings (#31929) 2025-06-03 12:23:01 -04:00
git_ui gpui: Simplify uniform list API by removing entity param (#32480) 2025-06-10 18:50:57 +00:00
go_to_line go_to_line: Show position relative to current excerpt in a multi-buffer (#31947) 2025-06-03 09:41:45 +02:00
google_ai google: Add latest versions of Gemini 2.5 Pro and Flash Preview (#32183) 2025-06-05 19:30:34 +00:00
gpui windows: Show error messages when zed failed to lanuch (#32537) 2025-06-11 18:37:34 +08:00
gpui_macros Add a live Rust style editor to inspector to edit a sequence of no-argument style modifiers (#31443) 2025-05-26 17:43:57 +00:00
gpui_tokio Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
html_to_markdown Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
http_client Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
http_client_tls Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
icons debugger: Add 'open docs' button in the panel and mention onboarding in the docs (#32496) 2025-06-10 21:56:29 +00:00
image_viewer Option to auto-close deleted files with no unsaved edits (#31920) 2025-06-03 13:18:29 +02:00
indexed_docs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
inline_completion Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
inline_completion_button inline_completion_button: Fix links to account page (#31558) 2025-05-27 21:52:42 +00:00
inspector_ui Fix anchor biases for completion replacement ranges (esp slash commands) (#32262) 2025-06-06 20:54:00 +00:00
install_cli Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
jj Add a picker for jj bookmark list (#30883) 2025-05-17 16:42:45 +00:00
jj_ui Add a picker for jj bookmark list (#30883) 2025-05-17 16:42:45 +00:00
journal VSCode Settings import (#29018) 2025-04-23 20:54:09 +00:00
language Add a test demonstrating ERB language loading bug (#32278) 2025-06-11 04:03:42 +00:00
language_extension debugger/extensions: Revert changes to extension store related to language config (#30225) 2025-05-08 14:01:39 +02:00
language_model More resilient eval (#32257) 2025-06-09 18:07:22 +00:00
language_models language_models: Add image support to OpenRouter models (#32012) 2025-06-11 08:01:29 +00:00
language_selector Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
language_tools gpui: Simplify uniform list API by removing entity param (#32480) 2025-06-10 18:50:57 +00:00
languages debugger: Fix a couple of issues with vitest (#32543) 2025-06-11 10:36:23 -04:00
livekit_api Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
livekit_client chore: Fix warnings for Rust 1.89 (#32378) 2025-06-09 13:11:57 +02:00
lmstudio language_models: Add thinking support to LM Studio provider (#32337) 2025-06-09 11:55:34 +02:00
lsp Implement the rest of the worktree pulls (#32269) 2025-06-06 21:19:46 +00:00
markdown chore: Fix warnings for Rust 1.89 (#32378) 2025-06-09 13:11:57 +02:00
markdown_preview chore: Fix warnings for Rust 1.89 (#32378) 2025-06-09 13:11:57 +02:00
media Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
menu agent: Add new panel navigation dropdown (#29539) 2025-04-29 21:58:45 -03:00
migrator agent: Add Burn Mode setting migrator (#31718) 2025-05-30 08:10:12 -03:00
mistral language_models: Add support for images to Mistral models (#32154) 2025-06-09 10:00:02 +00:00
multi_buffer chore: Fix warnings for Rust 1.89 (#32378) 2025-06-09 13:11:57 +02:00
node_runtime Replace async-watch with a custom watch (#32245) 2025-06-06 16:00:09 +00:00
notifications Move workspace::toast_layer::RunAction to zed_actions::toast::RunAction (#32222) 2025-06-06 06:23:09 +00:00
ollama Remove unused load_model method from LanguageModelProvider (#32070) 2025-06-04 14:07:01 +00:00
open_ai open_ai: Fix parallel tools issue (#30467) 2025-05-26 11:46:35 +00:00
open_router language_models: Add image support to OpenRouter models (#32012) 2025-06-11 08:01:29 +00:00
outline Use read-only access methods for read-only entity operations (#31479) 2025-05-26 23:04:31 -04:00
outline_panel gpui: Simplify uniform list API by removing entity param (#32480) 2025-06-10 18:50:57 +00:00
panel Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
paths Simplify debug launcher UI (#31928) 2025-06-02 21:24:08 +00:00
picker gpui: Simplify uniform list API by removing entity param (#32480) 2025-06-10 18:50:57 +00:00
prettier lsp: Implement support for the textDocument/diagnostic command (#19230) 2025-06-05 19:42:52 +00:00
project debugger: Fix a couple of issues with vitest (#32543) 2025-06-11 10:36:23 -04:00
project_panel gpui: Simplify uniform list API by removing entity param (#32480) 2025-06-10 18:50:57 +00:00
project_symbols Use read-only access methods for read-only entity operations (#31479) 2025-05-26 23:04:31 -04:00
prompt_store Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
proto debugger: Mark DebugAdapterBinary::program as optional (#32534) 2025-06-11 12:38:12 +02:00
recent_projects chore: Fix warnings for Rust 1.89 (#32378) 2025-06-09 13:11:57 +02:00
refineable Add a live Rust style editor to inspector to edit a sequence of no-argument style modifiers (#31443) 2025-05-26 17:43:57 +00:00
release_channel Use shortened SHA when displaying version to install (#31281) 2025-05-23 14:53:53 +00:00
remote Make it possible to use cargo-zigbuild for ZED_BUILD_REMOTE_SERVER (#31467) 2025-05-27 16:56:27 +00:00
remote_server Add initial package.json scripts task autodetection (#32497) 2025-06-10 22:16:27 +00:00
repl Improve handling of large output in embedded terminals (#32416) 2025-06-09 18:11:31 -03:00
reqwest_client Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
rich_text Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
rope chore: Fix warnings for Rust 1.89 (#32378) 2025-06-09 13:11:57 +02:00
rpc zlog: Replace usages of env_logger in tests with zlog (#31436) 2025-05-26 11:48:50 -04:00
rules_library agent: Refine rules library window design (#31994) 2025-06-03 14:59:17 -03:00
schema_generator Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
search Use read-only access methods for read-only entity operations (#31479) 2025-05-26 23:04:31 -04:00
semantic_index gpui: Simplify uniform list API by removing entity param (#32480) 2025-06-10 18:50:57 +00:00
semantic_version Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
session Avoid unnecessary DB writes (#29417) 2025-04-25 17:41:49 +03:00
settings Allow configuring custom git hosting providers in project settings (#31929) 2025-06-03 12:23:01 -04:00
settings_ui Allow running certain Zed actions when headless (#32095) 2025-06-04 17:29:08 +00:00
snippet Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
snippet_provider Use read-only access methods for read-only entity operations (#31479) 2025-05-26 23:04:31 -04:00
snippets_ui snippets: Add icons and file names to snippet scope selector (#30212) 2025-05-26 13:44:09 +00:00
sqlez Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
sqlez_macros Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
story gpui: Add a standard text example (#30747) 2025-05-16 17:35:44 +02:00
storybook Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
streaming_diff Introduce a new StreamingEditFileTool (#29733) 2025-05-01 17:37:43 +02:00
sum_tree chore: Fix warnings for Rust 1.89 (#32378) 2025-06-09 13:11:57 +02:00
supermaven Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
supermaven_api Keep file permissions when extracting zip archives on Unix (#31304) 2025-05-23 20:45:32 +00:00
tab_switcher tab_switcher: Add placeholder text (#31697) 2025-05-29 16:09:07 +00:00
task Fix ruby debugger (#32407) 2025-06-09 16:11:24 -06:00
tasks_ui Add initial package.json scripts task autodetection (#32497) 2025-06-10 22:16:27 +00:00
telemetry Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
telemetry_events Add new action to run agent eval (#29158) 2025-04-21 21:30:21 -07:00
terminal chore: Fix warnings for Rust 1.89 (#32378) 2025-06-09 13:11:57 +02:00
terminal_view Improve handling of large output in embedded terminals (#32416) 2025-06-09 18:11:31 -03:00
text chore: Fix warnings for Rust 1.89 (#32378) 2025-06-09 13:11:57 +02:00
theme Refine styling of merge conflicts (#31012) 2025-06-09 19:03:19 +00:00
theme_extension Add workspace-hack (#27277) 2025-04-02 13:26:34 -07:00
theme_importer theme: Add colors for minimap thumb and border (#30785) 2025-05-26 18:23:41 +00:00
theme_selector Allow running certain Zed actions when headless (#32095) 2025-06-04 17:29:08 +00:00
time_format agent: Add date separators to Thread History (#29961) 2025-05-06 10:18:48 +00:00
title_bar title_bar: Merge Linux only code into platform_linux (#32401) 2025-06-09 19:19:24 +03:00
toolchain_selector python: Re-land usage of source file path in toolchain picker (#31893) 2025-06-02 16:29:06 +00:00
ui Improve cursor style behavior for some draggable elements (#31965) 2025-06-06 16:56:27 -04:00
ui_input component: Replace linkme with inventory (#30705) 2025-05-14 23:29:11 +02:00
ui_macros Update syn crate from 1.0.109 to 2.0.101 (#31301) 2025-05-23 19:31:25 +00:00
ui_prompt gpui: Improve window.prompt to support ESC with non-English cancel text on macOS (#29538) 2025-05-30 15:26:27 +00:00
util Add ANSI C quoting to export env parsing (#32404) 2025-06-10 20:15:35 -06:00
util_macros Fix license symlinks (#29758) 2025-05-01 19:24:14 +00:00
vim vim: Handle case sensitive search editor setting (#32276) 2025-06-09 06:12:23 -04:00
vim_mode_setting VSCode Settings import (#29018) 2025-04-23 20:54:09 +00:00
watch chore: Fix warnings for Rust 1.89 (#32378) 2025-06-09 13:11:57 +02:00
web_search agent: Expose web search tool to beta users (#29273) 2025-04-23 15:30:20 +00:00
web_search_providers Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
welcome Cursor keymap (#31702) 2025-05-29 15:20:58 -04:00
workspace Add a run menu (#32505) 2025-06-10 19:57:46 -06:00
worktree chore: Fix warnings for Rust 1.89 (#32378) 2025-06-09 13:11:57 +02:00
zed Bump Zed to v0.192 (#32552) 2025-06-11 15:41:41 +00:00
zed_actions Move workspace::toast_layer::RunAction to zed_actions::toast::RunAction (#32222) 2025-06-06 06:23:09 +00:00
zeta zlog: Replace usages of env_logger in tests with zlog (#31436) 2025-05-26 11:48:50 -04:00
zlog Initialize zlog default filters on init rather than waiting for settings load (#32209) 2025-06-06 00:49:30 -06:00
zlog_settings VSCode Settings import (#29018) 2025-04-23 20:54:09 +00:00