Fix for loop (with key) autocompletion

The special-case for loop syntax does not exist anymore, but the pattern syntax covers the use case. Fixes #1778.
This commit is contained in:
Laurenz 2023-07-24 12:27:24 +02:00
parent c23d036426
commit c0af6e3569

View File

@ -849,7 +849,7 @@ fn code_completions(ctx: &mut CompletionContext, hashtag: bool) {
ctx.snippet_completion(
"for loop (with key)",
"for ${key}, ${value} in ${(a: 1, b: 2)} {\n\t${}\n}",
"for (${key}, ${value}) in ${(a: 1, b: 2)} {\n\t${}\n}",
"Computes or inserts something for each key and value in a collection.",
);