Allowing brace completion inside comments in JS and TS files

This commit is contained in:
Anubha Mathur
2016-12-07 15:58:05 -08:00
parent 7b1fc21460
commit 31dde97bbd
2 changed files with 4 additions and 4 deletions

View File

@@ -1725,7 +1725,7 @@ namespace ts {
const sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);
// Check if in a context where we don't want to perform any insertion
if (isInString(sourceFile, position) || isInComment(sourceFile, position)) {
if (isInString(sourceFile, position)) {
return false;
}