File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,11 @@ export class HtmlQueryResultsRenderer {
259259 continue ;
260260 }
261261
262- await this . createTaskOrListItem ( listItem , listItemIndex ) ;
262+ if ( listItem instanceof Task ) {
263+ await this . addTask ( listItem , listItemIndex , listItem . children ) ;
264+ } else {
265+ await this . addListItem ( listItem , listItemIndex , listItem . children ) ;
266+ }
263267 this . renderedListItems . add ( listItem ) ;
264268
265269 for ( const childTask of listItem . children ) {
@@ -289,14 +293,6 @@ export class HtmlQueryResultsRenderer {
289293 return this . renderedListItems . has ( listItem ) ;
290294 }
291295
292- private async createTaskOrListItem ( listItem : ListItem , taskIndex : number ) : Promise < void > {
293- if ( listItem instanceof Task ) {
294- await this . addTask ( listItem , taskIndex , listItem . children ) ;
295- } else {
296- await this . addListItem ( listItem , taskIndex , listItem . children ) ;
297- }
298- }
299-
300296 private async addListItem ( listItem : ListItem , listItemIndex : number , children : ListItem [ ] ) : Promise < void > {
301297 const listItemElement = await this . taskLineRenderer . renderListItem (
302298 this . currentULElement ( ) ,
You can’t perform that action at this time.
0 commit comments