Clean up redundant folderPath and locked props in SurfaceHost #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Location
src/lib/features/workbench/surfaces/SurfaceHost.svelteProblem
SurfaceHost.svelteexplicitly passesfolderPath={activeTab.folderPath}andlocked={activeTab.locked}to surface components (TextSurface,DiffSurface,TaskSurface,SessionTerminal, etc.), which already receive the completetabobject containing those exact properties.Suggested Fix
Simplify surface component props to read
folderPathandlockeddirectly fromtab, removing the duplicate prop bindings inSurfaceHostand the receiving surface definitions.