mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-13 06:20:23 -06:00
Allowing brace completion inside comments in JS and TS files
This commit is contained in:
parent
7b1fc21460
commit
31dde97bbd
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -14,10 +14,10 @@
|
||||
//// }
|
||||
|
||||
goTo.marker('1');
|
||||
verify.not.isValidBraceCompletionAtPosition('(');
|
||||
verify.isValidBraceCompletionAtPosition('(');
|
||||
|
||||
goTo.marker('2');
|
||||
verify.not.isValidBraceCompletionAtPosition('(');
|
||||
verify.isValidBraceCompletionAtPosition('(');
|
||||
|
||||
goTo.marker('3');
|
||||
verify.not.isValidBraceCompletionAtPosition('(');
|
||||
verify.isValidBraceCompletionAtPosition('(');
|
||||
Loading…
x
Reference in New Issue
Block a user