Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"Dart-Code.dart-code",
"Dart-Code.flutter",
"Vue.volar",
"tauri-apps.tauri-vscode",
"rust-lang.rust-analyzer"
]
}
18 changes: 18 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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
}
}
1 change: 1 addition & 0 deletions apps/tauri/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dist-ssr
# Editor directories and files
.vscode/*
!.vscode/extensions.json
!.vscode/settings.json
.idea
.DS_Store
*.suo
Expand Down
13 changes: 13 additions & 0 deletions apps/tauri/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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"
}
2 changes: 1 addition & 1 deletion apps/tauri/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
34 changes: 34 additions & 0 deletions querya-desktop.code-workspace
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
Loading