Skip to content

Commit

Permalink
only build lsp mod with composition-js enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor-scheer committed Sep 16, 2024
1 parent e8031d8 commit 8d2d881
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ impl Rover {
Command::Explain(command) => command.run(),
Command::PersistedQueries(command) => command.run(self.get_client_config()?).await,
Command::License(command) => command.run(self.get_client_config()?).await,
#[cfg(feature = "composition-js")]
Command::Lsp(command) => command.run(self.get_client_config()?).await,
}
}
Expand Down Expand Up @@ -440,6 +441,7 @@ pub enum Command {
License(command::License),

/// Start the language server
#[cfg(feature = "composition-js")]
Lsp(command::Lsp),
}

Expand Down
2 changes: 2 additions & 0 deletions src/command/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ mod graph;
mod info;
pub(crate) mod install;
mod license;
#[cfg(feature = "composition-js")]
mod lsp;
pub(crate) mod output;
mod persisted_queries;
Expand All @@ -29,6 +30,7 @@ pub use graph::Graph;
pub use info::Info;
pub use install::Install;
pub use license::License;
#[cfg(feature = "composition-js")]
pub use lsp::Lsp;
pub use output::RoverOutput;
pub use persisted_queries::PersistedQueries;
Expand Down

0 comments on commit 8d2d881

Please sign in to comment.