diff --git a/.vscode/settings.json b/.vscode/settings.json index c896d0bb2db..31b6b7730be 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,11 +1,8 @@ { + // # Formatter configs "editor.defaultFormatter": "biomejs.biome", "editor.tabSize": 2, "editor.insertSpaces": true, - "typescript.preferences.importModuleSpecifier": "non-relative", - "javascript.preferences.importModuleSpecifier": "non-relative", - "javascript.preferences.importModuleSpecifierEnding": "index", - "typescript.preferences.importModuleSpecifierEnding": "index", "editor.codeActionsOnSave": { "source.addMissingImports.ts": "always", "source.removeUnusedImports": "always", @@ -13,5 +10,28 @@ "source.fixAll.biome": "always", "source.organizeImports.biome": "always" }, + "biome.suggestInstallingGlobally": false, + + // # JS/TS setting overrides + "javascript.updateImportsOnFileMove.enabled": "always", + "javascript.preferences.importModuleSpecifier": "non-relative", + "javascript.preferences.importModuleSpecifierEnding": "index", + "javascript.preferGoToSourceDefinition": true, + "javascript.updateImportsOnFileMove.enabled": "always", + + "typescript.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 if your PC supports it + "typescript.tsserver.maxTsServerMemory": 1536, // 1.5 GB by default + "typescript.autoClosingTags": false, + + // # Miscellaneous + "npm.packageManager": "pnpm", + "npm.scriptRunner": "pnpm", "vitest.cliArguments": "--no-isolate", }