From 6068abdec0975f66466de35cbc598566794942ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sat, 15 Nov 2025 17:17:24 +0800 Subject: [PATCH] Update VSCode settings for formatting and file nesting Enhanced .vscode/settings.json with file nesting patterns, formatting preferences, auto-save behavior, and import specifier options for JavaScript and TypeScript. Removed old debug source map overrides to streamline workspace configuration. --- .vscode/settings.json | 46 ++++++++++++++++++++++++++++++++----------- 1 file changed, 35 insertions(+), 11 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index defe49b1..1c6af163 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,13 +1,37 @@ { - "debug.node.sourceMapPathOverrides": { - "../../napcat-common/*": "${workspaceFolder}/packages/napcat-common/*", - "../../napcat-core/*": "${workspaceFolder}/packages/napcat-core/*", - "../../napcat-image-size/*": "${workspaceFolder}/packages/napcat-image-size/*", - "../../napcat-shell/*": "${workspaceFolder}/packages/napcat-shell/*", - "../../napcat-framework/*": "${workspaceFolder}/packages/napcat-framework/*", - "../../napcat-protobuf/*": "${workspaceFolder}/packages/napcat-protobuf/*", - "../../napcat-onebot/*": "${workspaceFolder}/packages/napcat-onebot/*", - "../../napcat-webui-backend/*": "${workspaceFolder}/packages/napcat-webui-backend/*", - "../../napcat-pty/*": "${workspaceFolder}/packages/napcat-pty/*" - } + "explorer.fileNesting.enabled": true, + "explorer.fileNesting.expand": false, + "explorer.fileNesting.patterns": { + ".env.universal": ".env.*", + "vite.config.ts": "vite*.ts", + "README.md": "CODE_OF_CONDUCT.md, RELEASES.md, CONTRIBUTING.md, CHANGELOG.md, SECURITY.md", + "tsconfig.json": "tsconfig.*.json, env.d.ts", + "package.json": "package-lock.json, eslint*, .prettier*, .editorconfig, manifest.json, logo.png, .gitignore, LICENSE" + }, + "css.customData": [ + ".vscode/tailwindcss.json" + ], + "editor.detectIndentation": false, + "editor.tabSize": 2, + "editor.formatOnSave": true, + "editor.formatOnType": false, + "editor.formatOnPaste": true, + "editor.formatOnSaveMode": "file", + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "always" + }, + "files.autoSave": "onFocusChange", + "javascript.preferences.quoteStyle": "single", + "typescript.preferences.quoteStyle": "single", + "javascript.format.semicolons": "insert", + "typescript.format.semicolons": "insert", + "javascript.format.insertSpaceBeforeFunctionParenthesis": true, + "typescript.format.insertSpaceBeforeFunctionParenthesis": true, + "typescript.format.insertSpaceAfterConstructor": true, + "javascript.format.insertSpaceAfterConstructor": true, + "typescript.preferences.importModuleSpecifier": "non-relative", + "typescript.preferences.importModuleSpecifierEnding": "minimal", + "javascript.preferences.importModuleSpecifier": "non-relative", + "javascript.preferences.importModuleSpecifierEnding": "minimal", + "typescript.disableAutomaticTypeAcquisition": true } \ No newline at end of file