Removed non-extensions.json files; added default config directly to devcontainer

This commit is contained in:
Bertie690 2025-08-07 11:21:38 -04:00
parent 77f9a80cf8
commit b1434c1457
6 changed files with 47 additions and 139 deletions

View File

@ -15,7 +15,45 @@
},
"customizations": {
"vscode": {
"extensions": ["aaron-bond.better-comments", ""]
"settings": {
// # Formatter configs
"editor.defaultFormatter": "biomejs.biome",
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.codeActionsOnSave": {
"source.addMissingImports.ts": "always",
"source.removeUnusedImports": "always",
"source.fixAll.biome": "always",
"source.organizeImports.biome": "always"
},
"biome.suggestInstallingGlobally": false,
// # JS/TS setting overrides
"javascript.preferences.importModuleSpecifier": "non-relative",
"javascript.preferences.importModuleSpecifierEnding": "index",
"javascript.preferGoToSourceDefinition": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.preferences.importModuleSpecifier": "non-relative",
"typescript.preferences.importModuleSpecifierEnding": "index",
"typescript.preferGoToSourceDefinition": true,
"typescript.updateImportsOnFileMove.enabled": "always",
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
// # Miscellaneous
"npm.packageManager": "pnpm",
"npm.scriptRunner": "pnpm",
"vitest.cliArguments": "--no-isolate"
},
"extensions": [
"biomejs.biome",
"YoavBls.pretty-ts-errors",
"vitest.explorer",
"adpyke.codesnap", // Bind to a hotkey (ctrl+\, etc) for best results
"aaron-bond.better-comments",
"MuTsunTsai.jsdoc-link"
]
}
},
"postCreateCommand": "pnpm install",

4
.gitignore vendored
View File

@ -12,8 +12,10 @@ dist
dist-ssr
*.local
# Editor directories and files
# Editor directories and files (excluding `extensions.json` for devcontainer)
*.code-workspace
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo

View File

@ -4,8 +4,10 @@
"YoavBls.pretty-ts-errors",
"vitest.explorer",
// This stuff isn't mandatory - it's just nice to have ;)
"adpyke.codesnap",
"aaron-bond.better-comments"
// This stuff isn't mandatory - it's just nice to have :)
"adpyke.codesnap", // Bind to a hotkey (ctrl+\, etc) for best results
"aaron-bond.better-comments",
"MuTsunTsai.jsdoc-link"
]
}

31
.vscode/launch.json vendored
View File

@ -1,31 +0,0 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug Vitest",
"skipFiles": ["<node_internals>/**"],
"program": "${workspaceFolder}/node_modules/vitest/vitest.mjs",
"args": ["--inspectBrk", "--no-file-parallelism", "${input:testfile}", "-t", "${input:testcase}"],
"autoAttachChildProcesses": true
}
],
"inputs": [
{
"id": "testfile",
"type": "promptString",
"description": "Enter test file to run.",
"default": "${fileBasename}"
},
{
"id": "testcase",
"type": "promptString",
"description": "Enter test case to run.",
"default": ""
}
]
}

33
.vscode/settings.json vendored
View File

@ -1,33 +0,0 @@
{
// # Formatter configs
"editor.defaultFormatter": "biomejs.biome",
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.codeActionsOnSave": {
"source.addMissingImports.ts": "always",
"source.removeUnusedImports": "always",
"source.fixAll.biome": "always",
"source.organizeImports.biome": "always"
},
"biome.suggestInstallingGlobally": false,
// # JS/TS setting overrides
"javascript.preferences.importModuleSpecifier": "non-relative",
"javascript.preferences.importModuleSpecifierEnding": "index",
"javascript.preferGoToSourceDefinition": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.preferences.importModuleSpecifier": "non-relative",
"typescript.preferences.importModuleSpecifierEnding": "index",
"typescript.preferGoToSourceDefinition": true,
"typescript.updateImportsOnFileMove.enabled": "always",
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
// Note: You may want to adjust the max server memory depending on your PC's specs:
// "typescript.tsserver.maxTsServerMemory": 1536, // 1.5 GB by default
// # Miscellaneous
"npm.packageManager": "pnpm",
"npm.scriptRunner": "pnpm",
"vitest.cliArguments": "--no-isolate",
}

70
.vscode/tasks.json vendored
View File

@ -1,70 +0,0 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"presentation": {
"reveal": "never",
"focus": false
},
"tasks": [
{
"label": "Update Submodules",
"type": "shell",
"command": "git submodule update --init --recursive",
"icon": {
"color": "terminal.ansiRed",
"id": "git-branch"
},
},
{
"label": "Clear Submodules",
"type": "shell",
"command": "rm -rf public/locales; git checkout upstream/beta -- public/locales",
"icon": {
"color": "terminal.ansiRed",
"id": "trash"
},
},
{
"label": "Biome - Write All",
"type": "shell",
"command": {
"value": "pnpm",
"quoting": "weak"
},
"args": [
"run",
"biome",
"--diagnostic-level=${input:error-level}"
],
"icon": {
"color": "terminal.ansiBlue",
"id": "json"
},
"problemMatcher": []
},
{
"label": "Start Local Dev",
"type": "npm",
"script": "start:dev",
"icon": {
"color": "terminal.ansiGreen",
"id": "debug-start"
},
"problemMatcher": []
}
],
"inputs": [
{
"id": "error-level",
"description": "Select the level of errors to report from Biome.",
"type": "pickString",
"options": [
"error",
"warning",
"info"
],
"default": "error"
}
]
}