Skip to content

fix: make unknown attribute diagnostic opt-in#357

Merged
mcanouil merged 2 commits into
mainfrom
fix/issue356
Jun 16, 2026
Merged

fix: make unknown attribute diagnostic opt-in#357
mcanouil merged 2 commits into
mainfrom
fix/issue356

Conversation

@mcanouil

Copy link
Copy Markdown
Owner

The inline attribute linter validated attributes against an allow-list built only from installed extension _schema.yml files. Quarto Wizard ships no schema for Quarto, Pandoc, or revealjs internals, so valid attributes such as width on .column were reported as Unknown attribute whenever an installed extension contributed an attributes._any block.

The schema-unknown-attribute diagnostic is now gated behind a new quartoWizard.lint.unknownAttributes setting, disabled by default. With the default, unknown attributes are ignored; enabling the setting restores the diagnostic for authors working against extensions that declare a complete attribute set. Open documents re-validate when the setting changes.

Also updates dependencies to their latest compatible versions. tar is held at 7.5.15 because 7.5.16 emits an unhandled Z_STREAM_ERROR when an extraction is aborted mid-stream, and @types/archiver is held at v7 to match the v7 archiver runtime; both are added to the update:deps reject list.

Closes #356

mcanouil added 2 commits June 16, 2026 00:10
The schema-unknown-attribute diagnostic validated inline attributes
against an allow-list built only from installed extension _schema.yml
files. Quarto Wizard has no built-in schema for Quarto/Pandoc/revealjs
internals, so valid attributes such as width on .column were reported as
unknown whenever an extension shipped an attributes._any block.

Gate the diagnostic behind a new quartoWizard.lint.unknownAttributes
setting, disabled by default, so unknown attributes are ignored unless
the user opts in.

Closes #356
Bump dev and runtime dependencies to their latest compatible versions.

Hold tar at 7.5.15: 7.5.16 surfaces a late, unhandled Z_STREAM_ERROR
from minizlib when an extraction is aborted mid-stream (the security
abort path in archive/tar.ts), which would escape the extractor's
try/catch. Pin @types/archiver to v7 to match the held archiver v7
runtime. Both are added to the update:deps reject list.
@mcanouil mcanouil added Type: Bug 🐛 Issues related to bugs, errors, or mistakes Type: Dependencies ⬆️ Issues related to dependencies, which are external libraries or packages that are used labels Jun 15, 2026
@mcanouil mcanouil self-assigned this Jun 15, 2026
@mcanouil mcanouil removed the Type: Dependencies ⬆️ Issues related to dependencies, which are external libraries or packages that are used label Jun 16, 2026
@mcanouil mcanouil merged commit 988caba into main Jun 16, 2026
7 checks passed
@mcanouil mcanouil deleted the fix/issue356 branch June 16, 2026 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug 🐛 Issues related to bugs, errors, or mistakes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False schema-unknown-attribute for width when an extension ships a quarto-wizard _schema.yml with attributes._any

1 participant