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

Fix #46857

上级 5c6f2f92
......@@ -265,7 +265,7 @@ class CustomTreeViewer extends Disposable implements ITreeViewer {
return result.then(() => this.tree.reveal(item))
.then(() => {
if (select) {
this.tree.setSelection([item]);
this.tree.setSelection([item], { source: 'api' });
}
});
}
......@@ -287,6 +287,9 @@ class CustomTreeViewer extends Disposable implements ITreeViewer {
}
private onSelection({ payload }: any): void {
if (payload && payload.source === 'api') {
return;
}
const selection: ITreeItem = this.tree.getSelection()[0];
if (selection) {
if (selection.command) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册