This commit is contained in:
Ryan Cavanaugh 2016-09-19 18:28:53 -07:00
parent c0806439ea
commit 76f51ad37c
3 changed files with 3 additions and 3 deletions

View file

@ -389,7 +389,7 @@ namespace ts.server {
}
getTypeRootsVersion(project: ConfiguredProject) {
return getLatestDirectoryChangeTime(project.getEffectiveTypeRoots(), this.host);
return server.getLatestDirectoryChangeTime(project.getEffectiveTypeRoots(), this.host);
}
private handleChangeInSourceFileForConfiguredProject(project: ConfiguredProject) {

View file

@ -147,7 +147,7 @@ namespace ts.server {
getTypeRootsVersion() {
const roots = ts.getEffectiveTypeRoots(this.project.getCompilerOptions(), this);
return getLatestChangeTime(roots, this.host);
return server.getLatestDirectoryChangeTime(roots, this.host);
}
getScriptKind(fileName: string) {

View file

@ -94,7 +94,7 @@ namespace ts.server {
if (!host.getModifiedTime || !host.directoryExists || !paths) {
return 0;
}
return Math.max.apply(Math, paths.map(path => {
if (host.directoryExists(path)) {
return host.getModifiedTime(path);