Repository navigation
Redraw bases embedded in notes when Tasklines turns on - #81
Merged
Merged
Conversation
The redraw added for #76 only reopened base files. A base embedded in a note (a base code block or an embedded .base file) drawn before Tasklines registered its views still showed "Unknown view type: tasklines" until the note was reopened. Check every open tab for a visible Bases error instead of only base tabs. RELEASE.md's redraw check now covers an embedded base too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
reopenBasesShowingErrors(src/bases-adapter.ts) now checks every open tab for a visible Bases error, not only base files. A note with an embedded base, whether a base code block or an embedded.basefile, now redraws when Tasklines turns on after startup. RELEASE.md's redraw check gains a step for an embedded base.Why
The redraw added in #76 only reopened base tabs. A base embedded in a note that was drawn before Tasklines registered its views still showed "Unknown view type: tasklines" until the note was reopened. The Arabic manual-test note from #78 has an embedded base, which made the gap easy to see.
Checked in Obsidian 1.15.1
Manual tests/Other languages.md): with Tasklines turned off, the embed shows "Unknown view type: tasklines". After turning Tasklines on in Settings, the note reopens and the embed lists its 7 tasks. Before this change, the error stayed.Project tasks.base, opened while Tasklines was off): it still redraws with its saved filters and sorting.npm run build,npm run lintandnpm testpass.Notes for review
🤖 Generated with Claude Code