Fix for Completion interferes with typeing a "type alias". #2882 + test case

This commit is contained in:
Paul van Brenk 2015-04-30 14:35:48 -07:00
parent 64f3798bd7
commit 8b26423848
2 changed files with 5 additions and 1 deletions

View File

@ -3138,6 +3138,9 @@ module ts {
(previousToken.parent && previousToken.parent.parent &&
previousToken.parent.parent.kind === SyntaxKind.ArrayBindingPattern); // var [ ...z|
case SyntaxKind.TypeKeyword: // type htm|
return true;
case SyntaxKind.PublicKeyword:
case SyntaxKind.PrivateKeyword:
case SyntaxKind.ProtectedKeyword:

View File

@ -18,7 +18,8 @@
/////* /*inComment5*/
////var v11 = '';
//// // /*inComment6*/
////
////var v12 = '';
////type htm/*inTypeAlias*/
///
////// /*inComment7*/
////foo;