mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
improvements
This commit is contained in:
parent
0dae638be7
commit
2ae098ee96
2 changed files with 6 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue