{ // "Print to console": { // "scope": "javascript,typescript", // "prefix": "log", // "body": [ // "console.log('$1');", // "$2" // ], // "description": "Log output to console" // } "allow unused": { "scope": "rust", "prefix": "allowunused", "body": [ "#[allow(unused)]" ], "description": "#[allow(unused)]" }, "match file_type": { "scope": "rust", "prefix": "matchfiletype", "body": [ "match file_type.as_str() {", "\t\"common\" => {", "\t\t", "\t}", "\t\"ip\" => {", "\t\t", "\t}", "\t\"primitives\" => {", "\t\t", "\t}", "\t_ => {", "\t\t", "\t}", "}", ] }, "new": { "scope": "rust", "prefix": "new", "body": [ "pub fn new($1) -> Self {", "\t$2", "}" ] }, "CompletionItemLabelDetails Snippet": { "prefix": "label_details", "body": [ "let label_details = CompletionItemLabelDetails {", " description: Some(\"${1:port description}\".to_string()),", " ..Default::default()", "};" ], "description": "Create a CompletionItemLabelDetails with description." } }