4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
6
import * as dom from 'vs/base/browser/dom' ;
7
- import * as network from 'vs/base/common/network' ;
8
7
import * as paths from 'vs/base/common/path' ;
9
8
import { CountBadge } from 'vs/base/browser/ui/countBadge/countBadge' ;
10
9
import { ResourceLabels , IResourceLabel } from 'vs/workbench/browser/labels' ;
@@ -18,7 +17,7 @@ import { IDisposable, dispose, Disposable, toDisposable, DisposableStore } from
18
17
import { ActionBar } from 'vs/base/browser/ui/actionbar/actionbar' ;
19
18
import { QuickFixAction , QuickFixActionViewItem } from 'vs/workbench/contrib/markers/browser/markersViewActions' ;
20
19
import { ILabelService } from 'vs/platform/label/common/label' ;
21
- import { dirname , basename , isEqual } from 'vs/base/common/resources' ;
20
+ import { basename , isEqual } from 'vs/base/common/resources' ;
22
21
import { IListVirtualDelegate } from 'vs/base/browser/ui/list/list' ;
23
22
import { ITreeFilter , TreeVisibility , TreeFilterResult , ITreeRenderer , ITreeNode } from 'vs/base/browser/ui/tree/tree' ;
24
23
import { FilterOptions } from 'vs/workbench/contrib/markers/browser/markersFilterOptions' ;
@@ -39,7 +38,6 @@ import { IEditorService, ACTIVE_GROUP } from 'vs/workbench/services/editor/commo
39
38
import { SeverityIcon } from 'vs/platform/severityIcon/browser/severityIcon' ;
40
39
import { CodeActionTriggerType } from 'vs/editor/common/languages' ;
41
40
import { IOpenerService } from 'vs/platform/opener/common/opener' ;
42
- import { IFileService } from 'vs/platform/files/common/files' ;
43
41
import { Progress } from 'vs/platform/progress/common/progress' ;
44
42
import { ActionViewItem } from 'vs/base/browser/ui/actionbar/actionViewItems' ;
45
43
import { Codicon } from 'vs/base/common/codicons' ;
@@ -159,8 +157,6 @@ export class ResourceMarkersRenderer implements ITreeRenderer<ResourceMarkers, R
159
157
constructor (
160
158
private labels : ResourceLabels ,
161
159
onDidChangeRenderNodeCount : Event < ITreeNode < ResourceMarkers , ResourceMarkersFilterData > > ,
162
- @ILabelService private readonly labelService : ILabelService ,
163
- @IFileService private readonly fileService : IFileService
164
160
) {
165
161
onDidChangeRenderNodeCount ( this . onDidChangeRenderNodeCount , this , this . disposables ) ;
166
162
}
@@ -181,11 +177,7 @@ export class ResourceMarkersRenderer implements ITreeRenderer<ResourceMarkers, R
181
177
const resourceMarkers = node . element ;
182
178
const uriMatches = node . filterData && node . filterData . uriMatches || [ ] ;
183
179
184
- if ( this . fileService . hasProvider ( resourceMarkers . resource ) || resourceMarkers . resource . scheme === network . Schemas . untitled ) {
185
- templateData . resourceLabel . setFile ( resourceMarkers . resource , { matches : uriMatches } ) ;
186
- } else {
187
- templateData . resourceLabel . setResource ( { name : resourceMarkers . name , description : this . labelService . getUriLabel ( dirname ( resourceMarkers . resource ) , { relative : true } ) , resource : resourceMarkers . resource } , { matches : uriMatches } ) ;
188
- }
180
+ templateData . resourceLabel . setFile ( resourceMarkers . resource , { matches : uriMatches } ) ;
189
181
190
182
this . updateCount ( node , templateData ) ;
191
183
const nodeRenders = this . renderedNodes . get ( resourceMarkers ) ?? [ ] ;
0 commit comments