Skip to content

Releases: microsoft/TypeScript-TmLanguage

v0.0.55: Match type arguments before the template string

06 Nov 01:15
Compare
Choose a tag to compare
  • Merge pull request #783 from kufii/patch-1
    set unicode escape sequences to constant.character.escape scope

  • Fix multiline arrow with destructuring parameters
    Fixes #780

  • Fix detection of function call when called after another function call
    Fixes #785

  • Fix regexp tail detection
    Fixes #786

  • Fix build break

  • Fix the regexp tail to account for // and /* both
    Fixes #787

  • Handle readonly in type arguments
    Fixes #790

  • Handle possibly parameters when there is no type annotation
    Fixes #791

  • Handle incorrect order of string and comment matching
    Fixes #793

  • Fix detection of division operator when its followed by !
    Fixes #794

  • Handle declare modifier for class fields
    Fixes #797

  • Fix multiline arrow assignment with multiline arrow type parameters to the object member
    Fixes #796

  • Type-only imports and exports (#792)

  • Private fields corresponding to microsoft/TypeScript#30829

  • Fix incorrect detection of regexp and arithmetic operator
    Fixes #806

  • Fix string detection in arrow lookup
    Fixes #809

  • In function call allow when type argument starts with object type to be on multi line
    Fixes #807

  • Support awaited type operator added as part of microsoft/TypeScript#35998

  • Handle multiline type arguments of a function call better since it could be not followed by parenthesis and be followed instead by template string
    Fixes #811

  • Validate scope extensions..

  • Fix scope extensions for .tsx shebang
    Fixes #813

  • Fix type detection in instance of expression
    Fixes #814

  • Support for named tuple added as part of microsoft/TypeScript#38234

  • Update 'copyfiles' dependency to address downstream 'minimist' vulnerability (#818)

  • Increase level of type argument depth in possibly type
    Fixes #840

  • Fix the operand of a 'delete' operator must be optional error in typescript 4.0 (#838)

  • Include matching return type using arrow in method declaration
    Fixes #836

  • Fix recognition of regexp class
    Fixes #832

  • handle expression after return keyword explicitly
    Fixes #823

  • Increase depth for matching parens, bracews and brackets
    Fixes #816

  • Match type arguments before the template string
    Fixes #822

Grammar diff: 89075a4...0293b47

v0.0.53: Fix ! operator in function call

14 Oct 16:52
Compare
Choose a tag to compare
  • Merge pull request #768 from Kingwl/master
    add nullish coalescing support
    Fixes #762

  • Update type predicate matching per microsoft/TypeScript#32695

  • Consume single line comment endings for import declaration to correctly detect end of the import declaration
    Fixes #774

  • Fix field declaration without type annotation when its last element
    Fixed #766

  • Fix the function detection for variables/parameters typed as Function type
    Fixes #763

  • Use 'contentName' instead of 'name' to mark embedded jsx expressions
    Jsx expressions currently use name to mark the entire expresion (including the opening and closing braces) as meta.embedded.expression. This causes VS Code to treat the entire expresssion as JavaScript for basic language commands such as highlighting.
    This fix instead changes jsx expressions to only mark the expression itself (and not the braces) as meta.embedded.expression. This lets VS Code correctly handle commenting in a few edge cases

  • Fix ! operator in function call
    Fixes #776

Grammar diff: 02a43e6...89075a4

v0.0.52

22 Jul 22:13
Compare
Choose a tag to compare
Fix the qstring

v0.0.51: No need to generate scopes for marker given that we have baseline for…

22 Jul 20:37
Compare
Choose a tag to compare
  • Fix readonly modifier detection when its followed by object type
    Fixes #743

  • Fix detection of end of if statement without semicolon
    Fixes #741

  • Fix regexp detection when followed by return keyword
    Fixes #737

  • Fix an issue with coloring of the this parameter in parameter lists

  • Fix of/in operator detection when no space after ]
    Fixes #756

  • Increase one more level of <> detection in typeparameters
    Fixes #744

  • Fix incorrect highlighting of jsx expression following comment
    Fixes #754

  • Handle return type of arrow in possibly multiline arrow of the object member
    Fixes #751

  • Handle inline comments when detecting arithmetic operator followed by number
    Fixes #750

  • When detecting arrow '<T extends' is not guaranteed to be type parameter of arrow as it could be type assertion with conditional type
    Fixes #748

  • Fix quoted string detection
    Fixes #760

Grammar diff: fae6485...d32a156

v0.0.50

21 Mar 20:49
fae6485
Compare
Choose a tag to compare
  • Fix multiline type annotation in parameters
    Fixes #715

  • Replace cpx with copyfiles
    Merge pull request #716 from uniqueiniquity/replaceCPX

  • Fix incorrect regexp matching when followed by comment
    Fixes #717

  • Allow abstract class expression
    Fixes #728

  • Match regexp followed by if expression with special casing
    Fixes #732

  • Scope length method correctly
    Fixes #730

  • Fix matching of method template tags
    Fixes #727

  • Match anything following ternary ':' as expression in class body as fallback
    Fixes #721 and #724

  • Fix the method declaration detection to handle complete typeparameter list on single line
    Fixes #720

Grammar diff: 4cf7872...d8c9720

v0.0.49

22 Jan 18:48
4cf7872
Compare
Choose a tag to compare
  • Handle inline comment inside arrow parenthesis
    Fixes #686

  • Fix incorrect constructor type's type parameter detection
    Fixes #687

  • Dont identify x ? as optional parameter in possible multiline arrow unless its followed by type annotation or assigment
    Fixes #689

  • Support custom jsdoc tags
    Fixes #688

  • Fix in correctly detecting arrow type argument end with as =>
    Fixes #692

  • Handle type arguments and type parameters when matching type correctly
    Fixes #695

  • Handle one more level of typearguments
    Fixes #698

  • Add support for definite assignment operator
    Fixes #701

  • Handle new line in variable initializer when expression ends with arrow operator
    Fixes #702

  • Readonly modifier support from PR microsoft/TypeScript#29435

  • Add const assertion as per microsoft/TypeScript#29510

  • Add numeric literal and regex in binding element matching as it might be needed when matching arrow expression spanned on multiple lines
    Fixes #711

Grammar diff: 731bab7...4449716

v0.0.47: Dont consume space after cast expression

20 Nov 17:12
Compare
Choose a tag to compare
  • Fixed incorrectly matched destructuring parametes in type declaration.
    Fixes #675

  • Handle single line comments in arrow function
    Fixes #674

  • Handle return type of function declaration on new line
    Fixes #677

  • Fix return type on new line of arrow function
    Fixes #677

  • Treat _ in type argument list as infering type argument
    Support for microsoft/TypeScript#26349

  • Colorize bigint

  • Handle variable initializer in for in loop
    Fixes #683

  • Add typeof to type argument start detection
    Fixes #685

  • Dont consume space after cast expression
    Fixes #684

Grammar diff: a34cb11...731bab7

v0.0.46: Add +\- to the list to end the new expression

18 Oct 19:57
Compare
Choose a tag to compare
  • Add comment matching in switch clause
    Fixes #666

  • Fixes shorthand property assignment followed by comment
    Fixes #666

  • Fix incorrect detection of arrow in embedded code
    Fixes #667

  • Fallback to matching strings before parameters to ensure when method call gets detected as method definition
    Fixes #668

  • Handle inline comment in object literal
    Fixes #670

  • Fix the lookbehind for multiline arrow to include return keyword
    Fixes #672

  • Add +- to the list to end the new expression
    Fixes #673

Grammar diff: c90418c...a34cb11

v0.0.45: Fix detection of import-export clause when name is $

13 Sep 15:48
Compare
Choose a tag to compare
  • Fix incorrect export declaration detection when export is not ending the word
    Fixes #662

  • Fix the function expression overload
    Fixes #663

  • Fix detection of import-export clause when name is $
    Fixes #665

Grammar diff: a9ad6eb...c90418c

v0.0.44: Match template strings while matching strings

31 Aug 21:42
Compare
Choose a tag to compare
  • Scope const declarations as const
    Fixes #641, #542

  • Rest in binding pattern

  • Include export declare pattern in declaration matching
    Fixes #642

  • Handle field declaration without type or assignment
    Fixes #643

  • Revert bccefcd as named type argument is not yet supported feature.

  • Treat * in type argument list as infering type argument
    Support for microsoft/TypeScript#26349

  • Allow 'export default interface'
    Fixes #653

  • Do not consume end of line in a single line comment
    Fixes #646

  • Handle comma followed by single line comment in variable expression
    Fixes #491 portion after making comments not consume end of line

  • Handle function expressions to consume line ending of single line comment since we rely on lookback of function completion (})
    Fixes #455 after making change in comments to not consume line endings

  • Treat spaces followed by < as ending of as operator
    Fixes #647

  • Merge pull request #656 from mjbvz/fix-653
    Allow 'export default interface'

  • Handle optional fields followed by , and no type
    Fixes #651

  • Fix the line ending consumption of let and var expression
    Fixes #654

  • Test for #652

  • Handle export declaration when its followed by comment
    Fixes #650

  • add unknown type

  • Allow _ in jsx attribute names
    Fixes #648

  • Add tests for #649
    Fixes #649

  • Merge pull request #655 from mjbvz/fix-648
    Allow underscore in jsx attribute names

  • Merge pull request #658 from 43081j/unknown-type
    add unknown type

  • Match template strings while matching strings
    Fixes #661

Grammar diff: 84de89d...a9ad6eb