From 13171536fe38d2efcb188cf363c9324a1f88062f Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Fri, 28 Jul 2017 15:03:43 -0700 Subject: [PATCH] Fix the errors in branch after port of #17469 --- src/harness/unittests/tsserverProjectSystem.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/harness/unittests/tsserverProjectSystem.ts b/src/harness/unittests/tsserverProjectSystem.ts index 00a3d66e83d..4a7cafa245b 100644 --- a/src/harness/unittests/tsserverProjectSystem.ts +++ b/src/harness/unittests/tsserverProjectSystem.ts @@ -2361,11 +2361,11 @@ namespace ts.projectSystem { const configProject = projectService.configuredProjects[0]; checkProjectActualFiles(configProject, [libFile.path]); - const diagnostics = configProject.getProjectErrors(); + const diagnostics = configProject.getAllProjectErrors(); assert.equal(diagnostics[0].code, Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code); host.reloadFS([libFile, site]); - host.triggerFileWatcherCallback(configFile.path); + host.triggerFileWatcherCallback(configFile.path, FileWatcherEventKind.Deleted); knownProjects = projectService.synchronizeProjectList(map(knownProjects, proj => proj.info)); checkNumberOfProjects(projectService, { configuredProjects: 0, externalProjects: 0, inferredProjects: 0 });