mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-10-09 19:38:32 +00:00

- Merged the Arduino channels into one, - Removed the channel selector dropdown from the UI. Closes arduino/arduino-pro-ide#421. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
23 lines
786 B
TypeScript
23 lines
786 B
TypeScript
import { inject, injectable } from 'inversify';
|
|
import { OutputContribution } from '@theia/output/lib/browser/output-contribution';
|
|
import { OutputChannelManager } from '@theia/output/lib/common/output-channel';
|
|
import { OutputService, OutputMessage } from '../common/protocol/output-service';
|
|
|
|
@injectable()
|
|
export class OutputServiceImpl implements OutputService {
|
|
|
|
@inject(OutputContribution)
|
|
protected outputContribution: OutputContribution;
|
|
|
|
@inject(OutputChannelManager)
|
|
protected outputChannelManager: OutputChannelManager;
|
|
|
|
append(message: OutputMessage): void {
|
|
const { chunk } = message;
|
|
const channel = this.outputChannelManager.getChannel(`Arduino`);
|
|
channel.show({ preserveFocus: true });
|
|
channel.append(chunk);
|
|
}
|
|
|
|
}
|