mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-13 18:14:09 +00:00
explorer/newFileWizard: add empty file option
Fixes: https://github.com/pybricks/pybricks-code/issues/771
This commit is contained in:
committed by
David Lechner
parent
7810a8ee87
commit
ede6f80f49
@@ -337,7 +337,9 @@ const templateSnippets: Array<
|
||||
* Gets the template text for a Pybricks MicroPython file.
|
||||
* @param hub The hub label.
|
||||
*/
|
||||
export function getPybricksMicroPythonFileTemplate(hub: HubLabel): string | undefined {
|
||||
export function getPybricksMicroPythonFileTemplate(
|
||||
hub: HubLabel | undefined,
|
||||
): string | undefined {
|
||||
return templateSnippets.find((t) => t.label === hub)?.insertText;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user