mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-19 01:51:21 +08:00
test(vscode): keep prompt stories inside providers
This commit is contained in:
@@ -60,12 +60,6 @@ const PromptProviders: ParentComponent<{
|
||||
workspaceDirectory: () => "/workspace",
|
||||
gitInstalled: () => true,
|
||||
}
|
||||
const content = (
|
||||
<div style={{ overflow: "hidden" }}>
|
||||
<SessionContext.Provider value={session as any}>{props.children}</SessionContext.Provider>
|
||||
</div>
|
||||
)
|
||||
|
||||
return (
|
||||
<StoryProviders
|
||||
noPadding
|
||||
@@ -77,11 +71,15 @@ const PromptProviders: ParentComponent<{
|
||||
features={props.sandboxNetwork ? { sandboxControls: true } : undefined}
|
||||
>
|
||||
{/* overflow:hidden prevents margin-collapse so top/bottom borders are captured in screenshots */}
|
||||
{props.sandboxNetwork ? (
|
||||
<ServerContext.Provider value={server as any}>{content}</ServerContext.Provider>
|
||||
) : (
|
||||
content
|
||||
)}
|
||||
<div style={{ overflow: "hidden" }}>
|
||||
<SessionContext.Provider value={session as any}>
|
||||
{props.sandboxNetwork ? (
|
||||
<ServerContext.Provider value={server as any}>{props.children}</ServerContext.Provider>
|
||||
) : (
|
||||
props.children
|
||||
)}
|
||||
</SessionContext.Provider>
|
||||
</div>
|
||||
</StoryProviders>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user