switch to folder settings over workspace settings

This commit is contained in:
Cyn 2021-12-25 02:46:52 -05:00
parent c15b920992
commit 0c54e3cf48
4 changed files with 32 additions and 29 deletions

7
.vscode/extensions.json vendored Normal file
View File

@ -0,0 +1,7 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"Gruntfuggly.auto-snippet",
"hexnaught.vscode-bitburner-connector"
]
}

22
.vscode/settings.json vendored Normal file
View File

@ -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"
},
],
}

View File

@ -3,8 +3,8 @@
"scope": "typescript", "scope": "typescript",
"prefix" : ["template"], "prefix" : ["template"],
"body": [ "body": [
"import { NS } from \"../NetscriptDefinitions\"", "import { NS } from '../NetscriptDefinitions'",
"", "//",
"export async function main(ns : NS) : Promise<void> {", "export async function main(ns : NS) : Promise<void> {",
"\t", "\t",
"}" "}"
@ -12,6 +12,7 @@
}, },
"autocomplete": { "autocomplete": {
"scope": "typescript",
"prefix": "autocomplete", "prefix": "autocomplete",
"body": [ "body": [
"// eslint-disable-next-line @typescript-eslint/no-unused-vars", "// eslint-disable-next-line @typescript-eslint/no-unused-vars",

View File

@ -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"
},
],
}
}