mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-04-26 08:17:20 +00:00

When uploading using a programmer, the port is ignored by the CLI. Also removed `programmer` from compile request [arduino/arduino-cli#861] Signed-off-by: Akos Kitta <kittaakos@typefox.io>
33 lines
1008 B
TypeScript
33 lines
1008 B
TypeScript
import { JsonRpcServer } from '@theia/core/lib/common/messaging/proxy-factory';
|
|
import { Programmer } from './boards-service';
|
|
|
|
export const CoreServiceClient = Symbol('CoreServiceClient');
|
|
export interface CoreServiceClient {
|
|
notifyIndexUpdated(): void;
|
|
}
|
|
|
|
export const CoreServicePath = '/services/core-service';
|
|
export const CoreService = Symbol('CoreService');
|
|
export interface CoreService extends JsonRpcServer<CoreServiceClient> {
|
|
compile(options: CoreService.Compile.Options): Promise<void>;
|
|
upload(options: CoreService.Upload.Options): Promise<void>;
|
|
}
|
|
|
|
export namespace CoreService {
|
|
|
|
export namespace Compile {
|
|
export interface Options {
|
|
readonly sketchUri: string;
|
|
readonly fqbn: string;
|
|
readonly optimizeForDebug: boolean;
|
|
}
|
|
}
|
|
|
|
export namespace Upload {
|
|
export type Options =
|
|
Compile.Options & Readonly<{ port: string }> |
|
|
Compile.Options & Readonly<{ programmer: Programmer }>;
|
|
}
|
|
|
|
}
|