@@ -70,7 +70,7 @@ export const createCommands = ({ context, machine, storage, git, position }: Cre
7070} ,
7171// launch a new tutorial
7272// NOTE: may be better to move into action as logic is primarily non-vscode
73- [ COMMANDS . TUTORIAL_LAUNCH ] :async ( tutorial : CR . Tutorial ) => {
73+ [ COMMANDS . TUTORIAL_LAUNCH ] :async ( { tutorial, dispatch } : any ) => {
7474console . log ( 'launch tutorial' )
7575
7676await isEmptyWorkspace ( )
@@ -86,21 +86,21 @@ export const createCommands = ({ context, machine, storage, git, position }: Cre
8686// eslint-disable-next-line
8787const { steps} = tutorial . data
8888const { setup} = steps [ pos . stepId ] . actions
89- await git . gitLoadCommits ( setup )
89+ await git . gitLoadCommits ( setup , dispatch )
9090machine . send ( 'TUTORIAL_LOADED' )
9191} ,
9292[ COMMANDS . TUTORIAL_SETUP ] :async ( tutorial :CR . Tutorial ) => {
9393console . log ( 'tutorial setup' , tutorial )
9494// setup onSave hook
9595const languageIds = tutorial . meta . languages
9696console . log ( `languageIds:${ languageIds . join ( ', ' ) } ` )
97- vscode . workspace . onDidSaveTextDocument ( ( document :vscode . TextDocument ) => {
98- console . log ( 'save document' , document )
99- if ( languageIds . includes ( document . languageId ) && document . uri . scheme === 'file' ) {
100- // do work
101- machine . send ( 'TEST_RUN' )
102- }
103- } )
97+ // vscode.workspace.onDidSaveTextDocument((document: vscode.TextDocument) => {
98+ // console.log('save document', document)
99+ // if (languageIds.includes(document.languageId) && document.uri.scheme === 'file') {
100+ // // do work
101+ // machine.send('TEST_RUN')
102+ // }
103+ // })
104104} ,
105105// open a file
106106[ COMMANDS . OPEN_FILE ] :async ( relativeFilePath :string ) => {