Skip to content

Redraw bases embedded in notes when Tasklines turns on - #81

Merged
rcasazza merged 1 commit into
mainfrom
fix/redraw-embedded-bases
Nov 25, 2026
Merged

rcasazza merged 1 commit into
mainfrom
fix/redraw-embedded-bases

Conversation

@rcasazza

Copy link
Copy Markdown
Member

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 .base file, 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

  • Note with an embedded base (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.
  • Base tab (Project tasks.base, opened while Tasklines was off): it still redraws with its saved filters and sorting.
  • npm run build, npm run lint and npm test pass.

Notes for review

  • A note is redrawn by reopening its tab, so its scroll position goes back to the top. This only happens when an error is showing, right after Tasklines turns on.
  • A base with any other visible error is also reopened at that moment. That's harmless: it gets drawn once more and shows the same error.

🤖 Generated with Claude Code

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>
@rcasazza
rcasazza merged commit 2ce140a into main Nov 25, 2026
2 checks passed
@rcasazza
rcasazza deleted the fix/redraw-embedded-bases branch November 25, 2026 12:26
@rcasazza rcasazza mentioned this pull request Nov 25, 2026
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.

1 participant