Update VSCode settings for formatting and file nesting
Some checks are pending
Build NapCat Artifacts / Build-Framework (push) Waiting to run
Build NapCat Artifacts / Build-Shell (push) Waiting to run

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.
This commit is contained in:
手瓜一十雪 2025-11-15 17:17:24 +08:00
parent 3957d7af5a
commit 6068abdec0

46
.vscode/settings.json vendored
View File

@ -1,13 +1,37 @@
{ {
"debug.node.sourceMapPathOverrides": { "explorer.fileNesting.enabled": true,
"../../napcat-common/*": "${workspaceFolder}/packages/napcat-common/*", "explorer.fileNesting.expand": false,
"../../napcat-core/*": "${workspaceFolder}/packages/napcat-core/*", "explorer.fileNesting.patterns": {
"../../napcat-image-size/*": "${workspaceFolder}/packages/napcat-image-size/*", ".env.universal": ".env.*",
"../../napcat-shell/*": "${workspaceFolder}/packages/napcat-shell/*", "vite.config.ts": "vite*.ts",
"../../napcat-framework/*": "${workspaceFolder}/packages/napcat-framework/*", "README.md": "CODE_OF_CONDUCT.md, RELEASES.md, CONTRIBUTING.md, CHANGELOG.md, SECURITY.md",
"../../napcat-protobuf/*": "${workspaceFolder}/packages/napcat-protobuf/*", "tsconfig.json": "tsconfig.*.json, env.d.ts",
"../../napcat-onebot/*": "${workspaceFolder}/packages/napcat-onebot/*", "package.json": "package-lock.json, eslint*, .prettier*, .editorconfig, manifest.json, logo.png, .gitignore, LICENSE"
"../../napcat-webui-backend/*": "${workspaceFolder}/packages/napcat-webui-backend/*", },
"../../napcat-pty/*": "${workspaceFolder}/packages/napcat-pty/*" "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
} }