fix snippets
This commit is contained in:
parent
0c54e3cf48
commit
dbc49d213b
17
.vscode/snippets.code-snippets
vendored
17
.vscode/snippets.code-snippets
vendored
@ -1,25 +1,24 @@
|
||||
{
|
||||
"ns-template": {
|
||||
"scope": "typescript",
|
||||
"prefix" : ["template"],
|
||||
"prefix": "template",
|
||||
"body": [
|
||||
"import { NS } from '../NetscriptDefinitions'",
|
||||
"//",
|
||||
"",
|
||||
"export async function main(ns : NS) : Promise<void> {",
|
||||
"\t",
|
||||
"\t//",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
|
||||
"autocomplete": {
|
||||
"scope": "typescript",
|
||||
"prefix": "autocomplete",
|
||||
"body": [
|
||||
"// eslint-disable-next-line @typescript-eslint/no-unused-vars",
|
||||
"export function autocomplete(data : ServerData, args : string[]) : string[] {",
|
||||
"\treturn [...data.servers]",
|
||||
"}"
|
||||
"// eslint-disable-next-line @typescript-eslint/no-unused-vars",
|
||||
"export function autocomplete(data : ServerData, args : string[]) : string[] {",
|
||||
"\treturn [...data.servers]",
|
||||
"}"
|
||||
],
|
||||
"description": "autocomplete"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user