PG editor templates

@Tricotou good ,morning! :smiley: :smiley:

:grin:
Seriously ? :see_no_evil: Do you mean you didn’t have the problem within 2 weeks and today it pops out ? :stuck_out_tongue: Still happening only on your MacOS I guess ?

Exactly.

However this time I was trying to edit an existing PG not starting a new one. Could it be that the existing PG contains some metadata or whatever which has triggered the issue again?

Seems unlikely. To me the playground has a unique source code version (from umd) and loads only the code inside the editor from the PG snippets server. But maybe I’m wrong on this.

@RaananW can you confirm that loading an old PG should not load any old code on the PG source code side ? :thinking:


Also, I make use of this ping to ask about this :
Since a few days, when I load a PG (let’s say https://playground.babylonjs.com/#4U4QH9#9 ) and then I save it, I get this URL : https://playground.babylonjs.com/?BabylonToolkit#4U4QH9#108 containing “BabylonToolkit” by default. Is it the new default behavior ? :thinking:


++
Tricotou

You are not wrong. The playground always uses the latest version of babylon, unless you force a specific version or a snapshot

@roland you are not alone anymore, a new user @13th just triggered this on windows. (topic)

Still, I cannot find a specific reproduction pattern :thinking:


Just a reminder for @RaananW
This topic if about a Monaco Editor bug which triggers sometimes on snippets loaded using replacement fields (${N:field}). This shoud be replaced by autofocus and jump using TAB.
Screencast from 09-12-2024 18:28:43
But sometimes it’s not replaced, and dollar sign pops in the code.
On my side I never had the issue a single time.


On internet I came accross same bug, for example here :

But the answer was :
You’re missing the insertTextRules property
But we do add it :

Or maybe there is a problem with initialCall :thinking:

2 Likes

Hey!

Just right now :see_no_evil: