Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfab91ab

Browse files
committed
enable onDidSaveTextDoc
1 parentca0cfb3 commitfab91ab

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎src/editor/commands/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ export const createCommands = ({ context, machine, storage, git, position }: Cre
9494
// setup onSave hook
9595
constlanguageIds=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

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp