feat(language-service): hover information for component NgModules (#33118)
Enables providing information about the NgModule a component is in when its selector is hovered on in a template. Also enables differentiation of a component and a directive when a directive class name is hovered over in a TypeScript file. Next step is to enable hover information for directives. Part of #32565. PR Close #33118
This commit is contained in:
@ -95,7 +95,7 @@ class LanguageServiceImpl implements LanguageService {
|
||||
this.host.getAnalyzedModules(); // same role as 'synchronizeHostData'
|
||||
const templateInfo = this.host.getTemplateAstAtPosition(fileName, position);
|
||||
if (templateInfo) {
|
||||
return getHover(templateInfo, position);
|
||||
return getHover(templateInfo, position, this.host);
|
||||
}
|
||||
|
||||
// Attempt to get Angular-specific hover information in a TypeScript file, the NgModule a
|
||||
|
Reference in New Issue
Block a user