Skip to content

Commit

Permalink
vscode-ext: fix logic of pr #27
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp15b committed Jun 5, 2024
1 parent cb6bcf0 commit 3551c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vscode-ext/src/CaesarClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class CaesarClient {

// listen to onDidSaveTextDocument events
this.context.subscriptions.push(vscode.workspace.onDidSaveTextDocument((document) => {
if (document.languageId !== "heyvl" && CaesarConfig.get(ConfigurationConstants.automaticVerification) !== "onsave") {
if (document.languageId !== "heyvl" || CaesarConfig.get(ConfigurationConstants.automaticVerification) !== "onsave") {
return;
}
void this.verify(document);
Expand Down

0 comments on commit 3551c84

Please sign in to comment.