This repository was archived by the owner on May 11, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -503,7 +503,6 @@ export function getFileExtension(pathAsString: string) : string | undefined {
503503}
504504
505505export function getAppendRegisteredSettingFromEnv ( ) : string | undefined {
506- console . log ( process . env ) ;
507506 const envVar = process . env [ DIDACT_APPEND_REGISTERED_SETTING ] ;
508507 if ( ! envVar || ( typeof envVar !== 'string' ) ) {
509508 return ;
@@ -517,15 +516,13 @@ export async function appendAdditionalTutorialsFromEnv() : Promise<void> {
517516 if ( appendTutorialsAtStartup ) {
518517 await extensionFunctions . sendTextToOutputChannel ( `Didact tutorials appended at startup via ${ DIDACT_APPEND_REGISTERED_SETTING } ` ) ;
519518 const jsonTutorials = JSON . parse ( appendTutorialsAtStartup ) ;
520- for ( var i = 0 ; i < jsonTutorials . length ; i ++ ) {
521- const jsonObj :any = jsonTutorials [ i ] ;
522- await extensionFunctions . sendTextToOutputChannel ( `--Adding tutorial ${ jsonObj . sourceUri } as ${ jsonObj . name } /${ jsonObj . category } ` ) ;
523- await registerTutorialWithCategory ( jsonObj . name , jsonObj . sourceUri , jsonObj . category ) ;
519+ for ( const jsonTutorial of jsonTutorials ) {
520+ await extensionFunctions . sendTextToOutputChannel ( `--Adding tutorial ${ jsonTutorial . sourceUri } as ${ jsonTutorial . name } /${ jsonTutorial . category } ` ) ;
521+ await registerTutorialWithCategory ( jsonTutorial . name , jsonTutorial . sourceUri , jsonTutorial . category ) ;
524522 }
525523 }
526524 } catch ( ex ) {
527525 await extensionFunctions . sendTextToOutputChannel ( ex ) ;
528- console . error ( ex ) ;
529526 return Promise . reject ( ex ) ;
530527 }
531528}
You can’t perform that action at this time.
0 commit comments