Skip to content
This repository was archived by the owner on May 11, 2022. It is now read-only.

Commit 054a413

Browse files
committed
more adjustments
Signed-off-by: Brian Fitzpatrick <[email protected]>
1 parent 9feb9bf commit 054a413

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/utils.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,11 +503,12 @@ export function getFileExtension(pathAsString: string) : string | undefined {
503503
}
504504

505505
export function getAppendRegisteredSettingFromEnv() : string | undefined {
506-
const envVar = extensionFunctions.getContext().environmentVariableCollection.get(DIDACT_APPEND_REGISTERED_SETTING);
507-
if (!envVar) {
506+
console.log(process.env);
507+
const envVar = process.env[DIDACT_APPEND_REGISTERED_SETTING];
508+
if (!envVar || (typeof envVar !== 'string')) {
508509
return;
509510
}
510-
return envVar.value;
511+
return envVar as string;
511512
}
512513

513514
export async function appendAdditionalTutorialsFromEnv() : Promise<void> {
-6 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)