editor icon indicating copy to clipboard operation
editor copied to clipboard

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

Open marklundin opened this issue 3 years ago • 0 comments

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

marklundin avatar May 05 '22 16:05 marklundin