mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-06 18:46:49 +00:00
Rename ExtensionDocsIndexer
to ExtensionIndexedDocsProvider
(#13776)
This PR renames `ExtensionDocsIndexer` to `ExtensionIndexedDocsProvider` to better align with the name of the trait it implements. Release Notes: - N/A
This commit is contained in:
parent
c1e18059f8
commit
dceb0827e8
2 changed files with 5 additions and 5 deletions
|
@ -9,14 +9,14 @@ use wasmtime_wasi::WasiView;
|
|||
|
||||
use crate::wasm_host::{WasmExtension, WasmHost};
|
||||
|
||||
pub struct ExtensionDocsIndexer {
|
||||
pub struct ExtensionIndexedDocsProvider {
|
||||
pub(crate) extension: WasmExtension,
|
||||
pub(crate) host: Arc<WasmHost>,
|
||||
pub(crate) id: ProviderId,
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
impl IndexedDocsProvider for ExtensionDocsIndexer {
|
||||
impl IndexedDocsProvider for ExtensionIndexedDocsProvider {
|
||||
fn id(&self) -> ProviderId {
|
||||
self.id.clone()
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
pub mod extension_builder;
|
||||
mod extension_docs_indexer;
|
||||
mod extension_indexed_docs_provider;
|
||||
mod extension_lsp_adapter;
|
||||
mod extension_manifest;
|
||||
mod extension_settings;
|
||||
|
@ -9,7 +9,7 @@ mod wasm_host;
|
|||
#[cfg(test)]
|
||||
mod extension_store_test;
|
||||
|
||||
use crate::extension_docs_indexer::ExtensionDocsIndexer;
|
||||
use crate::extension_indexed_docs_provider::ExtensionIndexedDocsProvider;
|
||||
use crate::extension_manifest::SchemaVersion;
|
||||
use crate::extension_slash_command::ExtensionSlashCommand;
|
||||
use crate::{extension_lsp_adapter::ExtensionLspAdapter, wasm_host::wit};
|
||||
|
@ -1202,7 +1202,7 @@ impl ExtensionStore {
|
|||
|
||||
for (provider_id, _provider) in &manifest.indexed_docs_providers {
|
||||
this.indexed_docs_registry.register_provider(Box::new(
|
||||
ExtensionDocsIndexer {
|
||||
ExtensionIndexedDocsProvider {
|
||||
extension: wasm_extension.clone(),
|
||||
host: this.wasm_host.clone(),
|
||||
id: ProviderId(provider_id.clone()),
|
||||
|
|
Loading…
Reference in a new issue