mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Fix for Completion interferes with typeing a "type alias". #2882 + test case
This commit is contained in:
parent
64f3798bd7
commit
8b26423848
@ -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:
|
||||
|
||||
@ -18,7 +18,8 @@
|
||||
/////* /*inComment5*/
|
||||
////var v11 = '';
|
||||
//// // /*inComment6*/
|
||||
////
|
||||
////var v12 = '';
|
||||
////type htm/*inTypeAlias*/
|
||||
///
|
||||
////// /*inComment7*/
|
||||
////foo;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user