Skip to content

Conversation

@kdnk
Copy link
Contributor

@kdnk kdnk commented May 23, 2025

Fix: #1314

@pjkaufman
Copy link
Collaborator

This looks fine to me and looks to work. Thanks for taking a look and fixing this @kdnk .

@pjkaufman pjkaufman merged commit f36ab91 into platers:master May 26, 2025
1 check passed
Comment on lines +325 to 326
saveCommandDefinition.checkCallback = () => {
this.originalSaveCallback();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per the api docs, shouldn't this be: ?

Suggested change
saveCommandDefinition.checkCallback = () => {
this.originalSaveCallback();
saveCommandDefinition.checkCallback = (checking: boolean) => {
this.originalSaveCallback(checking);

likewise, this.runLinterEditor below should be wrapped with if (!checking) { ... }

Copy link
Contributor Author

@kdnk kdnk May 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@baodrate
Thank you! Right. I'll create another PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Lint on Save seems to stop working in Obsidian 1.9

3 participants