@@ -219,15 +219,15 @@ export const TabsUI = (props: TabsUIProps) => {
219219 if ( ! currentPath ) return
220220
221221 const listener = ( path : string ) => {
222- if ( currentPath . endsWith ( path ) ) {
223- setCompileState ( 'idle' )
222+ if ( currentPath . endsWith ( path ) ) {
223+ setCompileState ( 'idle' )
224224 }
225225 }
226226
227227 props . plugin . on ( 'editor' , 'contentChanged' , listener )
228228
229229 return ( ) => {
230- props . plugin . off ( 'editor' , 'contentChanged' )
230+ props . plugin . off ( 'editor' , 'contentChanged' )
231231 }
232232 } , [ tabsState . selectedIndex , props . plugin , props . tabs ] )
233233
@@ -376,9 +376,9 @@ export const TabsUI = (props: TabsUIProps) => {
376376 const onFinished = async ( _success : boolean ) => {
377377 if ( mySeq !== compileSeq . current || settledSeqRef . current === mySeq ) return
378378
379- if ( compileWatchdog . current ) {
380- clearTimeout ( compileWatchdog . current )
381- compileWatchdog . current = null
379+ if ( compileWatchdog . current ) {
380+ clearTimeout ( compileWatchdog . current )
381+ compileWatchdog . current = null
382382 }
383383
384384 const fresh = await waitForFreshCompilationResult ( mySeq , path , startedAt )
@@ -437,9 +437,9 @@ export const TabsUI = (props: TabsUIProps) => {
437437 nr : 'noir-compiler'
438438 } [ tabsState . currentExt ]
439439
440- if ( ! compilerName ) {
441- setCompileState ( 'idle' )
442- return
440+ if ( ! compilerName ) {
441+ setCompileState ( 'idle' )
442+ return
443443 }
444444
445445 await props . plugin . call ( 'fileManager' , 'saveCurrentFile' )
@@ -462,7 +462,7 @@ export const TabsUI = (props: TabsUIProps) => {
462462 if ( errs . length ) {
463463 await props . plugin . call ( 'manager' , 'activatePlugin' , 'solidity' )
464464 await props . plugin . call ( 'menuicons' , 'select' , 'solidity' )
465- }
465+ }
466466 settledSeqRef . current = mySeq
467467 return
468468 }
@@ -479,7 +479,7 @@ export const TabsUI = (props: TabsUIProps) => {
479479 } else {
480480 await props . plugin . call ( compilerName , 'compile' , path )
481481 }
482-
482+
483483 } catch ( e ) {
484484 console . error ( e )
485485 setCompileState ( 'idle' )
0 commit comments