提交 710f0749 编写于 作者: S Sandeep Somavarapu

fix #9442

上级 dfa1a208
......@@ -69,7 +69,8 @@ export class Controller extends treedefaults.DefaultController {
endColumn: marker.endColumn
},
preserveFocus,
pinned
pinned,
revealIfVisible: true
},
}, sideByside).done(null, errors.onUnexpectedError);
return true;
......
......@@ -177,7 +177,7 @@ export class ReplaceService implements IReplaceService {
public openReplacePreviewEditor(element: FileMatchOrMatch, preserveFocus?: boolean, sideBySide?: boolean, pinned?: boolean): TPromise<any> {
this.telemetryService.publicLog('replace.open.previewEditor');
return this.getInput(element instanceof Match ? element.parent() : element).then((editorInput) => {
this.editorService.openEditor(editorInput, {preserveFocus, pinned}).then((editor) => {
this.editorService.openEditor(editorInput, {preserveFocus, pinned, revealIfVisible: true}).then((editor) => {
let editorControl= (<IDiffEditor>editor.getControl());
if (element instanceof Match) {
editorControl.revealLineInCenter(element.range().startLineNumber);
......
......@@ -912,7 +912,8 @@ export class SearchViewlet extends Viewlet {
options: {
preserveFocus,
pinned,
selection
selection,
revealIfVisible: true
}
}, sideBySide);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册