Skip to content

Commit

Permalink
Settings editor - enable settings in new extensions #49474
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Aug 17, 2018
1 parent b538f1e commit 350efab
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,12 @@ export class SettingsEditor2 extends BaseEditor {

private remoteSearchPreferences(query: string, token?: CancellationToken): TPromise<void> {
const remoteSearchProvider = this.preferencesSearchService.getRemoteSearchProvider(query);
return this.filterOrSearchPreferences(query, SearchResultIdx.Remote, remoteSearchProvider, token);
const newExtSearchProvider = this.preferencesSearchService.getRemoteSearchProvider(query, true);

return TPromise.join([
this.filterOrSearchPreferences(query, SearchResultIdx.Remote, remoteSearchProvider, token),
this.filterOrSearchPreferences(query, SearchResultIdx.NewExtensions, newExtSearchProvider, token)
]).then(() => { });
}

private filterOrSearchPreferences(query: string, type: SearchResultIdx, searchProvider: ISearchProvider, token?: CancellationToken): TPromise<void> {
Expand Down

0 comments on commit 350efab

Please sign in to comment.