From e122d271768f9ef6992386cd5b1dbfb5638effb3 Mon Sep 17 00:00:00 2001 From: Suguru Inatomi Date: Fri, 18 Oct 2019 10:46:33 +0900 Subject: [PATCH] refactor: fix by beedback (#31248) PR Close #31248 --- packages/language-service/src/completions.ts | 2 +- packages/language-service/src/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/language-service/src/completions.ts b/packages/language-service/src/completions.ts index 2d76f591e7..d709f8457b 100644 --- a/packages/language-service/src/completions.ts +++ b/packages/language-service/src/completions.ts @@ -29,7 +29,7 @@ const hiddenHtmlElements = { }; const ANGULAR_ELEMENTS: ReadonlyArray = - ['ng-container', 'ng-content', 'ng-template'] as const ; + ['ng-container', 'ng-content', 'ng-template'] ; export function getTemplateCompletions( templateInfo: AstResult, position: number): ts.CompletionEntry[] { diff --git a/packages/language-service/src/types.ts b/packages/language-service/src/types.ts index 15e62a3ad4..d5d55cacbf 100644 --- a/packages/language-service/src/types.ts +++ b/packages/language-service/src/types.ts @@ -262,6 +262,7 @@ export enum DirectiveKind { * ScriptElementKind for completion. */ export enum CompletionKind { + ANGULAR_ELEMENT = 'angular element', ATTRIBUTE = 'attribute', COMPONENT = 'component', ELEMENT = 'element', @@ -274,7 +275,6 @@ export enum CompletionKind { REFERENCE = 'reference', TYPE = 'type', VARIABLE = 'variable', - ANGULAR_ELEMENT = 'angular element' } /**