Skip to content

Commit

Permalink
Update crates/project/src/lsp_store.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Kirill Bulatov <[email protected]>
  • Loading branch information
JunkuiZhang and SomeoneToIgnore authored Jan 19, 2025
1 parent 73f7663 commit 0ab3f24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/project/src/lsp_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8331,7 +8331,7 @@ fn glob_literal_prefix(glob: &Path) -> PathBuf {
glob.components()
.take_while(|component| match component {
path::Component::Normal(part) => {
!part.to_str().unwrap_or("").contains(['*', '?', '{', '}'])
!part.to_string_lossy().contains(['*', '?', '{', '}'])
}
_ => true,
})
Expand Down

0 comments on commit 0ab3f24

Please sign in to comment.