6
6
import * as dom from '../../../../../base/browser/dom.js' ;
7
7
import { StandardKeyboardEvent } from '../../../../../base/browser/keyboardEvent.js' ;
8
8
import { StandardMouseEvent } from '../../../../../base/browser/mouseEvent.js' ;
9
- import { Codicon } from '../../../../../base/common/codicons.js' ;
10
9
import { KeyCode } from '../../../../../base/common/keyCodes.js' ;
11
10
import { Disposable , DisposableStore } from '../../../../../base/common/lifecycle.js' ;
12
11
import { Schemas } from '../../../../../base/common/network.js' ;
13
12
import { basename , dirname } from '../../../../../base/common/resources.js' ;
14
- import { ThemeIcon } from '../../../../../base/common/themables.js' ;
15
13
import { URI } from '../../../../../base/common/uri.js' ;
16
14
import { ILanguageService } from '../../../../../editor/common/languages/language.js' ;
17
15
import { IModelService } from '../../../../../editor/common/services/model.js' ;
@@ -61,9 +59,7 @@ export class ImplicitContextAttachmentWidget extends Disposable {
61
59
const file = URI . isUri ( this . attachment . value ) ? this . attachment . value : this . attachment . value ! . uri ;
62
60
const range = undefined ;
63
61
64
- const attachmentTypeName = ( this . attachment . isPromptFile === false )
65
- ? file . scheme === Schemas . vscodeNotebookCell ? localize ( 'cell.lowercase' , "cell" ) : localize ( 'file.lowercase' , "file" )
66
- : localize ( 'prompt.lowercase' , "prompt" ) ;
62
+ const attachmentTypeName = file . scheme === Schemas . vscodeNotebookCell ? localize ( 'cell.lowercase' , "cell" ) : localize ( 'file.lowercase' , "file" ) ;
67
63
68
64
const fileBasename = basename ( file ) ;
69
65
const fileDirname = dirname ( file ) ;
@@ -74,16 +70,11 @@ export class ImplicitContextAttachmentWidget extends Disposable {
74
70
const currentFile = localize ( 'openEditor' , "Suggested context (current file)" ) ;
75
71
const title = `${ currentFile } \n${ uriLabel } ` ;
76
72
77
- const icon = this . attachment . isPromptFile
78
- ? ThemeIcon . fromId ( Codicon . bookmark . id )
79
- : undefined ;
80
-
81
73
label . setFile ( file , {
82
74
fileKind : FileKind . FILE ,
83
75
hidePath : true ,
84
76
range,
85
- title,
86
- icon,
77
+ title
87
78
} ) ;
88
79
this . domNode . ariaLabel = ariaLabel ;
89
80
this . domNode . tabIndex = 0 ;
0 commit comments