Skip to content

editor method 'assets:create' does not respect 'noSelect' #44

@marklundin

Description

@marklundin

I know this is the private editor api but thought it worth flagging as it's something we run into whilst developing a PC chrome extension;

In the Code Editor api, there is a method assets:create:script which subsequently calls assets:create with a third boolean parameter noSelect which if I'm correct, should create a script but then optionally select it in the tree view after it's created. The function for assets:create however ignores this parameter and continues to select it by default regardless of the noSelect

Steps to repro:
In the code editor console dropthe following:
editor.call('assets:create:script', { noSelect: true })

Note how the script is created and also selected ignoring the noSelect param

I believe that line 8645 in the compiled code editor script should only execute if args.noSelect is true

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions