diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 00000000..13a5f682 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,9 @@ +{ + "recommendations": [ + "Dart-Code.dart-code", + "Dart-Code.flutter", + "Vue.volar", + "tauri-apps.tauri-vscode", + "rust-lang.rust-analyzer" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..526205ee --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,18 @@ +{ + "rust-analyzer.linkedProjects": [ + "apps/tauri/src-tauri/Cargo.toml" + ], + "rust-analyzer.cargo.targetDir": true, + "files.watcherExclude": { + "**/apps/tauri/src-tauri/target/**": true, + "**/apps/tauri/node_modules/**": true, + "**/apps/tauri/dist/**": true, + "**/.dart_tool/**": true, + "**/build/**": true + }, + "search.exclude": { + "**/apps/tauri/src-tauri/target": true, + "**/apps/tauri/node_modules": true, + "**/apps/tauri/dist": true + } +} diff --git a/apps/tauri/.gitignore b/apps/tauri/.gitignore index a547bf36..49ef0bd1 100644 --- a/apps/tauri/.gitignore +++ b/apps/tauri/.gitignore @@ -15,6 +15,7 @@ dist-ssr # Editor directories and files .vscode/* !.vscode/extensions.json +!.vscode/settings.json .idea .DS_Store *.suo diff --git a/apps/tauri/.vscode/settings.json b/apps/tauri/.vscode/settings.json new file mode 100644 index 00000000..de39f3a7 --- /dev/null +++ b/apps/tauri/.vscode/settings.json @@ -0,0 +1,13 @@ +{ + "rust-analyzer.linkedProjects": [ + "src-tauri/Cargo.toml" + ], + "rust-analyzer.cargo.targetDir": true, + "[vue]": { + "editor.defaultFormatter": "Vue.volar" + }, + "[typescript]": { + "editor.defaultFormatter": "Vue.volar" + }, + "typescript.tsdk": "node_modules/typescript/lib" +} diff --git a/apps/tauri/README.md b/apps/tauri/README.md index e82227a1..45d019ad 100644 --- a/apps/tauri/README.md +++ b/apps/tauri/README.md @@ -90,7 +90,7 @@ apps/tauri/ - **`ERR_PNPM_IGNORED_BUILDS` / missing esbuild** — this package lists `esbuild` under `onlyBuiltDependencies` in `pnpm-workspace.yaml`. Re-run `pnpm install`. On older pnpm, `pnpm approve-builds --all` then reinstall. - **`cargo` cannot find webkit** — install the Linux packages above; wrong webkit major (4.0 vs 4.1) is a common miss. - **Port 1420 in use** — Vite is fixed to `1420` for Tauri (`vite.config.ts`). Free the port or stop the other process. -- **Flutter analysis noisy after opening this folder** — use the repo editor settings from issue `#1859` / `.vscode` so rust-analyzer points at `apps/tauri/src-tauri` only. +- **Flutter analysis noisy after opening this folder** — open `querya-desktop.code-workspace` (or use root `.vscode/settings.json`) so rust-analyzer links only `apps/tauri/src-tauri`. ## GitFlow diff --git a/querya-desktop.code-workspace b/querya-desktop.code-workspace new file mode 100644 index 00000000..e3a1f295 --- /dev/null +++ b/querya-desktop.code-workspace @@ -0,0 +1,34 @@ +{ + "folders": [ + { + "name": "Querya (Flutter + monorepo)", + "path": "." + }, + { + "name": "apps/tauri", + "path": "apps/tauri" + } + ], + "settings": { + "rust-analyzer.linkedProjects": [ + "apps/tauri/src-tauri/Cargo.toml" + ], + "rust-analyzer.cargo.targetDir": true, + "files.watcherExclude": { + "**/apps/tauri/src-tauri/target/**": true, + "**/apps/tauri/node_modules/**": true, + "**/apps/tauri/dist/**": true, + "**/.dart_tool/**": true, + "**/build/**": true + } + }, + "extensions": { + "recommendations": [ + "Dart-Code.dart-code", + "Dart-Code.flutter", + "Vue.volar", + "tauri-apps.tauri-vscode", + "rust-lang.rust-analyzer" + ] + } +}