@@ -26,7 +26,6 @@ import { IConfigurationService } from 'vs/platform/configuration/common/configur
26
26
import { IFileService , IFileStatWithPartialMetadata } from 'vs/platform/files/common/files' ;
27
27
import { createDecorator , IInstantiationService } from 'vs/platform/instantiation/common/instantiation' ;
28
28
import { ILabelService } from 'vs/platform/label/common/label' ;
29
- import { ILogService , LogLevel } from 'vs/platform/log/common/log' ;
30
29
import { IProgress , IProgressStep } from 'vs/platform/progress/common/progress' ;
31
30
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry' ;
32
31
import { minimapFindMatch , overviewRulerFindMatchForeground } from 'vs/platform/theme/common/colorRegistry' ;
@@ -1276,8 +1275,7 @@ export class FolderMatchWorkspaceRoot extends FolderMatchWithResource {
1276
1275
@IReplaceService replaceService : IReplaceService ,
1277
1276
@IInstantiationService instantiationService : IInstantiationService ,
1278
1277
@ILabelService labelService : ILabelService ,
1279
- @IUriIdentityService uriIdentityService : IUriIdentityService ,
1280
- @ILogService private readonly _logService : ILogService
1278
+ @IUriIdentityService uriIdentityService : IUriIdentityService
1281
1279
) {
1282
1280
super ( _resource , _id , _index , _query , _parent , _searchModel , null , replaceService , instantiationService , labelService , uriIdentityService ) ;
1283
1281
}
@@ -1317,29 +1315,15 @@ export class FolderMatchWorkspaceRoot extends FolderMatchWithResource {
1317
1315
const normalizedResource = this . uriIdentityService . extUri . normalizePath ( this . resource ) ;
1318
1316
let uri = this . normalizedUriParent ( rawFileMatch . resource ) ;
1319
1317
1320
- const debug : string [ ] = [ '[search model building]' ] ;
1321
-
1322
- if ( this . _logService . getLevel ( ) === LogLevel . Trace ) {
1323
- debug . push ( `Starting with normalized resource ${ normalizedResource } ` ) ;
1324
- }
1325
-
1326
1318
while ( ! this . uriEquals ( normalizedResource , uri ) ) {
1327
1319
fileMatchParentParts . unshift ( uri ) ;
1328
1320
const prevUri = uri ;
1329
1321
uri = this . normalizedUriParent ( uri ) ;
1330
- if ( this . _logService . getLevel ( ) === LogLevel . Trace ) {
1331
- debug . push ( `current uri parent ${ uri } comparing with ${ prevUri } ` ) ;
1332
- }
1333
1322
if ( this . uriEquals ( prevUri , uri ) ) {
1334
- this . _logService . trace ( debug . join ( '\n\n' ) ) ;
1335
- throw Error ( `${ rawFileMatch . resource } is not correctly configured as a child of its ${ normalizedResource } ` ) ;
1323
+ throw Error ( `${ rawFileMatch . resource } is not correctly configured as a child of ${ normalizedResource } ` ) ;
1336
1324
}
1337
1325
}
1338
1326
1339
- if ( this . _logService . getLevel ( ) === LogLevel . Trace ) {
1340
- this . _logService . trace ( debug . join ( '\n\n' ) ) ;
1341
- }
1342
-
1343
1327
const root = this . closestRoot ?? this ;
1344
1328
let parent : FolderMatch = this ;
1345
1329
for ( let i = 0 ; i < fileMatchParentParts . length ; i ++ ) {
0 commit comments