From 68e3adde99987280c697262a9fee7d7370ecceb5 Mon Sep 17 00:00:00 2001 From: l0ng-ai Date: Sun, 29 Nov 2026 15:36:33 +0800 Subject: [PATCH] chore(bindings): regenerate after project_roots moved off the IPC thread (#6812) #6799 made project_roots a spawned desktop command and added a doc line without regenerating src/bindings.ts and the command snapshot, which CI's generated-files check compares. --- src-tauri/tests/commands.snap | 2 +- src/bindings.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src-tauri/tests/commands.snap b/src-tauri/tests/commands.snap index d1ee00e5ab..a812f7e440 100644 --- a/src-tauri/tests/commands.snap +++ b/src-tauri/tests/commands.snap @@ -574,7 +574,7 @@ profiler_gc_before_stop trusted desktop bin profiler_prepare trusted desktop bindings async project_current always project_host bindings sync project_rename always desktop bindings sync -project_roots always project_host bindings sync +project_roots always project_host bindings spawn project_trust_add_location always desktop bindings async project_trust_list always project_host bindings sync project_trust_remove_location always project_host bindings async diff --git a/src/bindings.ts b/src/bindings.ts index 9b7f14b87d..52bb924086 100644 --- a/src/bindings.ts +++ b/src/bindings.ts @@ -1603,6 +1603,7 @@ export const commands = { /** * Effective source / test / resource / excluded roots of the window's project: * auto-detected from build files, overridden by Settings › Project Structure. + * Off the UI thread: Gradle source roots may walk the project for builds, slow on a share. */ projectRoots: () => typedError(__TAURI_INVOKE("project_roots")), projectTrustAddLocation: (path: string) => typedError(__TAURI_INVOKE("project_trust_add_location", { path })),