mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-14 14:56:33 +00:00
updated to latest Theia, CLI, electron and node 12
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
parent
a0bbfe0b5c
commit
218aaf64c7
@ -3,9 +3,6 @@
|
|||||||
"version": "0.0.7",
|
"version": "0.0.7",
|
||||||
"description": "An extension for debugging Arduino programs",
|
"description": "An extension for debugging Arduino programs",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
|
||||||
"node": ">=10.11.0 <12"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@theia/debug": "next",
|
"@theia/debug": "next",
|
||||||
"arduino-ide-extension": "0.0.7",
|
"arduino-ide-extension": "0.0.7",
|
||||||
|
@ -3,9 +3,6 @@
|
|||||||
"version": "0.0.7",
|
"version": "0.0.7",
|
||||||
"description": "An extension for Theia building the Arduino IDE",
|
"description": "An extension for Theia building the Arduino IDE",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"engines": {
|
|
||||||
"node": ">=10.11.0 <12"
|
|
||||||
},
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prepare": "yarn download-cli && yarn download-ls && yarn run clean && yarn run build",
|
"prepare": "yarn download-cli && yarn download-ls && yarn run clean && yarn run build",
|
||||||
"clean": "rimraf lib",
|
"clean": "rimraf lib",
|
||||||
|
@ -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 path = require('path');
|
||||||
const shell = require('shelljs');
|
const shell = require('shelljs');
|
||||||
|
@ -371,16 +371,11 @@ export class ArduinoFrontendContribution implements FrontendApplicationContribut
|
|||||||
? sketchDirUri.resolve(sketchDirUri.resolve(`${sketch.name}_copy_${dateFormat(new Date(), 'yyyymmddHHMMss')}`).toString())
|
? sketchDirUri.resolve(sketchDirUri.resolve(`${sketch.name}_copy_${dateFormat(new Date(), 'yyyymmddHHMMss')}`).toString())
|
||||||
: sketchDirUri.resolve(sketch.name);
|
: sketchDirUri.resolve(sketch.name);
|
||||||
const defaultPath = await this.fileSystem.getFsPath(defaultUri.toString())!;
|
const defaultPath = await this.fileSystem.getFsPath(defaultUri.toString())!;
|
||||||
const fsPath = await new Promise<string | undefined>(resolve => {
|
const { filePath, canceled } = await remote.dialog.showSaveDialog({ title: 'Save sketch folder as...', defaultPath });
|
||||||
remote.dialog.showSaveDialog({
|
if (!filePath || canceled) {
|
||||||
title: 'Save sketch folder as...',
|
|
||||||
defaultPath
|
|
||||||
}, (filename) => resolve(filename));
|
|
||||||
});
|
|
||||||
if (!fsPath) { // Canceled
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const destinationUri = await this.fileSystemExt.getUri(fsPath);
|
const destinationUri = await this.fileSystemExt.getUri(filePath);
|
||||||
if (!destinationUri) {
|
if (!destinationUri) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,9 @@
|
|||||||
"author": "Arduino SA",
|
"author": "Arduino SA",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10.11.0 <13"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@theia/cli": "next",
|
"@theia/cli": "next",
|
||||||
"cross-env": "^7.0.2",
|
"cross-env": "^7.0.2",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user