display range
This commit is contained in:
parent
6ce81bb0cf
commit
56caf96c6c
2 changed files with 7 additions and 2 deletions
|
|
@ -19,6 +19,7 @@ import {
|
|||
} from "..";
|
||||
import { IdeMessengerContext } from "../../context/IdeMessenger";
|
||||
import { useWebviewListener } from "../../hooks/useWebviewListener";
|
||||
import { defaultModelSelector } from "../../redux/selectors/modelSelectors";
|
||||
import {
|
||||
incrementNextCodeBlockToApplyIndex,
|
||||
updateApplyState,
|
||||
|
|
@ -29,7 +30,6 @@ import ButtonWithTooltip from "../ButtonWithTooltip";
|
|||
import FileIcon from "../FileIcon";
|
||||
import { CopyButton as CopyButtonHeader } from "./CopyButton";
|
||||
import { ToolbarButtonWithTooltip } from "./ToolbarButtonWithTooltip";
|
||||
import { defaultModelSelector } from "../../redux/selectors/modelSelectors";
|
||||
|
||||
const ToolbarDiv = styled.div`
|
||||
display: flex;
|
||||
|
|
@ -266,7 +266,10 @@ function CodeBlockToolBar(props: CodeBlockToolBarProps) {
|
|||
onClick={onClickHeader}
|
||||
>
|
||||
<FileIcon height="20px" width="20px" filename={props.filepath} />
|
||||
<span className="truncate">{getBasename(props.filepath)}</span>
|
||||
<span className="truncate">
|
||||
{getBasename(props.filepath)}
|
||||
{props.range && ` ${props.range}`}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-1">
|
||||
|
|
|
|||
|
|
@ -77,6 +77,7 @@ function PreWithToolbar(props: {
|
|||
bottom={toolbarBottom}
|
||||
language={props.language}
|
||||
filepath={props.filepath}
|
||||
range={props.range}
|
||||
/>
|
||||
) : (
|
||||
hovering && (
|
||||
|
|
@ -85,6 +86,7 @@ function PreWithToolbar(props: {
|
|||
text={copyValue}
|
||||
bottom={toolbarBottom}
|
||||
language={props.language}
|
||||
range={props.range}
|
||||
/>
|
||||
)
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue