Revert "Merge pull request #109049 from digeff/searchView/context/extensionPoints"

This reverts commit a1bb5ac207, reversing
changes made to 9a08a10708.
This commit is contained in:
Alex Dima
2020-11-11 09:46:47 +01:00
parent 31c034604e
commit 14140d2a19
8 changed files with 10 additions and 149 deletions

View File

@@ -14,7 +14,6 @@ import { ILogService } from 'vs/platform/log/common/log';
import { IRawFileQuery, ISearchCompleteStats, IFileQuery, IRawTextQuery, IRawQuery, ITextQuery, IFolderQuery } from 'vs/workbench/services/search/common/search';
import { URI, UriComponents } from 'vs/base/common/uri';
import { TextSearchManager } from 'vs/workbench/services/search/common/textSearchManager';
import { ExtHostCommands } from 'vs/workbench/api/common/extHostCommands';
export interface IExtHostSearch extends ExtHostSearchShape {
registerTextSearchProvider(scheme: string, provider: vscode.TextSearchProvider): IDisposable;
@@ -38,27 +37,8 @@ export class ExtHostSearch implements ExtHostSearchShape {
constructor(
@IExtHostRpcService private extHostRpc: IExtHostRpcService,
@IURITransformerService protected _uriTransformer: IURITransformerService,
@ILogService protected _logService: ILogService,
commands: ExtHostCommands,
) {
commands.registerArgumentProcessor({
processArgument: arg => {
if (arg && Array.isArray(arg)) {
return arg.map(matchContext => {
if (matchContext.$mid === 13 /* SearchViewContextMid */) {
const filteredProperties = { ...matchContext };
delete filteredProperties.renderableMatch;
return filteredProperties;
} else {
return matchContext;
}
});
} else {
return arg;
}
}
});
}
@ILogService protected _logService: ILogService
) { }
protected _transformScheme(scheme: string): string {
return this._uriTransformer.transformOutgoingScheme(scheme);