Skip to content

Commit

Permalink
hopefully fixes exact match not shown
Browse files Browse the repository at this point in the history
  • Loading branch information
frederik-uni committed Sep 29, 2024
1 parent 7bcafe6 commit 2082b00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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
@@ -1,6 +1,6 @@
[package]
name = "cargotom"
version = "0.13.1"
version = "0.13.2"
edition = "2021"

[dependencies]
Expand Down
1 change: 1 addition & 0 deletions src/lsp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@ impl Backend {
.map(|(name, detail, version)| CompletionItem {
label: name.clone(),
detail,
filter_text: Some(format!("{name} = \"")),
insert_text: Some(match root_dep.contains(&name) {
true => format!("{name} = {} workspace = true {}", '{', '}'),
false => format!("{name} = \"{version}\""),
Expand Down

0 comments on commit 2082b00

Please sign in to comment.