improvements

This commit is contained in:
Mathew Pareles 2025-03-19 22:19:51 -07:00
parent 0dae638be7
commit 2ae098ee96
2 changed files with 6 additions and 7 deletions

View file

@ -236,7 +236,7 @@ class ChatThreadService extends Disposable implements IChatThreadService {
private _addCurrentFileAsStagingSelectionDuringFileChange() {
// add the current file to the thread/message being edited
// add the current file to the thread being edited
const model = this._codeEditorService.getActiveCodeEditor()?.getModel() ?? null
if (!model) { return; }
@ -269,6 +269,8 @@ class ChatThreadService extends Disposable implements IChatThreadService {
} else { // user is editing a message
// do nothing. I don't think it feels good to auto-add the current file when you're editing a message.
// const oldStagingSelections = this.getCurrentMessageState(focusedMessageIdx).stagingSelections || [];
// // if the file already exists, do nothing

View file

@ -619,14 +619,11 @@ export const SelectedFiles = (
+ (isThisSelectionAFile ? '' : ` (${selection.range.startLineNumber}-${selection.range.endLineNumber})`)
}
{/* {isThisSelectionAFile && currentURI?.toString() === selection.fileURI.toString() &&
<span className={`text-[8px] ml-0.5 ${isThisSelectionAddedAsCurrentFile ? 'void-opacity-60 text-void-fg-4 ' : ''}`}>
{isThisSelectionAddedAsCurrentFile && currentURI?.toString() === selection.fileURI.toString() &&
<span className={`text-[8px] ml-0.5 'void-opacity-60 text-void-fg-4`}>
{`(Current File)`}
</span>
} */}
{isThisSelectionAddedAsCurrentFile && <span className={`text-[8px] ml-0.5 'void-opacity-60 text-void-fg-4`}>
{`(Current File)`}
</span>}
}
{type === 'staging' && !isThisSelectionProspective ? // X button
<IconX