Cleanup
This commit is contained in:
parent
c0806439ea
commit
76f51ad37c
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue