Skip to content
Permalink
main
Switch branches/tags

Commits on Aug 29, 2022

  1. Handle intersections in isGenericTypeWithoutNullableConstraint (#50497)

    * Handle intersections in isGenericTypeWithoutNullableConstraint
    
    * Add regression test
    ahejlsberg committed Aug 29, 2022
  2. LEGO: Merge pull request 50506

    LEGO: Merge pull request 50506
    csigs committed Aug 29, 2022

Commits on Aug 28, 2022

  1. LEGO: Merge pull request 50493

    LEGO: Merge pull request 50493
    csigs committed Aug 28, 2022

Commits on Aug 27, 2022

  1. LEGO: Merge pull request 50484

    LEGO: Merge pull request 50484
    csigs committed Aug 27, 2022

Commits on Aug 26, 2022

  1. fix(50415): Language server debug failure - Did not expect GetAccesso…

    …r to have an Identifier in its trivia (#50470)
    
    * fix(50415): clone props for get/set accessors
    
    * add additional tests
    
    * create helpers to create name, body, modifiers, typeName
    
    * cleanup
    a-tarasyuk committed Aug 26, 2022
  2. add unknown to DateTimeFormatTypes (#50402)

    * add unknown to DateTimeFormatTypes
    
    * move unknown to es2019.intl instead
    
    * Accepted baselines.
    
    Co-authored-by: long.ho <long.ho@cloudkitchens.com>
    longlho and long.ho committed Aug 26, 2022
  3. Optimize substitution types (#50397)

    * Optimize substitution type infrastructure
    
    * Accept new baselines
    
    * Preserve instantiated substitution types for type variables
    
    * Restrictive type parameters should have no constraint
    
    * Fix issues from top100 test run
    
    * Accept new baselines
    ahejlsberg committed Aug 26, 2022
  4. feat(7481): Operator to ensure an expression is contextually typed by…

    …, and satisfies, some type (#46827)
    
    * feat(7481): add explicit type compatibility check with 'satisfies' expression
    
    * Add failing test for lack of intersectioned contextual type
    
    * Implement the behavior
    
    * Add test corresponding to the 'if'
    
    * Add test based on defined scenarios
    
    * remove isExpression in favor of using type casting
    
    * move tests from compiler to conformance folder
    
    * update baseline
    
    * add missing contextFlags argument
    
    * use asserted type
    
    * accept baseline
    
    Co-authored-by: Ryan Cavanaugh <ryanca@microsoft.com>
    a-tarasyuk and RyanCavanaugh committed Aug 26, 2022

Commits on Aug 25, 2022

  1. fix(50435): Duplicate seeming Code Actions for convert const to let (#…

    …50442)
    
    * fix(50435): omit fix all in constToLet QF
    
    * add FixAll action
    a-tarasyuk committed Aug 25, 2022
  2. Jsdoc property description (#50269)

    * jsdocPropertyDescription
    
    * jsdocPropertyDescription
    
    * jsdocPropertyDescription
    
    * Fixes #47933
    
    * added additional test
    
    * added additional example
    
    * fixed bug
    
    * changed function to only grab the literal type
    
    * added additional condition for literals and symbols
    
    * added additional test cases
    
    * Update src/services/symbolDisplay.ts
    
    Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
    
    * addressed PR review
    
    * addressed new PR review
    
    Co-authored-by: Danay Fernandez Alfonso <t-danayf@microsoft.com>
    Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
    3 people committed Aug 25, 2022

Commits on Aug 24, 2022

  1. fix(50375): Errors for missing enum-named properties should attempt t…

    …o preserve names (#50382)
    
    * fix(50375): preserve enum-named properties
    
    * add AllowComputedPropertyEnums option
    
    * use bit shifting
    
    * rename AllowComputedPropertyEnum -> WriteComputedProps
    
    * mark WriteComputedProps as internal
    
    * mark symbolToNode as internal
    a-tarasyuk committed Aug 24, 2022
  2. Discard union types before considering weak type checks on unit-like …

    …types (#50423)
    
    * Only check isUnitType when dealing with non-unions.
    
    * Add test case.
    
    * Accepted baselines.
    DanielRosenwasser committed Aug 24, 2022
  3. Syntax operations also need to ensure project is present for the open…

    … script infos since update could be pending to make sure open script info has project (#50418)
    
    Also convert one relevant test case to baseline
    Fixes #50131
    sheetalkamat committed Aug 24, 2022
Older