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:

committed by
Alex Rickabaugh

parent
7c64b1889f
commit
c365eded5b
@ -28,11 +28,6 @@ export function createLanguageService(host: TypeScriptServiceHost): LanguageServ
|
||||
class LanguageServiceImpl implements LanguageService {
|
||||
constructor(private readonly host: TypeScriptServiceHost) {}
|
||||
|
||||
getTemplateReferences(): string[] {
|
||||
this.host.getAnalyzedModules(); // same role as 'synchronizeHostData'
|
||||
return this.host.getTemplateReferences();
|
||||
}
|
||||
|
||||
getDiagnostics(fileName: string): tss.Diagnostic[] {
|
||||
const analyzedModules = this.host.getAnalyzedModules(); // same role as 'synchronizeHostData'
|
||||
const results: Diagnostic[] = [];
|
||||
|
Reference in New Issue
Block a user