Skip to content

Commit 121bf25

Browse files
authored
fix implicit context hover (#251738)
fix implicit context hover)
1 parent 3651859 commit 121bf25

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/vs/workbench/contrib/chat/browser/attachments/implicitContextAttachment.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ export class ImplicitContextAttachmentWidget extends Disposable {
6666
const ariaLabel = range ? localize('chat.fileAttachmentWithRange', "Attached {0}, {1}, line {2} to line {3}", attachmentTypeName, friendlyName, range.startLineNumber, range.endLineNumber) : localize('chat.fileAttachment', "Attached {0}, {1}", attachmentTypeName, friendlyName);
6767

6868
const uriLabel = this.labelService.getUriLabel(file, { relative: true });
69-
const currentFile = localize('openEditor', "Suggested context (current file)");
70-
const title = `${currentFile}\n${uriLabel}`;
69+
const currentFile = localize('openEditor', "Current {0} context", attachmentTypeName);
70+
const inactive = localize('enableHint', "disabled");
71+
const currentFileHint = currentFile + (this.attachment.enabled ? '' : ` (${inactive})`);
72+
const title = `${currentFileHint}\n${uriLabel}`;
7173

7274
label.setFile(file, {
7375
fileKind: FileKind.FILE,

0 commit comments

Comments
 (0)