File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,16 @@ const DocumentSymbolProvider = {
24
24
for ( let index = 0 ; index < node . namedChildCount ; index ++ )
25
25
this . getAllChildren ( node . namedChild ( index ) , symbolsChildren )
26
26
else
27
- for ( let index = 0 ; index < node . childCount ; index ++ )
28
- this . getAllChildren ( node . child ( index ) , symbolsChildren )
27
+ for ( const childNode of node . namedChildren )
28
+ this . getAllChildren ( childNode , symbolsChildren )
29
+ // for (let index = 0; index < node.childCount; index++)
30
+ // this.getAllChildren(node.child(index), symbolsChildren)
29
31
30
32
31
33
const range = extension . nodeToVscodeRange ( node )
32
34
const documentSymbol = new vscode . DocumentSymbol (
33
35
node . type ,
34
- node . text ,
36
+ node . text . substring ( 0 , 100 ) ,
35
37
node . isNamed ( ) ? vscode . SymbolKind . Function : vscode . SymbolKind . Field ,
36
38
range ,
37
39
range
You can’t perform that action at this time.
0 commit comments