diff --git a/snippets/markdown.json b/snippets/markdown.json index 8a6d900..d047add 100644 --- a/snippets/markdown.json +++ b/snippets/markdown.json @@ -6,10 +6,10 @@ ], "body": [ "---", - "\"$1\": \"$2\"", + "\"${3:$WORKSPACE_NAME}\": \"${1|patch,minor,major|}\"", "---", "", - "$3" + "$2" ] } } diff --git a/snippets/rust.json b/snippets/rust.json index 0d32abd..7b12a39 100644 --- a/snippets/rust.json +++ b/snippets/rust.json @@ -7,7 +7,7 @@ ], "body": [ "#[tauri::command]", - "async fn $1(app: tauri::AppHandle, window: tauri::Window) -> Result<(), String> {", + "async fn ${1:command_name}(app: tauri::AppHandle, window: tauri::Window) -> Result<(), String> {", " Ok(())", "}" ], @@ -27,7 +27,7 @@ "}", "// remember to call `.manage(MyState::default())`", "#[tauri::command]", - "async fn $1(state: tauri::State<'_, MyState>) -> Result<(), String> {", + "async fn ${1:command_name}(state: tauri::State<'_, MyState>) -> Result<(), String> {", " *state.s.lock().unwrap() = \"new string\".into();", " state.t.lock().unwrap().insert(\"key\".into(), \"value\".into());", " Ok(())",