Minor fixes in getSignatureHelpItems

This commit is contained in:
Jason Freeman 2014-09-19 12:07:50 -07:00
parent f4ed98f8bd
commit ab5ce84da8

View file

@ -3581,13 +3581,16 @@ module ts {
selectedItemIndex = 0;
}
var applicableSpan = new TypeScript.TextSpan(argumentListOrTypeArgumentList.getFullStart(), argumentListOrTypeArgumentList.end);
var applicableSpanStart = argumentListOrTypeArgumentList.getFullStart();
var applicableSpanEnd = skipTrivia(sourceFile.text, argumentListOrTypeArgumentList.end, /*stopAfterLineBreak*/ false);
var applicableSpan = new TypeScript.TextSpan(applicableSpanStart, applicableSpanEnd - applicableSpanStart);
return new SignatureHelpItems(items, applicableSpan, selectedItemIndex);
}
synchronizeHostData();
// Decide whether to show signature help
fileName = TypeScript.switchToForwardSlashes(fileName);
var sourceFile = getSourceFile(fileName);
var node = getNodeAtPosition(sourceFile, position);