set focus on main sketch.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta 2020-08-01 17:03:21 +02:00
parent fc09dc3613
commit f375202c5d

View File

@ -265,6 +265,7 @@ export class ArduinoFrontendContribution implements FrontendApplicationContribut
for (const uri of [...sketch.otherSketchFileUris, ...sketch.additionalFileUris]) {
await this.editorManager.open(new URI(uri));
}
await this.editorManager.open(new URI(sketch.mainFileUri)); // Activates the editor of the main sketch file.
}
registerColors(colors: ColorRegistry): void {