File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,8 @@ async function handleMessage(
73
73
) ;
74
74
activeEditor . onChange ( ( editor ) => {
75
75
const workspaceLocation = editor . workspaceLocation ;
76
- const code = editor . getText ( ) ;
77
- if ( ! code ) {
78
- return ;
79
- }
76
+ const code = editor . getActualCode ( ) ;
77
+
80
78
if ( editor !== activeEditor ) {
81
79
console . log (
82
80
`EXTENSION: Editor ${ editor . assessmentName } _${ editor . questionId } is no longer active, skipping onChange` ,
Original file line number Diff line number Diff line change @@ -150,8 +150,8 @@ export class Editor {
150
150
return ;
151
151
}
152
152
self . log ( `EXTENSION: Editor's code changed!` ) ;
153
- self . onChangeCallback ( self ) ;
154
153
self . code = text ;
154
+ self . onChangeCallback ( self ) ;
155
155
} ,
156
156
) ;
157
157
return self ;
You can’t perform that action at this time.
0 commit comments