fix snippets

This commit is contained in:
Cyn 2021-12-25 03:13:00 -05:00
parent 0c54e3cf48
commit dbc49d213b
1 changed files with 8 additions and 9 deletions

View File

@ -1,25 +1,24 @@
{ {
"ns-template": { "ns-template": {
"scope": "typescript", "scope": "typescript",
"prefix" : ["template"], "prefix": "template",
"body": [ "body": [
"import { NS } from '../NetscriptDefinitions'", "import { NS } from '../NetscriptDefinitions'",
"//", "",
"export async function main(ns : NS) : Promise<void> {", "export async function main(ns : NS) : Promise<void> {",
"\t", "\t//",
"}" "}"
] ]
}, },
"autocomplete": { "autocomplete": {
"scope": "typescript", "scope": "typescript",
"prefix": "autocomplete", "prefix": "autocomplete",
"body": [ "body": [
"// eslint-disable-next-line @typescript-eslint/no-unused-vars", "// eslint-disable-next-line @typescript-eslint/no-unused-vars",
"export function autocomplete(data : ServerData, args : string[]) : string[] {", "export function autocomplete(data : ServerData, args : string[]) : string[] {",
"\treturn [...data.servers]", "\treturn [...data.servers]",
"}" "}"
], ],
"description": "autocomplete" "description": "autocomplete"
} }
} }