mirror of
https://github.com/hanzoai/code.git
synced 2026-09-30 20:53:35 +00:00
improvements
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user