Skip to content

Incorrect menu documentation #2582

Open
@Richienb

Description

@Richienb

Expected Behavior

The extension menu documentation in https://github.com/LLK/scratch-vm/blob/develop/docs/extensions.md#defining-a-menu should match with the jsdocs in https://github.com/LLK/scratch-vm/blob/develop/src/extension-support/extension-metadata.js#L39

Actual Behavior

Both sources describe different behaviour.

Steps to Reproduce

The first source outlined this:

{
    menus: {
        fooMenu: {
            items: ['a', 'b', 'c']
        }
    }
}

However, the second source suggests each value in menus should be a string, array of strings or array of {value: *, text: string}.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions