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 })),