my-bitburner/.vscode/snippets.code-snippets

24 lines
542 B
Plaintext
Raw Normal View History

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