Hi @Tricotou !
The issue still persists. Could you have a look at it please?
Hello guys,
I just came back from vacation
Iāll have a look to this within the next days
Save me!
I still canāt give you a precise description when this occurs but in 80% it was when I deleted the line with the FreeCamera and just right after that I tried to insert the ARC using the snippet shortcut.
I am sure itās related to the message in the console I already reported.
@roland do you have a way to pull and test a branch on the machine you are having the issue on ?
Since I cannot reproduce, I cannot really test any new version of the codeā¦
Sure
Ah ! I was about to reach you again about this
A few questions :
On the machine you can reproduce the problem on, how exactly is it ārandomā ?
Also, the message āNo codicon found for CompletionItemKind undefinedā do you have it ONLY when having as well the issue ?
I didnāt discover any pattern when it fails. This morningās case was like this: I opened an existing PG, put the cursor a on the line above the freecamera. Tried ot insert the snipped and it has failed.
Iāve opened a new PG in a new Tab. If failed again. I tried to open one more PG and it has worked.
Correct.
@roland , ok so still I canāt reproduce your MacOS issue, but here is my try :
{
"label": "Scene : Setup a shadow generator",
"key": "Shadows",
"documentation": "https://doc.babylonjs.com/features/featuresDeepDive/lights/shadows",
"insertText": "var shadowGenerator = new BABYLON.ShadowGenerator(${1:1024}, ${2:light});\nshadowGenerator.useExponentialShadowMap = true;"
}
NB: The ${1:1024}
, ${2:light}
, is proper to Monaco editor, setting the first TAB to 1024, second TAB to light, etc, etcā¦ Then itās automatically loaded from this._templates
in the MonacoManager
class
this._templates
, which was āplainText
ā, I.E. the same code without the dollar stuff (${1:1024}
ā 1024
)plainText
key, and replaced by a new function to go from the insertText (with dollar stuff) to plainText, using a regex rule.May I suggest you to give a try to this fix ?
++
Tricotou
This will be the first thing Iāll do when I turn on my computer on Saturday, right after I come back from my vacation.
Thank you!
I canāt believe this is happening!!
I tried everything to get incorrect injected code but no success (this is a supervillain emoji btw)
Even the tabs are working as expected:
Iāll play with it for a bit longer but Iām already convinced you killed that nasty
Doesnāt look very frightening This emoji would need a design update
No issues after a few hours of testing. Thanks!
Nice ! Then letās PR this branch and problem will be officially gone
Thanks for testing
Here we are :