dev: recover module completion (#151)

* dev: recover module completion

* dev: update snapshot
This commit is contained in:
Myriad-Dreamin 2024-04-04 09:38:47 +08:00 committed by GitHub
parent bd610b2323
commit d256ff0556
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 4 deletions

View file

@ -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(

View file

@ -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");
}
}