make sure the sketch file has the focus after the ws open.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta
2020-07-21 20:44:37 +02:00
parent 87b383f57e
commit fdc5814e66
2 changed files with 10 additions and 1 deletions

View File

@@ -267,6 +267,9 @@ export class ArduinoFrontendContribution implements FrontendApplicationContribut
for (const uri of uris) {
await this.editorManager.open(new URI(uri));
}
if (uris.length) {
await this.editorManager.open(new URI(uris[0])); // Make sure the sketch file has the focus.
}
}
registerColors(colors: ColorRegistry): void {