提交 4f3fccf0 编写于 作者: I isidor

explorer: do not reveal file on refresh when autoReveal = false

fixes #74851
上级 b86bdf8a
......@@ -182,7 +182,9 @@ export class ExplorerService extends Disposable implements IExplorerService {
this.model.roots.forEach(r => r.forgetChildren());
this._onDidChangeItem.fire({ recursive: true });
const resource = this.editorService.activeEditor ? this.editorService.activeEditor.getResource() : undefined;
if (resource) {
const autoReveal = this.configurationService.getValue<IFilesConfiguration>().explorer.autoReveal;
if (resource && autoReveal) {
// We did a top level refresh, reveal the active file #67118
this.select(resource, true);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册