File tree 3 files changed +6
-11
lines changed
3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -756,10 +756,7 @@ namespace FourSlash {
756
756
757
757
public verifyCompletionListIsGlobal ( expected : boolean ) {
758
758
const completions = this . getCompletionListAtCaret ( ) ;
759
- if ( ! completions && expected !== undefined ) {
760
- this . raiseError ( `verifyCompletionListIsGlobal failed - expected result to be ${ completions } ` ) ;
761
- }
762
- else if ( completions && completions . isGlobalCompletion !== expected ) {
759
+ if ( completions && completions . isGlobalCompletion !== expected ) {
763
760
this . raiseError ( `verifyCompletionListIsGlobal failed - expected result to be ${ completions . isGlobalCompletion } ` ) ;
764
761
}
765
762
}
Original file line number Diff line number Diff line change @@ -886,7 +886,7 @@ namespace ts.Completions {
886
886
}
887
887
888
888
const semanticStart = timestamp ( ) ;
889
- let isGlobalCompletion : boolean ;
889
+ let isGlobalCompletion = false ;
890
890
let isMemberCompletion : boolean ;
891
891
let isNewIdentifierLocation : boolean ;
892
892
let symbols : Symbol [ ] = [ ] ;
@@ -902,7 +902,6 @@ namespace ts.Completions {
902
902
else {
903
903
symbols = tagSymbols ;
904
904
}
905
- isGlobalCompletion = false ;
906
905
isMemberCompletion = true ;
907
906
isNewIdentifierLocation = false ;
908
907
}
@@ -913,7 +912,6 @@ namespace ts.Completions {
913
912
if ( ! typeChecker . isUnknownSymbol ( tagSymbol ) ) {
914
913
symbols = [ tagSymbol ] ;
915
914
}
916
- isGlobalCompletion = false ;
917
915
isMemberCompletion = true ;
918
916
isNewIdentifierLocation = false ;
919
917
}
Original file line number Diff line number Diff line change 23
23
goTo . marker ( "1" ) ;
24
24
verify . completionListIsGlobal ( false ) ;
25
25
goTo . marker ( "2" ) ;
26
- verify . completionListIsGlobal ( undefined ) ;
26
+ verify . completionListIsGlobal ( false ) ;
27
27
goTo . marker ( "3" ) ;
28
- verify . completionListIsGlobal ( undefined ) ;
28
+ verify . completionListIsGlobal ( false ) ;
29
29
goTo . marker ( "4" ) ;
30
30
verify . completionListIsGlobal ( true ) ;
31
31
goTo . marker ( "5" ) ;
32
- verify . completionListIsGlobal ( undefined ) ;
32
+ verify . completionListIsGlobal ( false ) ;
33
33
goTo . marker ( "6" ) ;
34
34
verify . completionListIsGlobal ( true ) ;
35
35
goTo . marker ( "7" ) ;
36
- verify . completionListIsGlobal ( undefined ) ;
36
+ verify . completionListIsGlobal ( false ) ;
37
37
goTo . marker ( "8" ) ;
38
38
verify . completionListIsGlobal ( false ) ;
39
39
goTo . marker ( "9" ) ;
You can’t perform that action at this time.
0 commit comments