Handle watches of missing directories and make project the module resolution host

This commit is contained in:
Sheetal Nandi committed 2017-08-31 09:13:59 -07:00
1 parent 5aafd3f06c
commit 17565d8407
17 files changed
+586 -531

No files matched your search

+3 -3
View File
@@ -89,12 +89,12 @@ namespace ts.server {
if (forceRefresh ||
!entry ||
typeAcquisitionChanged(typeAcquisition, entry.typeAcquisition) ||
compilerOptionsChanged(project.getCompilerOptions(), entry.compilerOptions) ||
compilerOptionsChanged(project.getCompilationSettings(), entry.compilerOptions) ||
unresolvedImportsChanged(unresolvedImports, entry.unresolvedImports)) {
// Note: entry is now poisoned since it does not really contain typings for a given combination of compiler options\typings options.
// instead it acts as a placeholder to prevent issuing multiple requests
this.perProjectCache.set(project.getProjectName(), {
compilerOptions: project.getCompilerOptions(),
compilerOptions: project.getCompilationSettings(),
typeAcquisition,
typings: result,
unresolvedImports,
@@ -125,4 +125,4 @@ namespace ts.server {
this.installer.onProjectClosed(project);
}
}
}
}