@@ -33,9 +33,7 @@ import { EditorOptions } from '../../../../editor/common/config/editorOptions.js
33
33
import { IDimension } from '../../../../editor/common/core/dimension.js' ;
34
34
import { IPosition } from '../../../../editor/common/core/position.js' ;
35
35
import { IRange , Range } from '../../../../editor/common/core/range.js' ;
36
- import { ILanguageService } from '../../../../editor/common/languages/language.js' ;
37
36
import { ITextModel } from '../../../../editor/common/model.js' ;
38
- import { getIconClasses } from '../../../../editor/common/services/getIconClasses.js' ;
39
37
import { IModelService } from '../../../../editor/common/services/model.js' ;
40
38
import { ITextModelService } from '../../../../editor/common/services/resolverService.js' ;
41
39
import { CopyPasteController } from '../../../../editor/contrib/dropOrPasteInto/browser/copyPasteController.js' ;
@@ -337,7 +335,6 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
337
335
getContribsInputState : ( ) => any ,
338
336
@IChatWidgetHistoryService private readonly historyService : IChatWidgetHistoryService ,
339
337
@IModelService private readonly modelService : IModelService ,
340
- @ILanguageService private readonly languageService : ILanguageService ,
341
338
@IInstantiationService private readonly instantiationService : IInstantiationService ,
342
339
@IContextKeyService private readonly contextKeyService : IContextKeyService ,
343
340
@IConfigurationService private readonly configurationService : IConfigurationService ,
@@ -729,8 +726,8 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
729
726
dom . h ( '.chat-input-container@inputContainer' , [
730
727
dom . h ( '.chat-attachments-container@attachmentsContainer' , [
731
728
dom . h ( '.chat-attachment-toolbar@attachmentToolbar' ) ,
732
- dom . h ( '.chat-attached-context@attachedContextContainer' ) ,
733
729
dom . h ( '.chat-related-files@relatedFilesContainer' ) ,
730
+ dom . h ( '.chat-attached-context@attachedContextContainer' ) ,
734
731
] ) ,
735
732
dom . h ( '.chat-editor-container@editorContainer' ) ,
736
733
dom . h ( '.chat-input-toolbars@inputToolbars' ) ,
@@ -1422,7 +1419,7 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
1422
1419
hoverDelegate
1423
1420
} ) ) ;
1424
1421
uriLabel . label = this . labelService . getUriBasenameLabel ( uri ) ;
1425
- uriLabel . element . classList . add ( 'monaco-icon-label' , ... getIconClasses ( this . modelService , this . languageService , uri , FileKind . FILE ) ) ;
1422
+ uriLabel . element . classList . add ( 'monaco-icon-label' ) ;
1426
1423
uriLabel . element . title = localize ( 'suggeste.title' , "{0} - {1}" , this . labelService . getUriLabel ( uri , { relative : true } ) , metadata . description ?? '' ) ;
1427
1424
1428
1425
this . _chatEditsActionsDisposables . add ( uriLabel . onDidClick ( ( ) => {
@@ -1449,10 +1446,10 @@ export class ChatInputPart extends Disposable implements IHistoryNavigationWidge
1449
1446
sep . classList . add ( 'separator' ) ;
1450
1447
1451
1448
const group = document . createElement ( 'span' ) ;
1452
- group . classList . add ( 'monaco-button-dropdown' , 'sidebyside-button' , 'show-file-icons' ) ;
1453
- group . appendChild ( uriLabel . element ) ;
1454
- group . appendChild ( sep ) ;
1449
+ group . classList . add ( 'monaco-button-dropdown' , 'sidebyside-button' ) ;
1455
1450
group . appendChild ( addButton . element ) ;
1451
+ group . appendChild ( sep ) ;
1452
+ group . appendChild ( uriLabel . element ) ;
1456
1453
dom . append ( anchor , group ) ;
1457
1454
1458
1455
this . _chatEditsActionsDisposables . add ( toDisposable ( ( ) => {
0 commit comments