@@ -115,7 +115,7 @@ async function store(state, emitter) {
115
115
116
116
// Stop whatever is going on
117
117
// Recover from getting stuck in raw repl
118
- await serial . get_prompt ( )
118
+ await serial . getPrompt ( )
119
119
120
120
// Make sure there is a lib folder
121
121
log ( 'creating lib folder' )
@@ -174,7 +174,7 @@ async function store(state, emitter) {
174
174
emitter . emit ( 'open-panel' )
175
175
emitter . emit ( 'render' )
176
176
try {
177
- await serial . get_prompt ( )
177
+ await serial . getPrompt ( )
178
178
await serial . run ( code )
179
179
} catch ( e ) {
180
180
log ( 'error' , e )
@@ -187,7 +187,7 @@ async function store(state, emitter) {
187
187
}
188
188
emitter . emit ( 'open-panel' )
189
189
emitter . emit ( 'render' )
190
- await serial . get_prompt ( )
190
+ await serial . getPrompt ( )
191
191
} )
192
192
emitter . on ( 'reset' , async ( ) => {
193
193
log ( 'reset' )
@@ -272,6 +272,7 @@ async function store(state, emitter) {
272
272
// Check if the current full path exists
273
273
let fullPathExists = false
274
274
if ( openFile . source == 'board' ) {
275
+ await serial . getPrompt ( )
275
276
fullPathExists = await serial . fileExists (
276
277
serial . getFullPath (
277
278
state . boardNavigationRoot ,
@@ -294,6 +295,7 @@ async function store(state, emitter) {
294
295
if ( openFile . source == 'board' ) {
295
296
openFile . parentFolder = state . boardNavigationPath
296
297
// Check for overwrite
298
+ await serial . getPrompt ( )
297
299
willOverwrite = await serial . fileExists (
298
300
serial . getFullPath (
299
301
state . boardNavigationRoot ,
@@ -328,7 +330,7 @@ async function store(state, emitter) {
328
330
const contents = openFile . editor . editor . state . doc . toString ( )
329
331
try {
330
332
if ( openFile . source == 'board' ) {
331
- await serial . get_prompt ( )
333
+ await serial . getPrompt ( )
332
334
await serial . saveFileContent (
333
335
serial . getFullPath (
334
336
state . boardNavigationRoot ,
@@ -918,7 +920,7 @@ async function store(state, emitter) {
918
920
const contents = openFile . editor . editor . state . doc . toString ( )
919
921
try {
920
922
if ( openFile . source == 'board' ) {
921
- await serial . get_prompt ( )
923
+ await serial . getPrompt ( )
922
924
await serial . saveFileContent (
923
925
serial . getFullPath (
924
926
state . boardNavigationRoot ,
@@ -981,7 +983,7 @@ async function store(state, emitter) {
981
983
const contents = openFile . editor . editor . state . doc . toString ( )
982
984
try {
983
985
if ( openFile . source == 'board' ) {
984
- await serial . get_prompt ( )
986
+ await serial . getPrompt ( )
985
987
await serial . saveFileContent (
986
988
serial . getFullPath (
987
989
state . boardNavigationRoot ,
@@ -1382,7 +1384,7 @@ async function getAvailablePorts() {
1382
1384
}
1383
1385
1384
1386
async function getBoardFiles ( path ) {
1385
- await serial . get_prompt ( )
1387
+ await serial . getPrompt ( )
1386
1388
let files = await serial . ilistFiles ( path )
1387
1389
files = files . map ( f => ( {
1388
1390
fileName : f [ 0 ] ,
@@ -1401,6 +1403,7 @@ function checkDiskFile({ root, parentFolder, fileName }) {
1401
1403
1402
1404
async function checkBoardFile ( { root, parentFolder, fileName } ) {
1403
1405
if ( root == null || parentFolder == null || fileName == null ) return false
1406
+ await serial . getPrompt ( )
1404
1407
return serial . fileExists (
1405
1408
serial . getFullPath ( root , parentFolder , fileName )
1406
1409
)
0 commit comments