From b19810ea6f1ee4d56cde9605bb9f50755d705eb7 Mon Sep 17 00:00:00 2001 From: Yifan Song <41675306+Eric-Song-Nop@users.noreply.github.com> Date: Thu, 12 Dec 2024 08:01:55 +0100 Subject: [PATCH] feat: add `in` postfix snippet (#963) --- crates/tinymist-query/src/completion/snippet.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crates/tinymist-query/src/completion/snippet.rs b/crates/tinymist-query/src/completion/snippet.rs index acedac144..db4277920 100644 --- a/crates/tinymist-query/src/completion/snippet.rs +++ b/crates/tinymist-query/src/completion/snippet.rs @@ -635,5 +635,14 @@ pub static DEFAULT_POSTFIX_SNIPPET: LazyLock> = LazyLock::ne description: "wrap as let expression".into(), parsed_snippet: OnceLock::new(), }, + PostfixSnippet { + scope: PostfixSnippetScope::Value, + mode: eco_vec![InterpretMode::Code, InterpretMode::Markup], + label: "in".into(), + label_detail: Some(".in".into()), + snippet: "${_} in ${node}".into(), + description: "wrap with in expression".into(), + parsed_snippet: OnceLock::new(), + }, ] });