Account for comments.

This commit is contained in:
Daniel Rosenwasser 2018-07-03 13:02:14 -07:00
parent 3e38693425
commit 0fd587a3c3

View File

@ -31,7 +31,7 @@ namespace ts.SignatureHelp {
if (shouldCarefullyCheckContext(triggerReason)) {
// In the middle of a string, don't provide signature help unless the user explicitly requested it.
if (isInString(sourceFile, position, startingToken)) {
if (isInString(sourceFile, position, startingToken) || isInComment(sourceFile, position)) {
return undefined;
}
}