You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`sketchPath`| Absolute filesystem path of the sketch folder. |`string`|
18
-
|`compileSummary`| The summary of the latest sketch compilation. When the `sketchPath` is available, but the sketch has not been verified (compiled), the `buildPath` can be `undefined`. |`CompileSummary`| ⚠️ `@alpha`|
19
-
|`fqbn`| The Fully Qualified Board Name (FQBN) of the currently selected board in the Arduino IDE. |`string`|
20
-
|`boardDetails`| Lightweight representation of the board's detail. This information is [provided by the Arduino CLI](https://arduino.github.io/arduino-cli/latest/rpc/commands/#cc.arduino.cli.commands.v1.BoardDetailsResponse) for the currently selected board. It can be `undefined` if the `fqbn` is defined, but the platform is not installed. |`BoardDetails`| ⚠️ `@alpha`|
21
-
|`port`| The currently selected port in the Arduino IDE. |[`Port`](https://arduino.github.io/arduino-cli/latest/rpc/commands/#port)|
22
-
|`userDirPath`| Filesystem path to the [`directories.user`](https://arduino.github.io/arduino-cli/latest/configuration/#configuration-keys) location. This is the sketchbook path. |`string`| ⚠️ `@alpha`|
23
-
|`dataDirPath`| Filesystem path to the [`directories.data`](https://arduino.github.io/arduino-cli/latest/configuration/#configuration-keys) location |`string`| ⚠️ `@alpha`|
|`openedSketches`| All opened sketch folders in the window. |`SketchFolder[]`| ⚠️ `@alpha`|
18
+
|`currentSketch`| The currently active sketch (folder) or `undefined`. The current sketch is the one that currently has focus or most recently had focus. The current sketch is in the opened sketches. |`SketchFolder \| undefined`| ⚠️ `@alpha`|
19
+
|`config`| The currently configured Arduino CLI configuration. |`CliConfig`| ⚠️ `@alpha`|
|`onDidChangeCurrentSketch`| An event that is emitted when the current sketch has changed. _Note_ that the event also fires when the active editor changes to `undefined`. |`Event<{ currentSketch: SketchFolder \| undefined }>`| ⚠️ `@alpha`|
26
+
|`onDidChangeSketchFolders`| An event that is emitted when sketch folders are added or removed. |`Event<SketchFoldersChangeEvent>`| ⚠️ `@alpha`|
27
+
|`onDidChangeSketch`| An event that is emitted when the selected board, port, etc., has changed in the sketch folder. |`Event<ChangeEvent<SketchFolder>>`| ⚠️ `@alpha`|
28
+
|`onDidChangeConfig`| An event that is emitter when the sketchbook (`directories.data`) or the data directory (`directories.data`) path has changed. |`Event<ChangeEvent<CliConfig>>`| ⚠️ `@alpha`|
|`sketchPath`| Absolute filesystem path of the sketch folder. |`string`| ⚠️ `@alpha`|
35
+
|`compileSummary`| The summary of the latest sketch compilation. When the `sketchPath` is available but the sketch has not been verified (compiled), the compile summary can be `undefined`. |`CompileSummary`| ⚠️ `@alpha`|
36
+
|`board`| The currently selected board associated with the sketch. If the `board` is undefined, no board is selected. If the `board` is a `BoardIdentifier`, it could be a recognized board on a detected port, but the board's platform could be absent. If platform is installed, the `board` is the lightweight representation of the board's detail. This information is [provided by the Arduino CLI](https://arduino.github.io/arduino-cli/latest/rpc/commands/#cc.arduino.cli.commands.v1.BoardDetailsResponse) for the currently selected board in the sketch folder. |`string`| ⚠️ `@alpha`|
37
+
|`port`| The currently selected port in the sketch folder. |[`Port`](https://arduino.github.io/arduino-cli/latest/rpc/commands/#port)| ⚠️ `@alpha`|
24
38
25
39
## How to Use
26
40
@@ -41,10 +55,10 @@ If you want to use the Arduino APIs, you have to do the followings:
41
55
import type { ArduinoContext } from 'vscode-arduino-api';
@@ -93,4 +109,4 @@ This extension contributes the following settings:
93
109
---
94
110
95
111
- Q: Are there any dependent examples?
96
-
- A: Yes, for example, [dankeboy36/esp-exception-decoder](https://github.com/dankeboy36/esp-exception-decoder).
112
+
- A: Yes, for example, [dankeboy36/esp-exception-decoder](https://github.com/dankeboy36/esp-exception-decoder) or [earlephilhower/arduino-littlefs-upload](https://github.com/earlephilhower/arduino-littlefs-upload).
0 commit comments