Skip to content

Commit 0fd587a

Browse files
Account for comments.
1 parent 3e38693 commit 0fd587a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/signatureHelp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace ts.SignatureHelp {
3131

3232
if (shouldCarefullyCheckContext(triggerReason)) {
3333
// In the middle of a string, don't provide signature help unless the user explicitly requested it.
34-
if (isInString(sourceFile, position, startingToken)) {
34+
if (isInString(sourceFile, position, startingToken) || isInComment(sourceFile, position)) {
3535
return undefined;
3636
}
3737
}

0 commit comments

Comments
 (0)