context_servers: Hide actions when no context servers are configured (#17833)

This PR filters out the context servers actions from the command palette
when no context servers are configured.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-09-14 17:00:37 -04:00 committed by GitHub
parent d5268c5197
commit d56fa25830
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 39 additions and 16 deletions

View file

@ -12,6 +12,9 @@ pub use registry::*;
actions!(context_servers, [Restart]);
/// The namespace for the context servers actions.
const CONTEXT_SERVERS_NAMESPACE: &'static str = "context_servers";
pub fn init(cx: &mut AppContext) {
log::info!("initializing context server client");
manager::init(cx);