mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-16 13:49:28 +00:00
zen mode for the output
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
@@ -1,16 +1,22 @@
|
||||
import { JsonRpcServer } from "@theia/core";
|
||||
import { JsonRpcServer } from '@theia/core';
|
||||
|
||||
export const ToolOutputServiceServer = Symbol("ToolOutputServiceServer");
|
||||
export interface ToolOutputMessage {
|
||||
readonly tool: string;
|
||||
readonly chunk: string;
|
||||
readonly severity?: 'error' | 'warning' | 'info';
|
||||
}
|
||||
|
||||
export const ToolOutputServiceServer = Symbol('ToolOutputServiceServer');
|
||||
export interface ToolOutputServiceServer extends JsonRpcServer<ToolOutputServiceClient> {
|
||||
publishNewOutput(tool: string, chunk: string): void;
|
||||
append(message: ToolOutputMessage): void;
|
||||
disposeClient(client: ToolOutputServiceClient): void;
|
||||
}
|
||||
|
||||
export const ToolOutputServiceClient = Symbol("ToolOutputServiceClient");
|
||||
export const ToolOutputServiceClient = Symbol('ToolOutputServiceClient');
|
||||
export interface ToolOutputServiceClient {
|
||||
onNewOutput(tool: string, chunk: string): void;
|
||||
onMessageReceived(message: ToolOutputMessage): void;
|
||||
}
|
||||
|
||||
export namespace ToolOutputService {
|
||||
export const SERVICE_PATH = "/tool-output-service";
|
||||
export const SERVICE_PATH = '/tool-output-service';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user