@@ -1587,9 +1587,7 @@ namespace ts {
1587
1587
kind : ScriptElementKind . unknown ,
1588
1588
kindModifiers : ScriptElementKindModifier . none ,
1589
1589
textSpan : createTextSpanFromNode ( nodeForQuickInfo , sourceFile ) ,
1590
- displayParts : prefixWithApproximation (
1591
- typeChecker . runWithCancellationToken ( cancellationToken , typeChecker => typeToDisplayParts ( typeChecker , type , getContainerNode ( nodeForQuickInfo ) ) )
1592
- ) ,
1590
+ displayParts : typeChecker . runWithCancellationToken ( cancellationToken , typeChecker => typeToDisplayParts ( typeChecker , type , getContainerNode ( nodeForQuickInfo ) ) ) ,
1593
1591
documentation : type . symbol ? type . symbol . getDocumentationComment ( typeChecker ) : undefined ,
1594
1592
tags : type . symbol ? type . symbol . getJsDocTags ( ) : undefined
1595
1593
} ;
@@ -1602,7 +1600,7 @@ namespace ts {
1602
1600
kind : symbolKind ,
1603
1601
kindModifiers : SymbolDisplay . getSymbolModifiers ( symbol ) ,
1604
1602
textSpan : createTextSpanFromNode ( nodeForQuickInfo , sourceFile ) ,
1605
- displayParts : prefixWithApproximation ( displayParts ) ,
1603
+ displayParts,
1606
1604
documentation,
1607
1605
tags,
1608
1606
} ;
@@ -1632,13 +1630,6 @@ namespace ts {
1632
1630
}
1633
1631
}
1634
1632
1635
- function prefixWithApproximation ( displayParts : SymbolDisplayPart [ ] ) : SymbolDisplayPart [ ] {
1636
- if ( languageServiceMode === LanguageServiceMode . Semantic ) {
1637
- return displayParts ;
1638
- }
1639
- return [ textPart ( "(approximation)" ) , spacePart ( ) , ...displayParts ] ;
1640
- }
1641
-
1642
1633
/// Goto definition
1643
1634
function getDefinitionAtPosition ( fileName : string , position : number ) : readonly DefinitionInfo [ ] | undefined {
1644
1635
synchronizeHostData ( ) ;
0 commit comments