From dbc49d213b6531ea4e2f4efefdc093109f34d5e7 Mon Sep 17 00:00:00 2001 From: Cyn Date: Sat, 25 Dec 2021 03:13:00 -0500 Subject: [PATCH] fix snippets --- .vscode/snippets.code-snippets | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.vscode/snippets.code-snippets b/.vscode/snippets.code-snippets index 5311545..b8f77b0 100644 --- a/.vscode/snippets.code-snippets +++ b/.vscode/snippets.code-snippets @@ -1,25 +1,24 @@ { "ns-template": { "scope": "typescript", - "prefix" : ["template"], + "prefix": "template", "body": [ "import { NS } from '../NetscriptDefinitions'", - "//", + "", "export async function main(ns : NS) : Promise {", - "\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" - } + } } \ No newline at end of file