diff --git a/.bauke/scripts/codium-extensions.ts b/.bauke/scripts/codium-extensions.ts index 1c3d850..167c0f8 100644 --- a/.bauke/scripts/codium-extensions.ts +++ b/.bauke/scripts/codium-extensions.ts @@ -45,6 +45,7 @@ async function main(): Promise { } } +/** Run `codium --list-extensions` and return all the extensions as an array. */ async function getInstalledExtensions(): Promise { const extensions = await runAndReturnStdout("codium", { args: ["--list-extensions"], @@ -52,6 +53,7 @@ async function getInstalledExtensions(): Promise { return extensions.trim().split("\n"); } +/** Get all the saved extensions from the codium-extensions data file. */ async function getSavedExtensions(file: string): Promise { const extensions = await Deno.readTextFile(file); return extensions.trim().split("\n");