diff --git a/crates/tinymist-query/src/upstream/complete.rs b/crates/tinymist-query/src/upstream/complete.rs index 15dbd8d1..6888da9a 100644 --- a/crates/tinymist-query/src/upstream/complete.rs +++ b/crates/tinymist-query/src/upstream/complete.rs @@ -879,9 +879,15 @@ fn code_completions(ctx: &mut CompletionContext, hash: bool) { ); ctx.snippet_completion( - "import expression", + "import module", + "import \"${}\"", + "Imports module from another file.", + ); + + ctx.snippet_completion( + "import module by expression", "import ${}", - "Imports items from another file.", + "Imports items by expression.", ); ctx.snippet_completion( diff --git a/tests/e2e/main.rs b/tests/e2e/main.rs index 0d77904b..c8a6c7e5 100644 --- a/tests/e2e/main.rs +++ b/tests/e2e/main.rs @@ -375,7 +375,7 @@ fn e2e() { }); let hash = replay_log(&tinymist_binary, &root.join("neovim")); - insta::assert_snapshot!(hash, @"siphash128_13:3a5dda1ab162b4cb843916a23f05ac0"); + insta::assert_snapshot!(hash, @"siphash128_13:1985b18cd39f61bbd39407e961f5aa01"); } { @@ -386,7 +386,7 @@ fn e2e() { }); let hash = replay_log(&tinymist_binary, &root.join("vscode")); - insta::assert_snapshot!(hash, @"siphash128_13:75e8e25d2b63fc959c024b5a509466d7"); + insta::assert_snapshot!(hash, @"siphash128_13:7ad88801e18dadfb8001d0779c6bbc73"); } }