@@ -2464,12 +2464,12 @@ module ts {
2464
2464
2465
2465
let start = new Date ( ) . getTime ( ) ;
2466
2466
let currentToken = getTokenAtPosition ( sourceFile , position ) ;
2467
- log ( "getCompletionsAtPosition : Get current token: " + ( new Date ( ) . getTime ( ) - start ) ) ;
2467
+ log ( "getCompletionData : Get current token: " + ( new Date ( ) . getTime ( ) - start ) ) ;
2468
2468
2469
2469
start = new Date ( ) . getTime ( ) ;
2470
2470
// Completion not allowed inside comments, bail out if this is the case
2471
2471
let insideComment = isInsideComment ( sourceFile , currentToken , position ) ;
2472
- log ( "getCompletionsAtPosition : Is inside comment: " + ( new Date ( ) . getTime ( ) - start ) ) ;
2472
+ log ( "getCompletionData : Is inside comment: " + ( new Date ( ) . getTime ( ) - start ) ) ;
2473
2473
2474
2474
if ( insideComment ) {
2475
2475
log ( "Returning an empty list because completion was inside a comment." ) ;
@@ -2480,14 +2480,14 @@ module ts {
2480
2480
// Note: previousToken can be undefined if we are the beginning of the file
2481
2481
start = new Date ( ) . getTime ( ) ;
2482
2482
let previousToken = findPrecedingToken ( position , sourceFile ) ;
2483
- log ( "getCompletionsAtPosition : Get previous token 1: " + ( new Date ( ) . getTime ( ) - start ) ) ;
2483
+ log ( "getCompletionData : Get previous token 1: " + ( new Date ( ) . getTime ( ) - start ) ) ;
2484
2484
2485
2485
// The caret is at the end of an identifier; this is a partial identifier that we want to complete: e.g. a.toS|
2486
2486
// Skip this partial identifier to the previous token
2487
2487
if ( previousToken && position <= previousToken . end && previousToken . kind === SyntaxKind . Identifier ) {
2488
2488
let start = new Date ( ) . getTime ( ) ;
2489
2489
previousToken = findPrecedingToken ( previousToken . pos , sourceFile ) ;
2490
- log ( "getCompletionsAtPosition : Get previous token 2: " + ( new Date ( ) . getTime ( ) - start ) ) ;
2490
+ log ( "getCompletionData : Get previous token 2: " + ( new Date ( ) . getTime ( ) - start ) ) ;
2491
2491
}
2492
2492
2493
2493
// Check if this is a valid completion location
@@ -2594,7 +2594,7 @@ module ts {
2594
2594
}
2595
2595
}
2596
2596
2597
- log ( "getCompletionsAtPosition : Semantic work: " + ( new Date ( ) . getTime ( ) - semanticStart ) ) ;
2597
+ log ( "getCompletionData : Semantic work: " + ( new Date ( ) . getTime ( ) - semanticStart ) ) ;
2598
2598
2599
2599
return { symbols, isMemberCompletion, isNewIdentifierLocation, location } ;
2600
2600
0 commit comments