Skip to content

Commit

Permalink
Update src/extension.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Sijawusz Pur Rahnama <[email protected]>
  • Loading branch information
nobodywasishere and Sija authored Nov 24, 2024
1 parent 68e714e commit a432c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function activate(context: ExtensionContext) {
});

workspace.onDidSaveTextDocument(doc => {
if (ameba && doc.languageId === 'crystal' && !doc.isUntitled && doc.uri.scheme === 'file') {
if (ameba && ameba.config.onSave && doc.languageId === 'crystal' && !doc.isUntitled && doc.uri.scheme === 'file') {
outputChannel.appendLine(`[Save] Running ameba on ${getRelativePath(doc)}`)
ameba.execute(doc);
}
Expand Down

0 comments on commit a432c7e

Please sign in to comment.