File tree 3 files changed +15
-4
lines changed
3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 126
126
}
127
127
128
128
function onEditorHover ( info , callback ) {
129
- if ( inDebugMode && ! callbackOnEqualsLine ) {
129
+ if ( inDebugMode && // in debug mode
130
+ ! callbackOnEqualsLine && // we're not trying to do something already
131
+ Espruino . Core . Terminal . getTerminalLine ( ) == "debug>" // user is not currently typing on LHS
132
+ ) {
130
133
var name ;
131
134
if ( info . node . className == "cm-variable" ||
132
135
info . node . className == "cm-def" ) {
215
218
Espruino . Plugins . Debugger = {
216
219
init : init ,
217
220
} ;
218
- } ( ) ) ;
221
+ } ( ) ) ;
Original file line number Diff line number Diff line change 22
22
case "code" :
23
23
Espruino . Core . EditorJavaScript . setCode ( val ) ;
24
24
break ;
25
+ case "codeurl" :
26
+ Espruino . Core . EditorJavaScript . setCode ( "Loading from " + val + "..." ) ;
27
+ $ . get ( val , function ( data ) {
28
+ Espruino . Core . EditorJavaScript . setCode ( data ) ;
29
+ } ) . error ( function ( ) {
30
+ Espruino . Core . EditorJavaScript . setCode ( "ERROR" ) ;
31
+ } ) ;
32
+ break ;
25
33
case "upload" :
26
34
Espruino . Core . MenuPortSelector . ensureConnected ( function ( ) {
27
35
Espruino . Core . Terminal . focus ( ) ; // give the terminal focus
69
77
70
78
handle : handle , // handle a URL
71
79
} ;
72
- } ( ) ) ;
80
+ } ( ) ) ;
You can’t perform that action at this time.
0 commit comments