@@ -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,7 +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 . get_prompt ( )
275
+ await serial . getPrompt ( )
276
276
fullPathExists = await serial . fileExists (
277
277
serial . getFullPath (
278
278
state . boardNavigationRoot ,
@@ -295,7 +295,7 @@ async function store(state, emitter) {
295
295
if ( openFile . source == 'board' ) {
296
296
openFile . parentFolder = state . boardNavigationPath
297
297
// Check for overwrite
298
- await serial . get_prompt ( )
298
+ await serial . getPrompt ( )
299
299
willOverwrite = await serial . fileExists (
300
300
serial . getFullPath (
301
301
state . boardNavigationRoot ,
@@ -330,7 +330,7 @@ async function store(state, emitter) {
330
330
const contents = openFile . editor . editor . state . doc . toString ( )
331
331
try {
332
332
if ( openFile . source == 'board' ) {
333
- await serial . get_prompt ( )
333
+ await serial . getPrompt ( )
334
334
await serial . saveFileContent (
335
335
serial . getFullPath (
336
336
state . boardNavigationRoot ,
@@ -920,7 +920,7 @@ async function store(state, emitter) {
920
920
const contents = openFile . editor . editor . state . doc . toString ( )
921
921
try {
922
922
if ( openFile . source == 'board' ) {
923
- await serial . get_prompt ( )
923
+ await serial . getPrompt ( )
924
924
await serial . saveFileContent (
925
925
serial . getFullPath (
926
926
state . boardNavigationRoot ,
@@ -983,7 +983,7 @@ async function store(state, emitter) {
983
983
const contents = openFile . editor . editor . state . doc . toString ( )
984
984
try {
985
985
if ( openFile . source == 'board' ) {
986
- await serial . get_prompt ( )
986
+ await serial . getPrompt ( )
987
987
await serial . saveFileContent (
988
988
serial . getFullPath (
989
989
state . boardNavigationRoot ,
@@ -1384,7 +1384,7 @@ async function getAvailablePorts() {
1384
1384
}
1385
1385
1386
1386
async function getBoardFiles ( path ) {
1387
- await serial . get_prompt ( )
1387
+ await serial . getPrompt ( )
1388
1388
let files = await serial . ilistFiles ( path )
1389
1389
files = files . map ( f => ( {
1390
1390
fileName : f [ 0 ] ,
@@ -1403,6 +1403,7 @@ function checkDiskFile({ root, parentFolder, fileName }) {
1403
1403
1404
1404
async function checkBoardFile ( { root, parentFolder, fileName } ) {
1405
1405
if ( root == null || parentFolder == null || fileName == null ) return false
1406
+ await serial . getPrompt ( )
1406
1407
return serial . fileExists (
1407
1408
serial . getFullPath ( root , parentFolder , fileName )
1408
1409
)
0 commit comments