From 0c54e3cf48250c6b81c6447e43c2c8e257dd7a05 Mon Sep 17 00:00:00 2001 From: Cyn Date: Sat, 25 Dec 2021 02:46:52 -0500 Subject: [PATCH] switch to folder settings over workspace settings --- .vscode/extensions.json | 7 +++++++ .vscode/settings.json | 22 ++++++++++++++++++++++ .vscode/snippets.code-snippets | 5 +++-- .vscode/workspace.code-workspace | 27 --------------------------- 4 files changed, 32 insertions(+), 29 deletions(-) create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json delete mode 100644 .vscode/workspace.code-workspace diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..ae217cb --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + "recommendations": [ + "dbaeumer.vscode-eslint", + "Gruntfuggly.auto-snippet", + "hexnaught.vscode-bitburner-connector" + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..7aab3b9 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,22 @@ +{ + // Linter Settings + "typescript.validate.enable": false, + "javascript.validate.enable": false, + "eslint.validate": ["typescript", "typescriptreact"], + "eslint.workingDirectories": ["./src"], + "editor.codeActionsOnSave": {"source.fixAll.eslint": true}, + + // Bitburner Extension Settings + "bitburner.scriptRoot": "./dist/", + + // Autosave Settings + "files.autoSave": "off", + + // Autosnippet settings + "autoSnippet.snippets": [ + { + "pattern": "**/*.ts", + "snippet": "ns-template" + }, + ], +} \ No newline at end of file diff --git a/.vscode/snippets.code-snippets b/.vscode/snippets.code-snippets index e743955..5311545 100644 --- a/.vscode/snippets.code-snippets +++ b/.vscode/snippets.code-snippets @@ -3,8 +3,8 @@ "scope": "typescript", "prefix" : ["template"], "body": [ - "import { NS } from \"../NetscriptDefinitions\"", - "", + "import { NS } from '../NetscriptDefinitions'", + "//", "export async function main(ns : NS) : Promise {", "\t", "}" @@ -12,6 +12,7 @@ }, "autocomplete": { + "scope": "typescript", "prefix": "autocomplete", "body": [ "// eslint-disable-next-line @typescript-eslint/no-unused-vars", diff --git a/.vscode/workspace.code-workspace b/.vscode/workspace.code-workspace deleted file mode 100644 index 2018ec6..0000000 --- a/.vscode/workspace.code-workspace +++ /dev/null @@ -1,27 +0,0 @@ -{ - "folders": [{ - "path": ".." - }], - "settings": { - // Linter Settings - "typescript.validate.enable": false, - "javascript.validate.enable": false, - "eslint.validate": ["typescript", "typescriptreact"], - "eslint.workingDirectories": ["./src"], - "editor.codeActionsOnSave": {"source.fixAll.eslint": true}, - - // Bitburner Extension Settings - "bitburner.scriptRoot": "./dist/", - - // Autosave Settings - "files.autoSave": "off", - - // Autosnippet settings - "autoSnippet.snippets": [ - { - "pattern": "**/*.ts", - "snippet": "ns-template" - }, - ], - } -} \ No newline at end of file