Skip to content

Commit c9050db

Browse files
author
Andy
committed
Merge pull request microsoft#8815 from Microsoft/navbar_debug
Show indent and childItems when debugging the navigation bar
2 parents d26d0ce + c707e80 commit c9050db

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/harness/fourslash.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,14 +1096,6 @@ namespace FourSlash {
10961096
}
10971097
addSpanInfoString();
10981098
return resultString;
1099-
1100-
function repeatString(count: number, char: string) {
1101-
let result = "";
1102-
for (let i = 0; i < count; i++) {
1103-
result += char;
1104-
}
1105-
return result;
1106-
}
11071099
}
11081100

11091101
public getBreakpointStatementLocation(pos: number) {
@@ -2055,7 +2047,7 @@ namespace FourSlash {
20552047

20562048
for (let i = 0; i < length; i++) {
20572049
const item = items[i];
2058-
Harness.IO.log(`name: ${item.text}, kind: ${item.kind}`);
2050+
Harness.IO.log(`${repeatString(item.indent, " ")}name: ${item.text}, kind: ${item.kind}, childItems: ${item.childItems.map(child => child.text)}`);
20592051
}
20602052
}
20612053

@@ -2742,6 +2734,14 @@ ${code}
27422734
fileName: fileName
27432735
};
27442736
}
2737+
2738+
function repeatString(count: number, char: string) {
2739+
let result = "";
2740+
for (let i = 0; i < count; i++) {
2741+
result += char;
2742+
}
2743+
return result;
2744+
}
27452745
}
27462746

27472747
namespace FourSlashInterface {

0 commit comments

Comments
 (0)