@@ -14,7 +14,7 @@ import { openWorkspace, checkWorkspaceEmpty } from '../services/workspace'
1414import { readFile } from 'fs'
1515import { join } from 'path'
1616import { promisify } from 'util'
17- import environment from '../environment'
17+ import { WORKSPACE_ROOT } from '../environment'
1818
1919const readFileAsync = promisify ( readFile )
2020
@@ -45,12 +45,12 @@ class Channel implements Channel {
4545const actionType :string = typeof action === 'string' ?action :action . type
4646// const onError = (error: T.ErrorMessage) => this.send({ type: 'ERROR', payload: { error } })
4747
48- // console.log(`ACTION: ${actionType}`)
48+ logger ( `EXT RECEIVED: " ${ actionType } " `)
4949
5050switch ( actionType ) {
5151case 'EDITOR_STARTUP' :
5252// check if a workspace is open, otherwise nothing works
53- const noActiveWorksapce = ! environment . WORKSPACE_ROOT . length
53+ const noActiveWorksapce = ! WORKSPACE_ROOT . length
5454if ( noActiveWorksapce ) {
5555const error :E . ErrorMessage = {
5656type :'NoWorkspaceFound' ,
@@ -260,7 +260,7 @@ class Channel implements Channel {
260260} )
261261
262262// log error to console for safe keeping
263- console . log ( `ERROR:\n${ errorMarkdown } ` )
263+ logger ( `ERROR:\n${ errorMarkdown } ` )
264264
265265if ( errorMarkdown ) {
266266// add a clearer error message for the user
@@ -270,6 +270,9 @@ class Channel implements Channel {
270270
271271// action may be an object.type or plain string
272272const actionType :string = typeof action === 'string' ?action :action . type
273+
274+ logger ( `EXT TO CLIENT: "${ actionType } "` )
275+
273276switch ( actionType ) {
274277case 'TEST_PASS' :
275278const tutorial = this . context . tutorial . get ( )