From e388c734f30757875976c7e326d6cfeee77710de Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Tue, 19 Mar 2019 08:39:19 -0700 Subject: [PATCH] Allow searching in non-file scheme --- src/vs/workbench/services/search/node/searchService.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/vs/workbench/services/search/node/searchService.ts b/src/vs/workbench/services/search/node/searchService.ts index 727af85af36..88516940b5f 100644 --- a/src/vs/workbench/services/search/node/searchService.ts +++ b/src/vs/workbench/services/search/node/searchService.ts @@ -29,6 +29,7 @@ import { IUntitledEditorService } from 'vs/workbench/services/untitled/common/un import { SearchChannelClient } from './searchIpc'; import { IConfigurationService } from 'vs/platform/configuration/common/configuration'; import { registerSingleton } from 'vs/platform/instantiation/common/extensions'; +import { REMOTE_HOST_SCHEME } from 'vs/platform/remote/common/remoteHosts'; export class SearchService extends Disposable implements ISearchService { _serviceBrand: any; @@ -374,11 +375,8 @@ export class SearchService extends Disposable implements ISearchService { } } - // Don't support other resource schemes than files for now - // todo@remote - // why is that? we should search for resources from other - // schemes - else if (resource.scheme !== Schemas.file) { + // Block walkthrough, webview, etc. + else if (resource.scheme !== Schemas.file && resource.scheme !== REMOTE_HOST_SCHEME) { return; }