@@ -145,38 +145,41 @@ export class QuickInfoBuilder {
145145 }
146146
147147 private getQuickInfoForVariableSymbol ( symbol : VariableSymbol ) : ts . QuickInfo {
148- const documentation = this . getDocumentationFromTypeDefAtLocation ( symbol . initializerLocation ) ;
148+ const info = this . getQuickInfoFromTypeDefAtLocation ( symbol . initializerLocation ) ;
149149 return createQuickInfo (
150150 symbol . declaration . name ,
151151 DisplayInfoKind . VARIABLE ,
152152 getTextSpanOfNode ( this . node ) ,
153153 undefined /* containerName */ ,
154154 this . typeChecker . typeToString ( symbol . tsType ) ,
155- documentation ,
155+ info ?. documentation ,
156+ info ?. tags ,
156157 ) ;
157158 }
158159
159160 private getQuickInfoForLetDeclarationSymbol ( symbol : LetDeclarationSymbol ) : ts . QuickInfo {
160- const documentation = this . getDocumentationFromTypeDefAtLocation ( symbol . initializerLocation ) ;
161+ const info = this . getQuickInfoFromTypeDefAtLocation ( symbol . initializerLocation ) ;
161162 return createQuickInfo (
162163 symbol . declaration . name ,
163164 DisplayInfoKind . LET ,
164165 getTextSpanOfNode ( this . node ) ,
165166 undefined /* containerName */ ,
166167 this . typeChecker . typeToString ( symbol . tsType ) ,
167- documentation ,
168+ info ?. documentation ,
169+ info ?. tags ,
168170 ) ;
169171 }
170172
171173 private getQuickInfoForReferenceSymbol ( symbol : ReferenceSymbol ) : ts . QuickInfo {
172- const documentation = this . getDocumentationFromTypeDefAtLocation ( symbol . targetLocation ) ;
174+ const info = this . getQuickInfoFromTypeDefAtLocation ( symbol . targetLocation ) ;
173175 return createQuickInfo (
174176 symbol . declaration . name ,
175177 DisplayInfoKind . REFERENCE ,
176178 getTextSpanOfNode ( this . node ) ,
177179 undefined /* containerName */ ,
178180 this . typeChecker . typeToString ( symbol . tsType ) ,
179- documentation ,
181+ info ?. documentation ,
182+ info ?. tags ,
180183 ) ;
181184 }
182185
@@ -217,7 +220,7 @@ export class QuickInfoBuilder {
217220 node : TmplAstNode | AST = this . node ,
218221 ) : ts . QuickInfo {
219222 const kind = dir . isComponent ? DisplayInfoKind . COMPONENT : DisplayInfoKind . DIRECTIVE ;
220- const documentation = this . getDocumentationFromTypeDefAtLocation ( dir . tcbLocation ) ;
223+ const info = this . getQuickInfoFromTypeDefAtLocation ( dir . tcbLocation ) ;
221224 let containerName : string | undefined ;
222225 if ( ts . isClassDeclaration ( dir . tsSymbol . valueDeclaration ) && dir . ngModule !== null ) {
223226 containerName = dir . ngModule . name . getText ( ) ;
@@ -229,22 +232,20 @@ export class QuickInfoBuilder {
229232 getTextSpanOfNode ( this . node ) ,
230233 containerName ,
231234 undefined ,
232- documentation ,
235+ info ?. documentation ,
236+ info ?. tags ,
233237 ) ;
234238 }
235239
236- private getDocumentationFromTypeDefAtLocation (
237- tcbLocation : TcbLocation ,
238- ) : ts . SymbolDisplayPart [ ] | undefined {
240+ private getQuickInfoFromTypeDefAtLocation ( tcbLocation : TcbLocation ) : ts . QuickInfo | undefined {
239241 const typeDefs = this . tsLS . getTypeDefinitionAtPosition (
240242 tcbLocation . tcbPath ,
241243 tcbLocation . positionInFile ,
242244 ) ;
243245 if ( typeDefs === undefined || typeDefs . length === 0 ) {
244246 return undefined ;
245247 }
246- return this . tsLS . getQuickInfoAtPosition ( typeDefs [ 0 ] . fileName , typeDefs [ 0 ] . textSpan . start )
247- ?. documentation ;
248+ return this . tsLS . getQuickInfoAtPosition ( typeDefs [ 0 ] . fileName , typeDefs [ 0 ] . textSpan . start ) ;
248249 }
249250
250251 private getQuickInfoAtTcbLocation ( location : TcbLocation ) : ts . QuickInfo | undefined {
0 commit comments