File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ class DiagramUpdateCoordinator {
7070
7171 // Don't show a panel if generation failed
7272 if ( mermaid === '' ) {
73+ await vscode . window . showErrorMessage ( 'Failed to generate diagram - FlowR Analyzer Session is not ready. Check if flowrR is connected and try again.' ) ;
7374 return ;
7475 }
7576
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ export class FlowrInternalSession implements FlowrSession {
110110 // Wait for the flowr session
111111 if ( ! this . parser ) {
112112 const times = [ 3000 , 2000 , 1000 ] ;
113- while ( times . length != 0 ) {
113+ while ( times . length !== 0 ) {
114114 const timeout = times . pop ( ) ;
115115 this . outputChannel . appendLine ( `FlowR Session not available - retrying in ${ timeout } ms` ) ;
116116 await new Promise ( res => setTimeout ( res , timeout ) ) ;
@@ -122,7 +122,6 @@ export class FlowrInternalSession implements FlowrSession {
122122
123123 if ( ! this . parser ) {
124124 this . setWorking ( false ) ;
125- await vscode . window . showErrorMessage ( 'Failed to generate diagram - FlowR Analyzer Session is not ready!' ) ;
126125 return defaultOnErr ;
127126 }
128127 }
You can’t perform that action at this time.
0 commit comments