@@ -26,13 +26,13 @@ export class CodeEditorView extends TextFileView {
2626
2727 async onClose ( ) {
2828 await super . onClose ( ) ;
29- console . log ( "!!onClose" , this . file ?. name , this . id ) ;
29+ // console.log("!!onClose", this.file?.name, this.id);
3030 this . iframe ?. remove ( ) ;
3131 }
3232
3333 async onLoadFile ( file : TFile ) {
3434 await super . onLoadFile ( file ) ;
35- console . log ( "!!onLoadFile" , this . id , this . file ?. name , file . name )
35+ // console.log("!!onLoadFile", this.id, this.file?.name, file.name)
3636
3737 const theme = this . plugin . settings . isDark ? "vs-dark" : "vs" ;
3838
@@ -67,10 +67,10 @@ export class CodeEditorView extends TextFileView {
6767 }
6868 case "change" : {
6969 if ( data . context === this . getContext ( ) ) {
70- console . log ( "!change event" , data . value , data . context ) ;
70+ // console.log("!change event", data.value, data.context);
7171 this . value = data . value ;
7272 } else {
73- console . log ( "!change event" , data . value , data . context , "ignored!!!!!!!!!!!!" ) ;
73+ // console.log("!change event", data.value, data.context, "ignored!!!!!!!!!!!!");
7474 }
7575 // this.requestSave();
7676 break ;
@@ -81,28 +81,28 @@ export class CodeEditorView extends TextFileView {
8181
8282 async onUnloadFile ( file : TFile ) {
8383 await super . onUnloadFile ( file ) ;
84- console . log ( "!!onUnloadFile" , this . id , file . name )
84+ // console.log("!!onUnloadFile", this.id, file.name)
8585 this . iframe ?. remove ( ) ;
8686 }
8787
8888 async onOpen ( ) {
8989 await super . onOpen ( ) ;
90- console . log ( "!!onOpen" , this . id , this . file ?. name )
90+ // console.log("!!onOpen", this.id, this.file?.name)
9191 }
9292
9393 clear ( ) : void {
94- console . log ( "!!clear" , this . id , this . file ?. name ) ;
94+ // console.log("!!clear", this.id, this.file?.name);
9595 this . value = "" ;
9696 this . send ( "change-value" , { value : "" } ) ;
9797 }
9898
9999 getViewData ( ) : string {
100- console . log ( "!!get view data" , this . id , this . file ?. name , this . value )
100+ // console.log("!!get view data", this.id, this.file?.name, this.value)
101101 return this . value ;
102102 }
103103
104104 setViewData ( data : string , clear = false ) : void {
105- console . log ( "!!set view data" , this . id , this . file ?. name , data , clear )
105+ // console.log("!!set view data", this.id, this.file?.name, data, clear)
106106 this . value = data ;
107107 this . send ( "change-value" , { value : data } ) ;
108108 }
0 commit comments