my-bitburner/.vscode/snippets.code-snippets
2021-12-23 13:26:41 -05:00

24 lines
555 B
Plaintext

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