parent
7c64b8d3fd
commit
692535a935
|
@ -28,7 +28,7 @@ const hiddenHtmlElements = {
|
||||||
link: true,
|
link: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
const angularPseudoElements = ['ng-container', 'ng-content', 'ng-template'];
|
const ANGULAR_PSEUDO_ELEMENTS = ['ng-container', 'ng-content', 'ng-template'] as const;
|
||||||
|
|
||||||
export function getTemplateCompletions(
|
export function getTemplateCompletions(
|
||||||
templateInfo: AstResult, position: number): ts.CompletionEntry[] {
|
templateInfo: AstResult, position: number): ts.CompletionEntry[] {
|
||||||
|
@ -244,7 +244,7 @@ function elementCompletions(info: AstResult, path: AstPath<HtmlAst>): ts.Complet
|
||||||
sortText: name,
|
sortText: name,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
const pseudoElements = angularPseudoElements.map(name => {
|
const pseudoElements = ANGULAR_PSEUDO_ELEMENTS.map(name => {
|
||||||
return {
|
return {
|
||||||
name,
|
name,
|
||||||
// Need to cast to unknown because Angular's CompletionKind includes HTML
|
// Need to cast to unknown because Angular's CompletionKind includes HTML
|
||||||
|
|
Loading…
Reference in New Issue