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
fix(plugin): decouple state update from the LS (#2643)
* fix(plugin): decouple state update from the LS
To enhance the reliability of Arduino IDE extensions, the update
process for `ArduinoState` has been modified to ensure independence
from the language server's availability. This change addresses issues
caused by `compileSummary` being `undefined` due to potential startup
failures of the Arduino Language Server, as noted in
dankeboy36/esp-exception-decoder#28 (comment).
The `compile` command now resolves with a `CompileSummary` rather than
`void`, facilitating a more reliable way for extensions to access
necessary data. Furthermore, the command has been adjusted to allow
resolution with `undefined` when the compiled data is partial.
By transitioning to direct usage of the resolved compile value for
state updates, the reliance on executed commands for extensions is
eliminated. This update also moves the VSIX command execution to the
frontend without altering existing IDE behavior.
Closes#2642
Signed-off-by: dankeboy36 <[email protected]>
* fix: install missing libx11-dev and libxkbfile-dev
Signed-off-by: dankeboy36 <[email protected]>
* fix: pick better GH step name
Signed-off-by: dankeboy36 <[email protected]>
* fix: install the required dependencies on Linux
Signed-off-by: dankeboy36 <[email protected]>
* fix(revert): do not manually install deps on Linux
Signed-off-by: dankeboy36 <[email protected]>
* chore: pin `ubuntu-22.04` for linux actions
* fix: restore accidentally removed dispose on finally
Signed-off-by: dankeboy36 <[email protected]>
* fix(test): align mock naming 💄
Signed-off-by: dankeboy36 <[email protected]>
* fix: let the ino contribution notify the LS
+ event emitter dispatches the new state.
Signed-off-by: dankeboy36 <[email protected]>
* fix(test): emit the new compiler summary state
Signed-off-by: dankeboy36 <[email protected]>
* chore(revert): unpin linux version, use latest
revert of b11bde1
Signed-off-by: dankeboy36 <[email protected]>
---------
Signed-off-by: dankeboy36 <[email protected]>
Co-authored-by: Giacomo Cusinato <[email protected]>
* When the user explicitly triggers the verify command from the primary UI: menu, toolbar, or keybinding. The UI shows the output, updates the toolbar items state, etc.
0 commit comments