File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -601,7 +601,7 @@ namespace ts.server {
601
601
602
602
const definitions = project . getLanguageService ( ) . getDefinitionAtPosition ( file , position ) ;
603
603
if ( ! definitions ) {
604
- return emptyArray ;
604
+ return undefined ;
605
605
}
606
606
607
607
if ( simplifiedResult ) {
@@ -669,7 +669,7 @@ namespace ts.server {
669
669
const occurrences = project . getLanguageService ( ) . getOccurrencesAtPosition ( file , position ) ;
670
670
671
671
if ( ! occurrences ) {
672
- return emptyArray ;
672
+ return undefined ;
673
673
}
674
674
675
675
return occurrences . map ( occurrence => {
@@ -913,7 +913,7 @@ namespace ts.server {
913
913
if ( simplifiedResult ) {
914
914
const nameInfo = defaultProject . getLanguageService ( ) . getQuickInfoAtPosition ( file , position ) ;
915
915
if ( ! nameInfo ) {
916
- return emptyArray ;
916
+ return undefined ;
917
917
}
918
918
919
919
const displayString = displayPartsToString ( nameInfo . displayParts ) ;
@@ -1176,7 +1176,7 @@ namespace ts.server {
1176
1176
1177
1177
const completions = project . getLanguageService ( ) . getCompletionsAtPosition ( file , position ) ;
1178
1178
if ( ! completions ) {
1179
- return emptyArray ;
1179
+ return undefined ;
1180
1180
}
1181
1181
if ( simplifiedResult ) {
1182
1182
return mapDefined ( completions . entries , entry => {
You can’t perform that action at this time.
0 commit comments