mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-14 12:11:43 +01:00
fix #9442
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user