提交 93399263 编写于 作者: S Sandeep Somavarapu

Find in Folder: Null check guard

上级 367eef84
......@@ -670,7 +670,12 @@ export class SearchViewlet extends Viewlet {
}
public searchInFolder(resource: URI): void {
if (this.contextService.getWorkspace().resource.toString() === resource.toString()) {
const workspace = this.contextService.getWorkspace();
if (!workspace) {
return;
}
if (workspace.resource.toString() === resource.toString()) {
this.inputPatternIncludes.setValue('');
this.searchWidget.focus();
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册