Skip to content

Extension: Order from metadata not used #188

@AriPerkkio

Description

@AriPerkkio

Describe the bug

TutorialKit extension does not show correct order of lessons, chapters and parts if ordering is done in metadata. It will always use filename based order instead.

---
type: chapter
lessons:
  - importing-yaml-files
  - defining-custom-plugin
  - defining-load-hook
  - processing-yaml-files
  - summarize-yaml-plugin
title: YAML Plugin
---

Link to a StackBlitz project which shows the error

https://github.com/AriPerkkio/tutorial-vite-plugin/tree/main

Steps to reproduce

  1. Open https://github.com/AriPerkkio/tutorial-vite-plugin/tree/main in VS Code
  2. Open TutorialKit extension

Expected behavior

Extension should respect metadata's ordering.

Screenshots

No response

Platform

  • TutorialKit version: 0.1.1

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingextensionIssus related to TutorialKit VS Code extension

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions