mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-11 22:51:26 +00:00
Merge pull request #908 from RooVetGit/cte/fix-restore-checkpoint-dropdown
Fix restore checkpoint popover
This commit is contained in:
commit
f3a8f828a5
2 changed files with 7 additions and 33 deletions
|
|
@ -1910,7 +1910,6 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|||
this.outputChannel.appendLine("Invalid response from Glama API")
|
||||
}
|
||||
await fs.writeFile(glamaModelsFilePath, JSON.stringify(models))
|
||||
this.outputChannel.appendLine(`Glama models fetched and saved: ${JSON.stringify(models, null, 2)}`)
|
||||
} catch (error) {
|
||||
this.outputChannel.appendLine(
|
||||
`Error fetching Glama models: ${JSON.stringify(error, Object.getOwnPropertyNames(error), 2)}`,
|
||||
|
|
@ -2026,7 +2025,6 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|||
this.outputChannel.appendLine("Invalid response from OpenRouter API")
|
||||
}
|
||||
await fs.writeFile(openRouterModelsFilePath, JSON.stringify(models))
|
||||
this.outputChannel.appendLine(`OpenRouter models fetched and saved: ${JSON.stringify(models, null, 2)}`)
|
||||
} catch (error) {
|
||||
this.outputChannel.appendLine(
|
||||
`Error fetching OpenRouter models: ${JSON.stringify(error, Object.getOwnPropertyNames(error), 2)}`,
|
||||
|
|
@ -2066,7 +2064,6 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
|||
}
|
||||
}
|
||||
await fs.writeFile(unboundModelsFilePath, JSON.stringify(models))
|
||||
this.outputChannel.appendLine(`Unbound models fetched and saved: ${JSON.stringify(models, null, 2)}`)
|
||||
} catch (error) {
|
||||
this.outputChannel.appendLine(
|
||||
`Error fetching Unbound models: ${JSON.stringify(error, Object.getOwnPropertyNames(error), 2)}`,
|
||||
|
|
|
|||
|
|
@ -3,16 +3,7 @@ import { CheckIcon, Cross2Icon } from "@radix-ui/react-icons"
|
|||
|
||||
import { vscode } from "../../../utils/vscode"
|
||||
|
||||
import {
|
||||
Button,
|
||||
Popover,
|
||||
PopoverContent,
|
||||
PopoverTrigger,
|
||||
Tooltip,
|
||||
TooltipContent,
|
||||
TooltipProvider,
|
||||
TooltipTrigger,
|
||||
} from "@/components/ui"
|
||||
import { Button, Popover, PopoverContent, PopoverTrigger } from "@/components/ui"
|
||||
|
||||
type CheckpointMenuProps = {
|
||||
ts: number
|
||||
|
|
@ -52,16 +43,9 @@ export const CheckpointMenu = ({ ts, commitHash, currentCheckpointHash }: Checkp
|
|||
|
||||
return (
|
||||
<div className="flex flex-row gap-1">
|
||||
<TooltipProvider>
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<Button variant="ghost" size="icon" onClick={onCheckpointDiff}>
|
||||
<span className="codicon codicon-diff-single" />
|
||||
</Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent align="end">View Diff</TooltipContent>
|
||||
</Tooltip>
|
||||
</TooltipProvider>
|
||||
<Button variant="ghost" size="icon" onClick={onCheckpointDiff} title="View Diff">
|
||||
<span className="codicon codicon-diff-single" />
|
||||
</Button>
|
||||
<Popover
|
||||
open={isOpen}
|
||||
onOpenChange={(open) => {
|
||||
|
|
@ -69,16 +53,9 @@ export const CheckpointMenu = ({ ts, commitHash, currentCheckpointHash }: Checkp
|
|||
setIsConfirming(false)
|
||||
}}>
|
||||
<PopoverTrigger asChild>
|
||||
<TooltipProvider>
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<Button variant="ghost" size="icon">
|
||||
<span className="codicon codicon-history" />
|
||||
</Button>
|
||||
</TooltipTrigger>
|
||||
<TooltipContent align="end">Restore Checkpoint</TooltipContent>
|
||||
</Tooltip>
|
||||
</TooltipProvider>
|
||||
<Button variant="ghost" size="icon" title="Restore Checkpoint">
|
||||
<span className="codicon codicon-history" />
|
||||
</Button>
|
||||
</PopoverTrigger>
|
||||
<PopoverContent align="end" container={portalContainer}>
|
||||
<div className="flex flex-col gap-2">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue