digital-lsp-server/.vscode/lsp.code-snippets

48 lines
1022 B
Plaintext

{
// "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",
"}"
]
}
}