提交 470bc088 编写于 作者: R Rob Lourens

Fix errors thrown when opening search results in non-code-editors

上级 87c0080c
......@@ -1657,7 +1657,7 @@ export class SearchView extends ViewPane {
revealIfVisible: true
}
}, sideBySide ? SIDE_GROUP : ACTIVE_GROUP).then(editor => {
if (editor && element instanceof Match && preserveFocus) {
if (element instanceof Match && preserveFocus && isCodeEditor(editor)) {
this.viewModel.searchResult.rangeHighlightDecorations.highlightRange(
(<ICodeEditor>editor.getControl()).getModel()!,
element.range()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册