updated to latest Theia, CLI, electron and node 12

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta 2020-07-17 09:41:02 +02:00
parent a0bbfe0b5c
commit 218aaf64c7
6 changed files with 848 additions and 583 deletions

View File

@ -3,9 +3,6 @@
"version": "0.0.7",
"description": "An extension for debugging Arduino programs",
"license": "MIT",
"engines": {
"node": ">=10.11.0 <12"
},
"dependencies": {
"@theia/debug": "next",
"arduino-ide-extension": "0.0.7",

View File

@ -3,9 +3,6 @@
"version": "0.0.7",
"description": "An extension for Theia building the Arduino IDE",
"license": "MIT",
"engines": {
"node": ">=10.11.0 <12"
},
"scripts": {
"prepare": "yarn download-cli && yarn download-ls && yarn run clean && yarn run build",
"clean": "rimraf lib",

View File

@ -10,7 +10,7 @@
(() => {
const DEFAULT_VERSION = '0.11.0'; // require('moment')().format('YYYYMMDD');
const DEFAULT_VERSION = '0.11.0-rc1-62-g72c9655f'; // require('moment')().format('YYYYMMDD');
const path = require('path');
const shell = require('shelljs');

View File

@ -371,16 +371,11 @@ export class ArduinoFrontendContribution implements FrontendApplicationContribut
? sketchDirUri.resolve(sketchDirUri.resolve(`${sketch.name}_copy_${dateFormat(new Date(), 'yyyymmddHHMMss')}`).toString())
: sketchDirUri.resolve(sketch.name);
const defaultPath = await this.fileSystem.getFsPath(defaultUri.toString())!;
const fsPath = await new Promise<string | undefined>(resolve => {
remote.dialog.showSaveDialog({
title: 'Save sketch folder as...',
defaultPath
}, (filename) => resolve(filename));
});
if (!fsPath) { // Canceled
const { filePath, canceled } = await remote.dialog.showSaveDialog({ title: 'Save sketch folder as...', defaultPath });
if (!filePath || canceled) {
return;
}
const destinationUri = await this.fileSystemExt.getUri(fsPath);
const destinationUri = await this.fileSystemExt.getUri(filePath);
if (!destinationUri) {
return;
}

View File

@ -6,6 +6,9 @@
"author": "Arduino SA",
"license": "MIT",
"private": true,
"engines": {
"node": ">=10.11.0 <13"
},
"devDependencies": {
"@theia/cli": "next",
"cross-env": "^7.0.2",

1409
yarn.lock

File diff suppressed because it is too large Load Diff