Rank exact extension ID matches higher in search results (#14588)
Release Notes: - Improved relevance of extension search results Co-authored-by: Marshall <marshall@zed.dev>
This commit is contained in:
parent
cf8bd4a90a
commit
cb6fc11abc
3 changed files with 42 additions and 4 deletions
|
@ -2,7 +2,7 @@ use chrono::{DateTime, Utc};
|
|||
use serde::{Deserialize, Serialize};
|
||||
use std::sync::Arc;
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, PartialEq)]
|
||||
#[derive(Clone, Serialize, Deserialize, Debug, PartialEq)]
|
||||
pub struct ExtensionApiManifest {
|
||||
pub name: String,
|
||||
pub version: Arc<str>,
|
||||
|
@ -13,7 +13,7 @@ pub struct ExtensionApiManifest {
|
|||
pub wasm_api_version: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, PartialEq)]
|
||||
#[derive(Clone, Serialize, Deserialize, Debug, PartialEq)]
|
||||
pub struct ExtensionMetadata {
|
||||
pub id: Arc<str>,
|
||||
#[serde(flatten)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue