Skip to content

Commit

Permalink
Add null checks for undefined include/exclude patterns in search view (
Browse files Browse the repository at this point in the history
  • Loading branch information
corivera authored Feb 20, 2024
1 parent 3ba2110 commit a9afb63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/search/browser/searchView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1827,7 +1827,7 @@ export class SearchView extends ViewPane {
this.keybindingService.lookupKeybinding(Constants.OpenInEditorCommandId));
const openInEditorButton = this.messageDisposables.add(new SearchLinkButton(
nls.localize('openInEditor.message', "Open in editor"),
() => this.instantiationService.invokeFunction(createEditorFromSearchResult, this.searchResult, this.searchIncludePattern.getValue(), this.searchExcludePattern.getValue(), this.searchIncludePattern.onlySearchInOpenEditors()),
() => this.instantiationService.invokeFunction(createEditorFromSearchResult, this.searchResult, this.searchIncludePattern?.getValue(), this.searchExcludePattern?.getValue(), this.searchIncludePattern?.onlySearchInOpenEditors()), // {{SQL CARBON EDIT}} Check for undefined patterns
openInEditorTooltip));
dom.append(messageEl, openInEditorButton.element);
}
Expand Down

0 comments on commit a9afb63

Please sign in to comment.