mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 03:23:08 -06:00
Print number of files in the project when printing project
This commit is contained in:
parent
345f36d2ea
commit
2b97b2c04d
@ -889,10 +889,11 @@ namespace ts.server {
|
||||
|
||||
filesToString() {
|
||||
if (!this.program) {
|
||||
return "";
|
||||
return "\tFiles (0)\n";
|
||||
}
|
||||
let strBuilder = "";
|
||||
for (const file of this.program.getSourceFiles()) {
|
||||
const sourceFiles = this.program.getSourceFiles();
|
||||
let strBuilder = `\tFiles (${sourceFiles.length})\n`;
|
||||
for (const file of sourceFiles) {
|
||||
strBuilder += `\t${file.fileName}\n`;
|
||||
}
|
||||
return strBuilder;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user