mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-09 02:18:32 +00:00
Use service to load sketches
Signed-off-by: jbicker <jan.bicker@typefox.io>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { FileStat } from "@theia/filesystem/lib/common";
|
||||
|
||||
export const SketchesServicePath = '/services/sketches-service';
|
||||
export const SketchesService = Symbol('SketchesService');
|
||||
export interface SketchesService {
|
||||
getSketches(fileStat?: FileStat): Promise<Sketch[]>
|
||||
getSketchFiles(fileStat: FileStat): Promise<string[]>
|
||||
}
|
||||
|
||||
export interface Sketch {
|
||||
name: string;
|
||||
uri: string
|
||||
}
|
||||
Reference in New Issue
Block a user