We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentca0cfb3 commitfab91abCopy full SHA for fab91ab
src/editor/commands/index.ts
@@ -94,13 +94,13 @@ export const createCommands = ({ context, machine, storage, git, position }: Cre
94
// setup onSave hook
95
constlanguageIds=tutorial.meta.languages
96
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
-//})
+vscode.workspace.onDidSaveTextDocument((document:vscode.TextDocument)=>{
+console.log('save document',document)
+if(languageIds.includes(document.languageId)&&document.uri.scheme==='file'){
+// do work
+machine.send('TEST_RUN')
+}
+})
104
},
105
// open a file
106
[COMMANDS.OPEN_FILE]:async(relativeFilePath:string)=>{