diff --git a/src/vs/workbench/contrib/void/browser/prompt/prompts.ts b/src/vs/workbench/contrib/void/browser/prompt/prompts.ts index 22d0ad52..a7259020 100644 --- a/src/vs/workbench/contrib/void/browser/prompt/prompts.ts +++ b/src/vs/workbench/contrib/void/browser/prompt/prompts.ts @@ -299,7 +299,7 @@ For example, if the user is asking you to "make this variable a better name", ma export const aiRegex_computeReplacementsForFile_userMessage = async ({ searchClause, replaceClause, fileURI, voidFileService }: { searchClause: string, replaceClause: string, fileURI: URI, modelService: IModelService, voidFileService: IVoidFileService }) => { // we may want to do this in batches - const fileSelection: FileSelection = { type: 'File', fileURI, selectionStr: null, range: null } + const fileSelection: FileSelection = { type: 'File', fileURI, selectionStr: null, range: null, state: { isOpened: false } } const file = await stringifyFileSelections([fileSelection], voidFileService) diff --git a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx index e7f2ff37..75faa520 100644 --- a/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx +++ b/src/vs/workbench/contrib/void/browser/react/src/sidebar-tsx/SidebarChat.tsx @@ -376,9 +376,6 @@ export const SelectedFiles = ( | { type: 'staging', selections: StagingSelectionItem[]; setSelections: ((newSelections: StagingSelectionItem[]) => void), showProspectiveSelections?: boolean } ) => { - // state for tracking hover on clear all button - const [isClearHovered, setIsClearHovered] = useState(false) - const accessor = useAccessor() const commandService = accessor.get('ICommandService') @@ -417,7 +414,7 @@ export const SelectedFiles = ( } return ( -
+
{allSelections.map((selection, i) => { @@ -430,7 +427,7 @@ export const SelectedFiles = ( return
@@ -443,7 +440,13 @@ export const SelectedFiles = ( select-none ${isThisSelectionProspective ? 'bg-void-bg-1 text-void-fg-3 opacity-80' : 'bg-void-bg-3 hover:brightness-95 text-void-fg-1'} text-xs text-nowrap - border rounded-sm ${isClearHovered && !isThisSelectionProspective ? 'border-void-border-1' : 'border-void-border-2'} hover:border-void-border-1 + border rounded-sm ${isThisSelectionProspective + ? 'border-void-border-2' + : isThisSelectionOpened + ? 'border-void-border-1 ring-1 ring-[#007FD4]' + : 'border-void-border-1' + } + hover:border-void-border-1 transition-all duration-150 `} onClick={() => { @@ -497,7 +500,10 @@ export const SelectedFiles = ( {/* code box */} {isThisSelectionOpened ?
{ e.stopPropagation(); // don't focus input box }}