Skip to content

Commit

Permalink
ROVER-245 Upgrade to language-server 0.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanrainer committed Dec 20, 2024
1 parent 89592d1 commit 8207470
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 11 deletions.
27 changes: 18 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ apollo-encoder = "0.8"
# https://github.com/apollographql/federation-rs
apollo-federation-types = "0.14.1"

apollo-language-server = { version = "0.3.0", default-features = false, features = ["tokio"] }
apollo-language-server = { version = "0.3.3", default-features = false, features = ["tokio"] }


# crates.io dependencies
Expand Down
10 changes: 9 additions & 1 deletion src/command/lsp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::io::stdin;

use anyhow::Error;
use apollo_federation_types::config::FederationVersion::LatestFedTwo;
use apollo_language_server::{ApolloLanguageServer, Config};
use apollo_language_server::{ApolloLanguageServer, Config, MaxSpecVersions};
use camino::Utf8PathBuf;
use clap::Parser;
use futures::StreamExt;
Expand Down Expand Up @@ -95,6 +95,10 @@ async fn run_lsp(client_config: StudioClientConfig, lsp_opts: LspOpts) -> RoverR
enable_auto_composition: false,
force_federation: false,
disable_telemetry: false,
max_spec_versions: MaxSpecVersions {
connect: None,
federation: None,
},
},
HashMap::new(),
);
Expand All @@ -118,6 +122,10 @@ async fn run_lsp(client_config: StudioClientConfig, lsp_opts: LspOpts) -> RoverR
enable_auto_composition: false,
force_federation: false,
disable_telemetry: false,
max_spec_versions: MaxSpecVersions {
connect: None,
federation: None,
},
},
HashMap::from_iter(
lazily_resolved_supergraph_config
Expand Down

0 comments on commit 8207470

Please sign in to comment.