@@ -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 ) => {
7474 console . log ( 'launch tutorial' )
7575
7676 await isEmptyWorkspace ( )
@@ -86,21 +86,21 @@ export const createCommands = ({ context, machine, storage, git, position }: Cre
8686 // eslint-disable-next-line
8787 const { steps } = tutorial . data
8888 const { setup } = steps [ pos . stepId ] . actions
89- await git . gitLoadCommits ( setup )
89+ await git . gitLoadCommits ( setup , dispatch )
9090 machine . send ( 'TUTORIAL_LOADED' )
9191 } ,
9292 [ COMMANDS . TUTORIAL_SETUP ] : async ( tutorial : CR . Tutorial ) => {
9393 console . log ( 'tutorial setup' , tutorial )
9494 // setup onSave hook
9595 const languageIds = tutorial . meta . languages
9696 console . 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 ) => {
0 commit comments