Description
Describe the bug
Before adding a new i18n property defaultPreviewTitleText
in #255, but now the warning Property defaultPreviewTitleText is not allowed
remains in the VSCode.
Link to a StackBlitz project which shows the error
No response
Steps to reproduce
- create a new Tutorialkit project
- open VSCode and install Tutorialkit VSCode extension
- open
src/content/tutorial/meta.md
- add below i18n content:
i18n:
defaultPreviewTitleText: '預覽'
- see the warning
Property defaultPreviewTitleText is not allowed
when the mouse hoveringdefaultPreviewTitleText
Expected behavior
No show the Property defaultPreviewTitleText is not allowed
warning.
Screenshots
Platform
- TutorialKit version: 0.2.3
- OS: Windows
- Browser: not applicable
- Version: [e.g. 91.1]
Additional context
The i18n contentSchema is in the @tutorialkit/types
package:
tutorialkit/packages/types/src/schemas/i18n.ts
Lines 109 to 114 in 5c1de69
And this is code of load the contentSchema
in the vscode extension:
tutorialkit/extensions/vscode/scripts/load-schema-worker.mjs
Lines 2 to 5 in 5c1de69
tutorialkit/extensions/vscode/scripts/build.mjs
Lines 61 to 71 in 5c1de69
So if rebuilding the vscode extension can this warning be resolved?