Add temp registerSearchProvider stub

to avoid breaking live share in Insiders
This commit is contained in:
Rob Lourens 2018-07-26 21:29:40 -07:00
parent a9589652c1
commit c348736137
2 changed files with 9 additions and 0 deletions

View file

@ -225,6 +225,11 @@ declare module 'vscode' {
}
export namespace workspace {
/**
* DEPRECATED
*/
export function registerSearchProvider(): Disposable;
/**
* Register a search provider.
*

View file

@ -585,6 +585,10 @@ export function createApiFactory(
registerFileSearchProvider: proposedApiFunction(extension, (scheme, provider) => {
return extHostSearch.registerFileSearchProvider(scheme, provider);
}),
registerSearchProvider: proposedApiFunction(extension, () => {
// Temp for live share in Insiders
return { dispose: () => { } };
}),
registerTextSearchProvider: proposedApiFunction(extension, (scheme, provider) => {
return extHostSearch.registerTextSearchProvider(scheme, provider);
}),