@@ -15,7 +15,7 @@ import {OpenOutputChannel, ProjectLoadingFinish, ProjectLoadingStart, SuggestStr
1515import { GetComponentsWithTemplateFile , GetTcbRequest , GetTemplateLocationForComponent , IsInAngularProject } from '../../common/requests' ;
1616import { NodeModule , resolve } from '../../common/resolver' ;
1717
18- import { isInsideStringLiteral , isNotTypescriptOrInsideComponentDecorator } from './embedded_support' ;
18+ import { isInsideStringLiteral , isNotTypescriptOrSupportedDecoratorField } from './embedded_support' ;
1919
2020interface GetTcbResponse {
2121 uri : vscode . Uri ;
@@ -91,23 +91,23 @@ export class AngularLanguageClient implements vscode.Disposable {
9191 document : vscode . TextDocument , position : vscode . Position ,
9292 token : vscode . CancellationToken , next : lsp . ProvideDefinitionSignature ) => {
9393 if ( await this . isInAngularProject ( document ) &&
94- isNotTypescriptOrInsideComponentDecorator ( document , position ) ) {
94+ isNotTypescriptOrSupportedDecoratorField ( document , position ) ) {
9595 return next ( document , position , token ) ;
9696 }
9797 } ,
9898 provideTypeDefinition : async (
9999 document : vscode . TextDocument , position : vscode . Position ,
100100 token : vscode . CancellationToken , next ) => {
101101 if ( await this . isInAngularProject ( document ) &&
102- isNotTypescriptOrInsideComponentDecorator ( document , position ) ) {
102+ isNotTypescriptOrSupportedDecoratorField ( document , position ) ) {
103103 return next ( document , position , token ) ;
104104 }
105105 } ,
106106 provideHover : async (
107107 document : vscode . TextDocument , position : vscode . Position ,
108108 token : vscode . CancellationToken , next : lsp . ProvideHoverSignature ) => {
109109 if ( ! ( await this . isInAngularProject ( document ) ) ||
110- ! isNotTypescriptOrInsideComponentDecorator ( document , position ) ) {
110+ ! isNotTypescriptOrSupportedDecoratorField ( document , position ) ) {
111111 return ;
112112 }
113113
@@ -131,7 +131,7 @@ export class AngularLanguageClient implements vscode.Disposable {
131131 context : vscode . SignatureHelpContext , token : vscode . CancellationToken ,
132132 next : lsp . ProvideSignatureHelpSignature ) => {
133133 if ( await this . isInAngularProject ( document ) &&
134- isNotTypescriptOrInsideComponentDecorator ( document , position ) ) {
134+ isNotTypescriptOrSupportedDecoratorField ( document , position ) ) {
135135 return next ( document , position , context , token ) ;
136136 }
137137 } ,
@@ -141,7 +141,7 @@ export class AngularLanguageClient implements vscode.Disposable {
141141 next : lsp . ProvideCompletionItemsSignature ) => {
142142 // If not in inline template, do not perform request forwarding
143143 if ( ! ( await this . isInAngularProject ( document ) ) ||
144- ! isNotTypescriptOrInsideComponentDecorator ( document , position ) ) {
144+ ! isNotTypescriptOrSupportedDecoratorField ( document , position ) ) {
145145 return ;
146146 }
147147 const angularCompletionsPromise = next ( document , position , context , token ) as
0 commit comments