fix(language-service): Remove getTemplateReferences() from LanguageService API (#33807)

The method `getTemplateReferences()` appears in both the LanguageService
interface and LanguageServiceHost interface. It should belong in the
latter and not the former, since the former deals with the semantics of
the language and not the mechanics.

PR Close #33807
This commit is contained in:
Keen Yee Liau
2019-11-13 13:13:59 -08:00
committed by Alex Rickabaugh
parent af2cca0c7a
commit 0688a28be3
6 changed files with 11 additions and 24 deletions

View File

@ -44,7 +44,6 @@ export function getExternalFiles(project: tss.server.Project): string[] {
// Without an Angular host there is no way to get template references.
return [];
}
ngLSHost.getAnalyzedModules();
const templates = ngLSHost.getTemplateReferences();
const logger = project.projectService.logger;
if (logger.hasLevel(tss.server.LogLevel.verbose)) {