Merge branch 'main' into fix-clojure-pascal-highlighting
This commit is contained in:
commit
7d6ec05438
6 changed files with 19 additions and 6 deletions
|
|
@ -671,7 +671,7 @@ export class Core {
|
|||
|
||||
on("didChangeActiveTextEditor", async ({ data: { filepath } }) => {
|
||||
try {
|
||||
const ignore = shouldIgnore(filepath, this.ide);
|
||||
const ignore = await shouldIgnore(filepath, this.ide);
|
||||
if (!ignore) {
|
||||
recentlyEditedFilesCache.set(filepath, filepath);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ export function toChatMessage(
|
|||
type: toolCall.type!,
|
||||
function: {
|
||||
name: toolCall.function?.name!,
|
||||
arguments: toolCall.function?.arguments!,
|
||||
arguments: toolCall.function?.arguments! || "{}",
|
||||
},
|
||||
}));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,6 +39,17 @@ export default function AddFileCombobox({
|
|||
}
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
// update selectedFiles showing only the files that are in codeToEdit
|
||||
setSelectedFiles(
|
||||
(prevSelectedFiles) =>
|
||||
prevSelectedFiles.filter(
|
||||
(file) =>
|
||||
codeToEdit.findIndex((code) => code.filepath === file.id) !== -1,
|
||||
),
|
||||
);
|
||||
}, [codeToEdit]);
|
||||
|
||||
const filteredFiles =
|
||||
query === ""
|
||||
? remainingFiles
|
||||
|
|
@ -55,12 +66,14 @@ export default function AddFileCombobox({
|
|||
setSelectedFiles(files);
|
||||
void onSelect(files.map((file) => file.id));
|
||||
buttonRef.current?.click();
|
||||
setQuery("");
|
||||
}}
|
||||
>
|
||||
{({ open }) => (
|
||||
<div className="relative">
|
||||
<ComboboxButton className="hidden" ref={buttonRef} />
|
||||
<ComboboxInput
|
||||
value={query}
|
||||
ref={inputRef}
|
||||
onClick={() => {
|
||||
if (!open) {
|
||||
|
|
|
|||
|
|
@ -515,7 +515,7 @@ const AtMentionDropdown = forwardRef((props: AtMentionDropdownProps, ref) => {
|
|||
) : (
|
||||
<DropdownIcon item={item} className="mr-2" />
|
||||
)}
|
||||
<span title={item.id}>{item.title}</span>
|
||||
<span title={item.id} className="whitespace-nowrap">{item.title}</span>
|
||||
{" "}
|
||||
</div>
|
||||
<span
|
||||
|
|
@ -562,7 +562,7 @@ const AtMentionDropdown = forwardRef((props: AtMentionDropdownProps, ref) => {
|
|||
);
|
||||
})
|
||||
) : (
|
||||
<ItemDiv className="item">No results</ItemDiv>
|
||||
<ItemDiv className="item whitespace-nowrap">No results</ItemDiv>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ function ContinueInputBox(props: ContinueInputBoxProps) {
|
|||
|
||||
const historyKey = props.isEditMode ? "edit" : "chat";
|
||||
const placeholder = props.isEditMode
|
||||
? "Describe how to modify the code - use '#' to add files"
|
||||
? "Describe changes, '#' to add files"
|
||||
: undefined;
|
||||
|
||||
const toolbarOptions: ToolbarOptions = props.isEditMode
|
||||
|
|
|
|||
|
|
@ -24,6 +24,6 @@ export const EnterButton = styled.button<{ isPrimary?: boolean }>`
|
|||
cursor: pointer;
|
||||
|
||||
:disabled {
|
||||
cursor: wait;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
`;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue