Skip to content

Commit

Permalink
chore(deps): bump the lsp group with 4 updates (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Mar 26, 2024
1 parent bc39d91 commit 0326ff8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions crates/typos-lsp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ typos = "0.10"
typos-cli = "1.16"
serde = { version = "1.0", features = ["derive"] }
ignore = "0.4.20"
matchit = "0.7.1"
matchit = "0.8.0"
shellexpand = "3.1.0"
regex = "1.10.2"
regex = "1.10.4"
once_cell = "1.19.0"

[dev-dependencies]
Expand Down
6 changes: 3 additions & 3 deletions crates/typos-lsp/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl<'s> BackendState<'s> {
.uri
.to_file_path()
.map_err(|_| anyhow!("Cannot convert uri {} to file path", folder.uri))?;
let route = format!("{}{}", url_path_sanitised(&folder.uri), "/*p");
let route = format!("{}{}", url_path_sanitised(&folder.uri), "/{*p}");
self.router
.insert_instance(&route, &path, self.config.as_deref())?;
}
Expand All @@ -52,7 +52,7 @@ impl<'s> BackendState<'s> {
// when there is no workspace folder
#[cfg(windows)]
for drive in crate::windows::get_drives() {
let route = format!("/{}%3A/*p", &drive);
let route = format!("/{}%3A/{{*p}}", &drive);
self.router.insert_instance(
&route,
&PathBuf::from(format!("{}:\\", &drive)),
Expand All @@ -62,7 +62,7 @@ impl<'s> BackendState<'s> {

#[cfg(not(windows))]
{
let route = "/*p";
let route = "/{*p}";
self.router
.insert_instance(route, &PathBuf::from("/"), self.config.as_deref())?;
}
Expand Down

0 comments on commit 0326ff8

Please sign in to comment.