mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-09 12:26:34 +00:00
commit
d5c7d3a8ed
@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "arduino-debugger-extension",
|
"name": "arduino-debugger-extension",
|
||||||
"version": "0.0.7",
|
"version": "0.1.0",
|
||||||
"description": "An extension for debugging Arduino programs",
|
"description": "An extension for debugging Arduino programs",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@theia/debug": "next",
|
"@theia/debug": "next",
|
||||||
"arduino-ide-extension": "0.0.7",
|
"arduino-ide-extension": "0.1.0",
|
||||||
"cdt-gdb-adapter": "^0.0.14",
|
"cdt-gdb-adapter": "^0.0.14",
|
||||||
"vscode-debugadapter": "^1.26.0",
|
"vscode-debugadapter": "^1.26.0",
|
||||||
"vscode-debugprotocol": "^1.26.0"
|
"vscode-debugprotocol": "^1.26.0"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "arduino-ide-extension",
|
"name": "arduino-ide-extension",
|
||||||
"version": "0.0.7",
|
"version": "0.1.0",
|
||||||
"description": "An extension for Theia building the Arduino IDE",
|
"description": "An extension for Theia building the Arduino IDE",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
(() => {
|
(() => {
|
||||||
|
|
||||||
const DEFAULT_VERSION = '0.12.0-rc2'; // require('moment')().format('YYYYMMDD');
|
const DEFAULT_VERSION = '0.12.0'; // require('moment')().format('YYYYMMDD');
|
||||||
|
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const shell = require('shelljs');
|
const shell = require('shelljs');
|
||||||
|
@ -98,20 +98,27 @@ export class UploadSketch extends SketchContribution {
|
|||||||
let options: CoreService.Upload.Options | undefined = undefined;
|
let options: CoreService.Upload.Options | undefined = undefined;
|
||||||
const sketchUri = uri;
|
const sketchUri = uri;
|
||||||
const optimizeForDebug = this.editorMode.compileForDebug;
|
const optimizeForDebug = this.editorMode.compileForDebug;
|
||||||
|
const { selectedPort } = boardsConfig;
|
||||||
|
|
||||||
if (usingProgrammer) {
|
if (usingProgrammer) {
|
||||||
const programmer = selectedProgrammer;
|
const programmer = selectedProgrammer;
|
||||||
if (!programmer) {
|
if (!programmer) {
|
||||||
throw new Error('Programmer is not selected. Please select a programmer.');
|
throw new Error('Programmer is not selected. Please select a programmer.');
|
||||||
}
|
}
|
||||||
|
let port: undefined | string = undefined;
|
||||||
|
// If the port is set by the user, we pass it to the CLI as it might be required.
|
||||||
|
// If it is not set but the CLI requires it, we let the CLI to complain.
|
||||||
|
if (selectedPort) {
|
||||||
|
port = selectedPort.address;
|
||||||
|
}
|
||||||
options = {
|
options = {
|
||||||
sketchUri,
|
sketchUri,
|
||||||
fqbn,
|
fqbn,
|
||||||
optimizeForDebug,
|
optimizeForDebug,
|
||||||
programmer
|
programmer,
|
||||||
|
port
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
const { selectedPort } = boardsConfig;
|
|
||||||
if (!selectedPort) {
|
if (!selectedPort) {
|
||||||
throw new Error('No ports selected. Please select a port.');
|
throw new Error('No ports selected. Please select a port.');
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
import { injectable, inject } from 'inversify';
|
import { injectable, inject } from 'inversify';
|
||||||
import { EditorWidget } from '@theia/editor/lib/browser';
|
import { EditorWidget } from '@theia/editor/lib/browser';
|
||||||
import { CommandService } from '@theia/core/lib/common/command';
|
import { CommandService } from '@theia/core/lib/common/command';
|
||||||
|
import { OutputWidget } from '@theia/output/lib/browser/output-widget';
|
||||||
import { ApplicationShell as TheiaApplicationShell, Widget } from '@theia/core/lib/browser';
|
import { ApplicationShell as TheiaApplicationShell, Widget } from '@theia/core/lib/browser';
|
||||||
import { Sketch } from '../../../common/protocol';
|
import { Sketch } from '../../../common/protocol';
|
||||||
import { EditorMode } from '../../editor-mode';
|
import { EditorMode } from '../../editor-mode';
|
||||||
@ -22,6 +23,9 @@ export class ApplicationShell extends TheiaApplicationShell {
|
|||||||
|
|
||||||
protected track(widget: Widget): void {
|
protected track(widget: Widget): void {
|
||||||
super.track(widget);
|
super.track(widget);
|
||||||
|
if (widget instanceof OutputWidget) {
|
||||||
|
widget.title.closable = false; // TODO: https://arduino.slack.com/archives/C01698YT7S4/p1598011990133700
|
||||||
|
}
|
||||||
if (!this.editorMode.proMode && widget instanceof EditorWidget) {
|
if (!this.editorMode.proMode && widget instanceof EditorWidget) {
|
||||||
// Make the editor un-closeable asynchronously.
|
// Make the editor un-closeable asynchronously.
|
||||||
this.sketchesServiceClient.currentSketch().then(sketch => {
|
this.sketchesServiceClient.currentSketch().then(sketch => {
|
||||||
|
@ -26,7 +26,7 @@ export namespace CoreService {
|
|||||||
export namespace Upload {
|
export namespace Upload {
|
||||||
export type Options =
|
export type Options =
|
||||||
Compile.Options & Readonly<{ port: string }> |
|
Compile.Options & Readonly<{ port: string }> |
|
||||||
Compile.Options & Readonly<{ programmer: Programmer }>;
|
Compile.Options & Readonly<{ programmer: Programmer, port?: string }>;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -103,11 +103,12 @@ export class CoreServiceImpl implements CoreService {
|
|||||||
uploadReq.setInstance(instance);
|
uploadReq.setInstance(instance);
|
||||||
uploadReq.setSketchPath(sketchpath);
|
uploadReq.setSketchPath(sketchpath);
|
||||||
uploadReq.setFqbn(fqbn);
|
uploadReq.setFqbn(fqbn);
|
||||||
if ('port' in options) {
|
if ('programmer' in options) {
|
||||||
uploadReq.setPort(options.port);
|
|
||||||
} else {
|
|
||||||
uploadReq.setProgrammer(options.programmer.id);
|
uploadReq.setProgrammer(options.programmer.id);
|
||||||
}
|
}
|
||||||
|
if (options.port) {
|
||||||
|
uploadReq.setPort(options.port);
|
||||||
|
}
|
||||||
const result = client.upload(uploadReq);
|
const result = client.upload(uploadReq);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"name": "browser-app",
|
"name": "browser-app",
|
||||||
"version": "0.0.7",
|
"version": "0.1.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@theia/core": "next",
|
"@theia/core": "next",
|
||||||
@ -19,8 +19,8 @@
|
|||||||
"@theia/process": "next",
|
"@theia/process": "next",
|
||||||
"@theia/terminal": "next",
|
"@theia/terminal": "next",
|
||||||
"@theia/workspace": "next",
|
"@theia/workspace": "next",
|
||||||
"arduino-ide-extension": "0.0.7",
|
"arduino-ide-extension": "0.1.0",
|
||||||
"arduino-debugger-extension": "0.0.7"
|
"arduino-debugger-extension": "0.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@theia/cli": "next"
|
"@theia/cli": "next"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"private": true,
|
"private": true,
|
||||||
"name": "electron-app",
|
"name": "electron-app",
|
||||||
"version": "0.0.7",
|
"version": "0.1.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"main": "src-gen/frontend/electron-main.js",
|
"main": "src-gen/frontend/electron-main.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -21,8 +21,8 @@
|
|||||||
"@theia/process": "next",
|
"@theia/process": "next",
|
||||||
"@theia/terminal": "next",
|
"@theia/terminal": "next",
|
||||||
"@theia/workspace": "next",
|
"@theia/workspace": "next",
|
||||||
"arduino-ide-extension": "0.0.7",
|
"arduino-ide-extension": "0.1.0",
|
||||||
"arduino-debugger-extension": "0.0.7"
|
"arduino-debugger-extension": "0.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@theia/cli": "next"
|
"@theia/cli": "next"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "arduino-editor",
|
"name": "arduino-editor",
|
||||||
"version": "0.0.7",
|
"version": "0.1.0",
|
||||||
"description": "Arduino Pro IDE",
|
"description": "Arduino Pro IDE",
|
||||||
"repository": "https://github.com/bcmi-labs/arduino-editor.git",
|
"repository": "https://github.com/bcmi-labs/arduino-editor.git",
|
||||||
"author": "Arduino SA",
|
"author": "Arduino SA",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user