
This PR overhauls extension registration in order to make it more modular. The `extension` crate now contains an `ExtensionHostProxy` that can be used to register various proxies that the extension host can use to interact with the rest of the system. There are now a number of different proxy traits representing the various pieces of functionality that can be provided by an extension. The respective crates that provide this functionality can implement their corresponding proxy trait in order to register a proxy that the extension host will use to register the bits of functionality provided by the extension. Release Notes: - N/A
16 lines
397 B
Rust
16 lines
397 B
Rust
mod extension_indexed_docs_provider;
|
|
mod providers;
|
|
mod registry;
|
|
mod store;
|
|
|
|
use gpui::AppContext;
|
|
|
|
pub use crate::extension_indexed_docs_provider::ExtensionIndexedDocsProvider;
|
|
pub use crate::providers::rustdoc::*;
|
|
pub use crate::registry::*;
|
|
pub use crate::store::*;
|
|
|
|
pub fn init(cx: &mut AppContext) {
|
|
IndexedDocsRegistry::init_global(cx);
|
|
extension_indexed_docs_provider::init(cx);
|
|
}
|