Skip to content
Merged
Prev Previous commit
Instead of return path of the type directive names just return type d…
…irective names
  • Loading branch information
Kanchalai Tanglertsampan committed Jul 27, 2016
commit 5ee16bfd7a53bc178c57eedc30d90c02204a74e6
5 changes: 4 additions & 1 deletion src/compiler/program.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,10 @@ namespace ts {
if (typeRoots) {
for (const root of typeRoots) {
if (host.directoryExists(root)) {
result = result.concat(host.getDirectories(root));
for (const typeDirectivePath of host.getDirectories(root)) {
// Return just the type directive names
result = result.concat(getBaseFileName(normalizePath(typeDirectivePath)));
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/services/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1884,7 +1884,7 @@ namespace ts {
};
}

// Cache host information about scrip Should be refreshed
// Cache host information about script should be refreshed
// at each language service public entry point, since we don't know when
// set of scripts handled by the host changes.
class HostCache {
Expand Down