提交 f07f8992 编写于 作者: I Isidor Nikolic 提交者: GitHub

Merge pull request #27645 from cleidigh/current-output-source/fix

Fix current output drop-down selected Issue #27643
......@@ -112,7 +112,10 @@ export class SwitchOutputActionItem extends SelectActionItem {
) {
super(null, action, [], 0);
this.toDispose.push(this.outputService.onOutputChannel(() => this.setOptions(this.getOptions(), this.getSelected(undefined))));
this.toDispose.push(this.outputService.onOutputChannel(() => {
const activeChannelIndex = this.getSelected(this.outputService.getActiveChannel().id);
this.setOptions(this.getOptions(), activeChannelIndex);
}));
this.toDispose.push(this.outputService.onActiveOutputChannel(activeChannelId => this.setOptions(this.getOptions(), this.getSelected(activeChannelId))));
this.toDispose.push(attachSelectBoxStyler(this.selectBox, themeService));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册