Use service to load sketches

Signed-off-by: jbicker <jan.bicker@typefox.io>
This commit is contained in:
jbicker
2019-06-18 18:14:59 +02:00
parent 0c937212e2
commit 9d3cbf2ea0
6 changed files with 162 additions and 41 deletions

View File

@@ -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
}