File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -146,19 +146,9 @@ export class DependencyDataProvider implements TreeDataProvider<ExplorerNode> {
146146 this . _resolveProgressiveItems = resolve ;
147147 } ) ;
148148 }
149- // Race with a timeout to prevent hanging indefinitely if no
150- // progressive notifications arrive (e.g., small project or
151- // server failure). After timeout, fall through to normal path.
152- const timeout = new Promise < void > ( ( resolve ) => setTimeout ( resolve , 30_000 ) ) ;
153- await Promise . race ( [ this . _progressiveItemsReady , timeout ] ) ;
154- }
155- // If progressive items arrived, return them. Otherwise fall
156- // through to the normal getRootNodes() path so the tree is
157- // never left blank (e.g., when the JDTLS progressive
158- // notifications are not available yet).
159- if ( this . _rootItems && this . _rootItems . length > 0 ) {
160- return this . _rootItems ;
149+ await this . _progressiveItemsReady ;
161150 }
151+ return this . _rootItems || [ ] ;
162152 }
163153
164154 const children = ( ! this . _rootItems || ! element ) ?
You can’t perform that action at this time.
0 commit comments