Use './' syntax for "Find in files", #18334

This commit is contained in:
Rob Lourens
2017-04-21 14:37:55 -07:00
parent 7b7409e680
commit e2cb2f8fba

View File

@@ -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);
}
}