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:
parent
d5268c5197
commit
d56fa25830
4 changed files with 39 additions and 16 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue