Skip to content

Commit cc77912

Browse files
authored
remove search model building logs (microsoft#183453)
* remove search model building logs * remove unused import
1 parent 898311b commit cc77912

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

src/vs/workbench/contrib/search/browser/searchModel.ts

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import { IConfigurationService } from 'vs/platform/configuration/common/configur
2626
import { IFileService, IFileStatWithPartialMetadata } from 'vs/platform/files/common/files';
2727
import { createDecorator, IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
2828
import { ILabelService } from 'vs/platform/label/common/label';
29-
import { ILogService, LogLevel } from 'vs/platform/log/common/log';
3029
import { IProgress, IProgressStep } from 'vs/platform/progress/common/progress';
3130
import { ITelemetryService } from 'vs/platform/telemetry/common/telemetry';
3231
import { minimapFindMatch, overviewRulerFindMatchForeground } from 'vs/platform/theme/common/colorRegistry';
@@ -1276,8 +1275,7 @@ export class FolderMatchWorkspaceRoot extends FolderMatchWithResource {
12761275
@IReplaceService replaceService: IReplaceService,
12771276
@IInstantiationService instantiationService: IInstantiationService,
12781277
@ILabelService labelService: ILabelService,
1279-
@IUriIdentityService uriIdentityService: IUriIdentityService,
1280-
@ILogService private readonly _logService: ILogService
1278+
@IUriIdentityService uriIdentityService: IUriIdentityService
12811279
) {
12821280
super(_resource, _id, _index, _query, _parent, _searchModel, null, replaceService, instantiationService, labelService, uriIdentityService);
12831281
}
@@ -1317,29 +1315,15 @@ export class FolderMatchWorkspaceRoot extends FolderMatchWithResource {
13171315
const normalizedResource = this.uriIdentityService.extUri.normalizePath(this.resource);
13181316
let uri = this.normalizedUriParent(rawFileMatch.resource);
13191317

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-
13261318
while (!this.uriEquals(normalizedResource, uri)) {
13271319
fileMatchParentParts.unshift(uri);
13281320
const prevUri = uri;
13291321
uri = this.normalizedUriParent(uri);
1330-
if (this._logService.getLevel() === LogLevel.Trace) {
1331-
debug.push(`current uri parent ${uri} comparing with ${prevUri}`);
1332-
}
13331322
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}`);
13361324
}
13371325
}
13381326

1339-
if (this._logService.getLevel() === LogLevel.Trace) {
1340-
this._logService.trace(debug.join('\n\n'));
1341-
}
1342-
13431327
const root = this.closestRoot ?? this;
13441328
let parent: FolderMatch = this;
13451329
for (let i = 0; i < fileMatchParentParts.length; i++) {

0 commit comments

Comments
 (0)