Skip to content

Commit 75eea9f

Browse files
author
zhoupengwu
committed
fix(worktree): fix lint errors and type errors
1 parent 40035c7 commit 75eea9f

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/features/settings/components/SettingsView.test.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ const baseSettings: AppSettings = {
151151
},
152152
],
153153
selectedOpenAppId: "vscode",
154+
globalWorktreesFolder: null,
154155
};
155156

156157
const createDoctorResult = () => ({
@@ -689,6 +690,7 @@ describe("SettingsView Environments", () => {
689690
await waitFor(() => {
690691
expect(onUpdateWorkspaceSettings).toHaveBeenCalledWith("w1", {
691692
worktreeSetupScript: "echo updated",
693+
worktreesFolder: null,
692694
});
693695
});
694696
});
@@ -704,6 +706,7 @@ describe("SettingsView Environments", () => {
704706
await waitFor(() => {
705707
expect(onUpdateWorkspaceSettings).toHaveBeenCalledWith("w1", {
706708
worktreeSetupScript: null,
709+
worktreesFolder: null,
707710
});
708711
});
709712
});

src/features/settings/components/sections/SettingsEnvironmentsSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function SettingsEnvironmentsSection({
2929
environmentSavedScript,
3030
environmentDirty,
3131
worktreesFolderDraft,
32-
worktreesFolderSaved,
32+
worktreesFolderSaved: _worktreesFolderSaved,
3333
worktreesFolderDirty,
3434
onSetEnvironmentWorkspaceId,
3535
onSetEnvironmentDraftScript,

src/features/settings/hooks/useAppSettings.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ function buildDefaultSettings(): AppSettings {
206206
workspaceGroups: [],
207207
openAppTargets: DEFAULT_OPEN_APP_TARGETS,
208208
selectedOpenAppId: DEFAULT_OPEN_APP_ID,
209+
globalWorktreesFolder: null,
209210
};
210211
}
211212

0 commit comments

Comments
 (0)