ATL-93: Added Support for .pde sketch file format.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta
2021-01-29 13:45:21 +01:00
committed by Akos Kitta
parent b1ab6df8b7
commit 52b0fd35a3
9 changed files with 81 additions and 276 deletions

View File

@@ -122,7 +122,7 @@ export class OpenSketch extends SketchContribution {
filters: [
{
name: 'Sketch',
extensions: ['ino']
extensions: ['ino', 'pde']
}
]
});
@@ -138,7 +138,7 @@ export class OpenSketch extends SketchContribution {
if (sketch) {
return sketch;
}
if (sketchFileUri.endsWith('.ino')) {
if (Sketch.isSketchFile(sketchFileUri)) {
const name = new URI(sketchFileUri).path.name;
const nameWithExt = this.labelProvider.getName(new URI(sketchFileUri));
const { response } = await remote.dialog.showMessageBox({