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