Skip to content

Commit 1b8c510

Browse files
authored
Merge pull request #128 from bcmi-labs/external-programmer
[ATL-119]: Rework the menu organization for IDE 2.0, [ATL-75]: External programmer
2 parents 4326c5f + 5d8fbcd commit 1b8c510

File tree

111 files changed

+4165
-1776
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+4165
-1776
lines changed

arduino-debugger-extension/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"version": "0.0.7",
44
"description": "An extension for debugging Arduino programs",
55
"license": "MIT",
6-
"engines": {
7-
"node": ">=10.11.0 <12"
8-
},
96
"dependencies": {
107
"@theia/debug": "next",
118
"arduino-ide-extension": "0.0.7",

arduino-debugger-extension/src/browser/arduino-debug-frontend-application-contribution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export class ArduinoDebugFrontendApplicationContribution extends DebugFrontendAp
114114
id: ArduinoDebugCommands.START_DEBUG.id,
115115
command: ArduinoDebugCommands.START_DEBUG.id,
116116
tooltip: 'Start Debugging',
117-
priority: 1
117+
priority: 3
118118
});
119119
}
120120

arduino-ide-extension/package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"version": "0.0.7",
44
"description": "An extension for Theia building the Arduino IDE",
55
"license": "MIT",
6-
"engines": {
7-
"node": ">=10.11.0 <12"
8-
},
96
"scripts": {
107
"prepare": "yarn download-cli && yarn download-ls && yarn run clean && yarn run build",
118
"clean": "rimraf lib",
@@ -22,7 +19,6 @@
2219
"@grpc/grpc-js": "^1.1.1",
2320
"@theia/application-package": "next",
2421
"@theia/core": "next",
25-
"@theia/cpp": "next",
2622
"@theia/editor": "next",
2723
"@theia/filesystem": "next",
2824
"@theia/git": "next",
@@ -31,6 +27,8 @@
3127
"@theia/monaco": "next",
3228
"@theia/navigator": "next",
3329
"@theia/outline-view": "next",
30+
"@theia/preferences": "next",
31+
"@theia/output": "next",
3432
"@theia/search-in-workspace": "next",
3533
"@theia/terminal": "next",
3634
"@theia/workspace": "next",
@@ -40,9 +38,11 @@
4038
"@types/google-protobuf": "^3.7.2",
4139
"@types/js-yaml": "^3.12.2",
4240
"@types/lodash.debounce": "^4.0.6",
41+
"@types/ncp": "^2.0.4",
4342
"@types/ps-tree": "^1.1.0",
4443
"@types/react-select": "^3.0.0",
4544
"@types/sinon": "^7.5.2",
45+
"@types/temp": "^0.8.34",
4646
"@types/which": "^1.3.1",
4747
"ajv": "^6.5.3",
4848
"css-element-queries": "^1.2.0",
@@ -53,11 +53,13 @@
5353
"google-protobuf": "^3.11.4",
5454
"lodash.debounce": "^4.0.8",
5555
"js-yaml": "^3.13.1",
56+
"ncp": "^2.0.0",
5657
"p-queue": "^5.0.0",
5758
"ps-tree": "^1.2.0",
5859
"react-select": "^3.0.4",
5960
"semver": "^6.3.0",
6061
"string-natural-compare": "^2.0.3",
62+
"temp": "^0.9.1",
6163
"tree-kill": "^1.2.1",
6264
"upath": "^1.1.2",
6365
"which": "^1.3.1"
@@ -66,7 +68,6 @@
6668
"@types/chai": "^4.2.7",
6769
"@types/chai-string": "^1.4.2",
6870
"@types/mocha": "^5.2.7",
69-
"@types/temp": "^0.8.34",
7071
"chai": "^4.2.0",
7172
"chai-string": "^1.5.0",
7273
"decompress": "^4.2.0",
@@ -76,11 +77,9 @@
7677
"grpc_tools_node_protoc_ts": "^4.1.0",
7778
"mocha": "^7.0.0",
7879
"moment": "^2.24.0",
79-
"ncp": "^2.0.0",
8080
"protoc": "^1.0.4",
8181
"shelljs": "^0.8.3",
8282
"sinon": "^9.0.1",
83-
"temp": "^0.9.1",
8483
"uuid": "^3.2.1",
8584
"yargs": "^11.1.0"
8685
},
@@ -108,8 +107,8 @@
108107
"frontend": "lib/browser/arduino-ide-frontend-module"
109108
},
110109
{
111-
"frontend": "lib/browser/menu/browser-arduino-menu-module",
112-
"frontendElectron": "lib/electron-browser/menu/electron-arduino-menu-module"
110+
"frontend": "lib/browser/theia/core/browser-menu-module",
111+
"frontendElectron": "lib/electron-browser/theia/core/electron-menu-module"
113112
},
114113
{
115114
"frontend": "lib/browser/boards/quick-open/boards-quick-open-module"
Lines changed: 8 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,30 @@
11
import { Command } from '@theia/core/lib/common/command';
22

3+
/**
4+
* @deprecated all these commands should go under contributions and have their command, menu, keybinding, and toolbar contributions.
5+
*/
36
export namespace ArduinoCommands {
47

5-
const category = 'Arduino';
6-
7-
export const VERIFY: Command = {
8-
id: 'arduino-verify',
9-
label: 'Verify Sketch'
10-
}
11-
export const VERIFY_TOOLBAR: Command = {
12-
id: 'arduino-verify-toolbar',
13-
}
14-
15-
export const UPLOAD: Command = {
16-
id: 'arduino-upload',
17-
label: 'Upload Sketch'
18-
}
19-
export const UPLOAD_TOOLBAR: Command = {
20-
id: 'arduino-upload-toolbar',
21-
}
22-
238
export const TOGGLE_COMPILE_FOR_DEBUG: Command = {
24-
id: "arduino-toggle-compile-for-debug"
25-
}
26-
27-
export const SHOW_OPEN_CONTEXT_MENU: Command = {
28-
id: 'arduino-show-open-context-menu',
29-
label: 'Open Sketch',
30-
category
9+
id: 'arduino-toggle-compile-for-debug'
3110
};
3211

33-
export const OPEN_FILE_NAVIGATOR: Command = {
34-
id: 'arduino-open-file-navigator'
35-
}
36-
37-
export const OPEN_SKETCH: Command = {
38-
id: 'arduino-open-file'
39-
}
40-
4112
/**
4213
* Unlike `OPEN_SKETCH`, it opens all files from a sketch folder. (ino, cpp, etc...)
4314
*/
4415
export const OPEN_SKETCH_FILES: Command = {
4516
id: 'arduino-open-sketch-files'
46-
}
47-
48-
export const SAVE_SKETCH: Command = {
49-
id: 'arduino-save-file'
50-
}
51-
52-
export const NEW_SKETCH: Command = {
53-
id: 'arduino-new-sketch',
54-
label: 'New Sketch',
55-
category
56-
}
17+
};
5718

5819
export const OPEN_BOARDS_DIALOG: Command = {
5920
id: 'arduino-open-boards-dialog'
60-
}
21+
};
6122

6223
export const TOGGLE_ADVANCED_MODE: Command = {
6324
id: 'arduino-toggle-advanced-mode'
64-
}
25+
};
6526
export const TOGGLE_ADVANCED_MODE_TOOLBAR: Command = {
66-
id: "arduino-toggle-advanced-mode-toolbar"
67-
}
68-
69-
export const OPEN_CLI_CONFIG: Command = {
70-
id: 'arduino-open-cli-config',
71-
label: 'Open CLI Configuration',
72-
category
27+
id: 'arduino-toggle-advanced-mode-toolbar'
7328
};
7429

7530
}

0 commit comments

Comments
 (0)