mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-10 05:28:19 -05:00
Fix tests -
Remove OutputService reference from SearchService, this should be handled elsewhere
This commit is contained in:
@@ -22,8 +22,6 @@ import { ISearchChannel, SearchChannelClient } from './searchIpc';
|
||||
import { IEnvironmentService } from 'vs/platform/environment/common/environment';
|
||||
import { ResourceMap } from 'vs/base/common/map';
|
||||
|
||||
import { IOutputService } from 'vs/workbench/parts/output/common/output';
|
||||
|
||||
export class SearchService implements ISearchService {
|
||||
public _serviceBrand: any;
|
||||
|
||||
@@ -34,8 +32,7 @@ export class SearchService implements ISearchService {
|
||||
@IUntitledEditorService private untitledEditorService: IUntitledEditorService,
|
||||
@IEnvironmentService environmentService: IEnvironmentService,
|
||||
@IWorkspaceContextService private contextService: IWorkspaceContextService,
|
||||
@IConfigurationService private configurationService: IConfigurationService,
|
||||
@IOutputService private outputService: IOutputService
|
||||
@IConfigurationService private configurationService: IConfigurationService
|
||||
) {
|
||||
this.diskSearch = new DiskSearch(!environmentService.isBuilt || environmentService.verbose);
|
||||
}
|
||||
@@ -76,7 +73,6 @@ export class SearchService implements ISearchService {
|
||||
// Allow caller to register progress callback
|
||||
process.nextTick(() => localResults.values().filter((res) => !!res).forEach(onProgress));
|
||||
|
||||
const outputChannel = this.outputService.getChannel('search');
|
||||
rawSearchQuery = searchP.then(
|
||||
|
||||
// on Complete
|
||||
@@ -103,11 +99,6 @@ export class SearchService implements ISearchService {
|
||||
}
|
||||
}
|
||||
|
||||
// Log
|
||||
else if (progress.message) {
|
||||
outputChannel.append(progress.message);
|
||||
}
|
||||
|
||||
// Progress
|
||||
else {
|
||||
onProgress(<IProgress>progress);
|
||||
|
||||
@@ -30,9 +30,6 @@ import { IConfigurationService } from 'vs/platform/configuration/common/configur
|
||||
import { ModelServiceImpl } from 'vs/editor/common/services/modelServiceImpl';
|
||||
import { IModelService } from 'vs/editor/common/services/modelService';
|
||||
|
||||
import { IOutputService } from 'vs/workbench/parts/output/common/output';
|
||||
import { OutputService } from "vs/workbench/parts/output/browser/outputServices";
|
||||
|
||||
import { SearchModel } from 'vs/workbench/parts/search/common/searchModel';
|
||||
import { QueryBuilder } from 'vs/workbench/parts/search/common/searchQuery';
|
||||
|
||||
@@ -70,7 +67,6 @@ suite('TextSearch performance (integration)', () => {
|
||||
[IEditorGroupService, new TestEditorGroupService()],
|
||||
[IEnvironmentService, TestEnvironmentService],
|
||||
[IUntitledEditorService, createSyncDescriptor(UntitledEditorService)],
|
||||
[IOutputService, createSyncDescriptor(OutputService)],
|
||||
[ISearchService, createSyncDescriptor(SearchService)]
|
||||
));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user