Skip to content

Commit

Permalink
fix: vue lsp not work
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Mar 27, 2024
1 parent 8583c3b commit 032e376
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions crates/languages/src/vue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ impl super::LspAdapter for VueLspAdapter {
_: &dyn LspAdapterDelegate,
) -> Result<Box<dyn 'static + Send + Any>> {
Ok(Box::new(VueLspVersion {
vue_version: self
.node
.npm_package_latest_version("@vue/language-server")
.await?,
// TODO: Temporarily fixed to 1.8 as @vue/language-server 2.0 is not yet supported
// vue_version: self
// .node
// .npm_package_latest_version("@vue/language-server")
// .await?,
vue_version: "1.8".to_string(),
ts_version: self.node.npm_package_latest_version("typescript").await?,
}) as Box<_>)
}
Expand Down

0 comments on commit 032e376

Please sign in to comment.