Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Provide possibility to compile and verify sketches opened in active tab. #964

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

MrSantiaga
Copy link

As user of extension I think that operations compile, upload and etc. more comfortable when they are applying to opened in editor sketch. So i propose to have an property, which allows to do that.

@MrSantiaga MrSantiaga force-pushed the add-arduino.useActiveSketch-property branch from abf054e to 1b3f16f Compare February 8, 2020 11:37
It allows to set "sketch" value to arduino.json when useActiveSketch value is true.
Here is 2 changes:
 - Subscrube to event onDidChangeActiveTextEditor to set "sketch" value
	into arduino.json when useActiveSketch option is true
 - Don't show sketch name in Status Bar when "sketch" value is
	atomatically setted in arduino.json
@MrSantiaga MrSantiaga force-pushed the add-arduino.useActiveSketch-property branch from 1b3f16f to 7c91379 Compare February 8, 2020 11:56
@benmcmorran benmcmorran changed the base branch from release to main January 13, 2022 20:23
@ChitoKim
Copy link

ChitoKim commented Nov 1, 2023

This can be done by installing an additional extension "Arduino Sketch Auto Switcher", which has this arduino extension as a dependency. https://github.com/nosknut/arduino-sketch-auto-switcher
For now this should be the best solution.

@lersi
Copy link

lersi commented Apr 22, 2024

hello, I created a community fork at https://github.com/vscode-arduino/vscode-arduino.
You are more than welcome to merge your changes there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants