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

Fix #20103

上级 516d8939
......@@ -123,8 +123,8 @@ export class Controller extends treedefaults.DefaultController {
pinned,
revealIfVisible: true
},
}, sideByside).done((editor) => {
if (preserveFocus) {
}, sideByside).done(editor => {
if (editor && preserveFocus) {
this.rangeHighlightDecorations.highlightRange(marker, <ICommonCodeEditor>editor.getControl());
} else {
this.rangeHighlightDecorations.removeHighlightRange();
......
......@@ -1192,8 +1192,8 @@ export class SearchViewlet extends Viewlet {
selection,
revealIfVisible: true
}
}, sideBySide).then((editor) => {
if (element instanceof Match && preserveFocus) {
}, sideBySide).then(editor => {
if (editor && element instanceof Match && preserveFocus) {
this.viewModel.searchResult.rangeHighlightDecorations.highlightRange({
resource,
range: element.range()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册