提交 5d03871f 编写于 作者: S Sandeep Somavarapu

Fix #36033

上级 0a749202
......@@ -213,14 +213,16 @@ export class ExplorerView extends ViewsViewletPanel {
return this.doRefresh(targetsToExpand).then(() => {
// When the explorer viewer is loaded, listen to changes to the editor input
this.disposables.push(this.editorGroupService.onEditorsChanged(() => this.onEditorsChanged()));
this.disposables.push(this.editorGroupService.onEditorsChanged(() => this.revealActiveFile()));
// Also handle configuration updates
this.disposables.push(this.configurationService.onDidChangeConfiguration(e => this.onConfigurationUpdated(this.configurationService.getConfiguration<IFilesConfiguration>(), e)));
this.revealActiveFile();
});
}
private onEditorsChanged(): void {
private revealActiveFile(): void {
if (!this.autoReveal) {
return; // do not touch selection or focus if autoReveal === false
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册