diff --git a/src/vs/workbench/parts/search/browser/searchViewlet.ts b/src/vs/workbench/parts/search/browser/searchViewlet.ts index c6bfd87c8f1..66630da7639 100644 --- a/src/vs/workbench/parts/search/browser/searchViewlet.ts +++ b/src/vs/workbench/parts/search/browser/searchViewlet.ts @@ -892,7 +892,7 @@ export class SearchViewlet extends Viewlet { const workspaceRelativePath = this.contextService.toWorkspaceRelativePath(resource); if (workspaceRelativePath) { this.inputPatternIncludes.setIsGlobPattern(false); - this.inputPatternIncludes.setValue(workspaceRelativePath); + this.inputPatternIncludes.setValue('./' + workspaceRelativePath); this.searchWidget.focus(false); } }