Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/shared/ExtensionMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Mode, CustomModePrompts, ModeConfig, defaultModeSlug, defaultPrompts }
import { CustomSupportPrompts } from "./support-prompt"
import { experimentDefault, ExperimentId } from "./experiments"
import { TERMINAL_OUTPUT_LIMIT } from "./terminal"
import { ClineMessage } from "../exports/roo-code"
import { ClineMessage, ClineAsk, ClineSay } from "../exports/roo-code"
import { CheckpointStorage } from "./checkpoints"
import { TelemetrySetting } from "./TelemetrySetting"

Expand Down Expand Up @@ -158,7 +158,7 @@ export interface ExtensionState {
showRooIgnoredFiles: boolean // Whether to show .rooignore'd files in listings
}

export type { ClineMessage }
export type { ClineMessage, ClineAsk, ClineSay }

export interface ClineSayTool {
tool:
Expand Down
4 changes: 3 additions & 1 deletion webview-ui/src/components/chat/ChatTextArea/ChatTextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ interface ChatTextAreaProps {
onHeightChange?: (height: number) => void
mode: Mode
setMode: (value: Mode) => void
modeShortcutText: string
}

const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
Expand All @@ -37,6 +38,7 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
onHeightChange,
mode,
setMode,
modeShortcutText,
},
ref,
) => {
Expand All @@ -56,7 +58,6 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
return () => document.removeEventListener("mousedown", handleClickOutside)
}, [showDropdown])


// Handle enhanced prompt response
useEffect(() => {
const messageHandler = (event: MessageEvent) => {
Expand Down Expand Up @@ -111,6 +112,7 @@ const ChatTextArea = forwardRef<HTMLTextAreaElement, ChatTextAreaProps>(
currentApiConfigName={currentApiConfigName}
listApiConfigMeta={listApiConfigMeta}
customModes={customModes}
modeShortcutText={modeShortcutText}
/>
),
actions: (
Expand Down
2 changes: 1 addition & 1 deletion webview-ui/src/components/chat/ChatView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useDeepCompareEffect, useEvent, useMount } from "react-use"
import { Virtuoso, type VirtuosoHandle } from "react-virtuoso"
import styled from "styled-components"
import {
ClineAsk,
ClineMessage,
ClineSayBrowserAction,
ClineSayTool,
Expand All @@ -29,7 +30,6 @@ import { AudioType } from "../../../../src/shared/WebviewMessage"
import { validateCommand } from "../../utils/command-validation"
import { getAllModes } from "../../../../src/shared/modes"
import TelemetryBanner from "../common/TelemetryBanner"
import { ClineAsk } from "../../../../src/exports/roo-code"

interface ChatViewProps {
isHidden: boolean
Expand Down
10 changes: 3 additions & 7 deletions webview-ui/src/components/ui/select-dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ export const SelectDropdown = React.forwardRef<React.ElementRef<typeof DropdownM
}

return (
<div
className="relative inline-block min-w-0 flex-[0_1_auto]" // Select container styles
>
<div className="relative inline-block min-w-0 flex-[0_1_auto]">
<DropdownMenu open={open} onOpenChange={setOpen}>
<DropdownMenuTrigger
ref={ref}
Expand All @@ -95,14 +93,12 @@ export const SelectDropdown = React.forwardRef<React.ElementRef<typeof DropdownM
triggerClassName,
)}
style={{
width: "100%", // Take full width of parent.
width: "100%",
minWidth: "0",
maxWidth: "100%",
}}>
{shouldShowCaret && (
<div
className="pointer-events-none opacity-60 text-[10px]" // Caret container styles
>
<div className="pointer-events-none opacity-60 text-[10px]">
<svg
fill="none"
height="10"
Expand Down
7 changes: 4 additions & 3 deletions webview-ui/src/context/ExtensionStateContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import {
ExtensionMessage,
ExtensionState,
} from "../../../src/shared/ExtensionMessage"
import { ApiConfiguration, ModelInfo } from "../../../src/shared/api"
import { vscode } from "../utils/vscode"
import { convertTextMateToHljs } from "../utils/textMateToHljs"
import { ApiConfiguration } from "../../../src/shared/api"
import { findLastIndex } from "../../../src/shared/array"
import { McpServer } from "../../../src/shared/mcp"
import { checkExistKey } from "../../../src/shared/checkExistApiConfig"
Expand All @@ -17,6 +15,9 @@ import { CustomSupportPrompts } from "../../../src/shared/support-prompt"
import { ExperimentId } from "../../../src/shared/experiments"
import { TelemetrySetting } from "../../../src/shared/TelemetrySetting"

import { vscode } from "@/utils/vscode"
import { convertTextMateToHljs } from "@/utils/textMateToHljs"

export interface ExtensionStateContextType extends ExtensionState {
didHydrateState: boolean
showWelcome: boolean
Expand Down
Loading