David Catuhe 5 năm trước cách đây
mục cha
commit
c0c18b3704

+ 2 - 0
Playground/src/tools/monacoManager.ts

@@ -121,6 +121,8 @@ export class MonacoManager {
     private _setNewContent() {
     private _setNewContent() {
         this._createEditor();
         this._createEditor();
 
 
+        this.globalState.currentSnippetToken = "";
+
         if (this.globalState.language === "JS") {
         if (this.globalState.language === "JS") {
             this._editor?.setValue(`// You have to create a function called createScene. This function must return a BABYLON.Scene object
             this._editor?.setValue(`// You have to create a function called createScene. This function must return a BABYLON.Scene object
 // You can reference the following variables: engine, canvas
 // You can reference the following variables: engine, canvas