Commit Graph
12098 Commits
Author SHA1 Message Date
Anders Hejlsberg f8b3ea7972 Propagate errorType in getConditionalType (#53801) 2023-04-16 16:15:55 -07:00
Vitaly c70fa514b0 Don't include completions for current and later parameters (#52690) 2023-04-14 17:05:55 -07:00
Oleksandr T 0c5be02dcc feat(7411): JSX namespaced attribute syntax not supported (#47356) 2023-04-14 16:58:49 -07:00
Anders Hejlsberg e49db97f97 Exclude parameters of non-inferrable signatures from inference (#53756) 2023-04-14 12:44:37 -07:00
Sebastian SilbermannandDaniel Rosenwasser b92483f20c RFC: Consult new JSX.ElementType for valid JSX element types (#51328)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2023-04-14 10:54:02 -07:00
ZzzenandNathan Shively-Sanders 458c5e6c64 fix(53138): go-to-definition not working on expression of SatisfiesExpression (#53164)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-04-13 15:29:18 -07:00
Donald33 Wang adcc39d2c7 Allow custom switch-case indentation in formatting (#53733) 2023-04-13 08:35:05 -07:00
Josh Goldberg ✨ 0023505dc7 Removed unnecessary use-before-define error for const enums (#53625) 2023-04-12 13:38:29 -07:00
KhafraandNathan Shively-Sanders fd6f61ea6b add Intl.supportedValuesOf (#53511)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-04-12 12:18:49 -07:00
Anders HejlsbergandMaria Solano bec204c844 Revise discriminateTypeByDiscriminableItems function (#53709)
Co-authored-by: Maria Solano <mariasolano@microsoft.com>
2023-04-12 07:25:58 -07:00
Gabriela Araujo Britto 2db688e36f Reset type resolution stack when starting to compute variance (#53549) 2023-04-11 14:05:31 -07:00
Luca Pizzini af5e8e2e4e fix(lib.d.ts): fixed buffer parameter type of DataView (#53130) 2023-04-11 08:19:25 -07:00
Nicolas Rodriguez 7b2b6a8cc2 fix(19577): fix regression with fully inferred types and non-null assertions (#50092) 2023-04-10 17:32:56 -07:00
Ron Buckton 3e76fb5ca2 Fix CJS local binding emit for ES decorators (#53725) 2023-04-10 17:05:38 -04:00
Vitaly a97ba985b2 infer from usages: support short-circuiting assignment operators (#52860) 2023-04-10 13:13:46 -07:00
Tobias S 8369d41efe fix ordering of code fix import with triple-slash directives (#52484) 2023-04-10 10:45:57 -07:00
Isabel Duan d4c48e1495 Adds linked editing for JSX tags (#53284) 2023-04-07 13:39:10 -07:00
Ryan Cavanaugh c89f87f66a Detect malformed UTF-8 files and refuse to engage further (#53667) 2023-04-07 12:51:47 -07:00
Jake Bailey 7f6376794e Reuse operandType in checkPrefixUnaryExpression (#53682) 2023-04-06 13:37:12 -07:00
Andrew Branch 287ee41cf2 Fix two module specifier ending preference detection issues (#53691) 2023-04-06 13:06:58 -07:00
Jake Bailey f243b987af Fix crash in parseJsxChild found by fuzzing (#53674) 2023-04-05 13:47:02 -07:00
Jake Bailey bebb6d0086 Disable JSX recovery hack when in unary expression context (#53666) 2023-04-05 13:04:37 -07:00
Jake Bailey a720ba921f Fix crash when private id in array assignment (#53665) 2023-04-05 13:04:13 -07:00
Gabriela Araujo Britto e83d61398e Provide snippet completions for @param in JSDoc (#53260) 2023-04-04 11:35:09 -07:00
Oleksandr T 3f7a8d5604 fix(52828): No signature help in parameter declaration before , and ) (#52840) 2023-04-03 13:43:20 -07:00
Anders Hejlsberg 3f675b60bf More complete check in isConstTypeVariable (#53341) 2023-04-01 14:45:31 -07:00
Anders Hejlsberg b40385b595 Explicit undefined return type checked similar to explicit void return type (#53607) 2023-04-01 14:44:52 -07:00
Andrew Branch 9052ef895a Fix Go To Source Definition in --moduleResolution bundler (#53613) 2023-03-31 15:50:11 -07:00
Andrew Branch 52a8061e11 Type-only auto-import improvements (#53590) 2023-03-30 12:01:40 -07:00
Andrew Branch 5586727193 Allow getter and setter types to be unrelated (#53417) 2023-03-30 08:51:01 -07:00
Mateusz Burzyński ae2b4afdcb Provide string completions within unions in indexed access types (#53225) 2023-03-29 10:07:34 -07:00
Oleksandr T b6fed21a87 fix(53347): Incorrect generated JS code when private (hashtag) property is used with parenthesis in left assignment (#53434) 2023-03-28 13:24:36 -04:00
Mateusz Burzyński 089876a5c5 Retry string completions from the inferred type by default (#53481) 2023-03-27 18:21:03 -07:00
Maria José Solano 6e44db7d1d Don't capture type parameters defined inside the extraction range with "Extract to function" (#53543) 2023-03-27 18:12:41 -07:00
Ron Buckton 85ef01d31a Fix double-emit in constructor (#53547) 2023-03-27 18:16:49 -04:00
Zzzen 8e08f38a08 fix(53006): generate let in namespaces for expando (#53206) 2023-03-27 13:26:14 -07:00
Maria José Solano c5b288487a Don't error when function has an implicit return but its return type is assignable to undefined (#53490) 2023-03-27 13:21:07 -07:00
Oleksandr T 437fd059be fix(53257): Illegal .d.ts class property definition for "constructor" generated from JavaScript (#53266) 2023-03-27 11:32:10 -07:00
形素叢集・ぐらふぃーむ c2dc2fd9b9 fix(396): (Dis)allow Octal and Bad Escape Sequences in String and (Tagged) Template Literals (#51837) 2023-03-24 16:15:50 -07:00
Andrew Branch 3a3146e25f Add tests for completions crash (#53472) 2023-03-23 15:59:43 -07:00
Jake Bailey 9bd1a3225b Revert PR #53255 (#53464) 2023-03-23 12:52:05 -07:00
Mateusz Burzyński 218180ded2 Fixed an issue with an incorrect resolved signature being cached/returned sometimes for signatures depending on the contextual type/outer inference (#52146) 2023-03-23 12:15:33 -07:00
Wesley Wigham 916f9b7344 Handle jsx runtime implicit synthetic import in find all references (#51319) 2023-03-23 12:08:52 -07:00
Gabriela Araujo Britto 89478254c8 Defer type comparability check for assertions (#53261) 2023-03-23 11:46:42 -07:00
Gabriela Araujo Britto d5fd34b037 Don't error when calling resolveEntityName (#53441) 2023-03-23 10:49:53 -07:00
Lyu, Wei-Da 5712730c2d fix: non-relative path completion without baseUrl (#52908) 2023-03-23 08:57:57 -07:00
Anders Hejlsberg 511921e1e2 Improve detection of cases where subtype reduction is unnecessary (#53435) 2023-03-23 07:09:12 -07:00
Anders Hejlsberg 37bafa539c Exclude comparable relation from literal type relation optimization (#53419) 2023-03-23 07:04:16 -07:00
Anders HejlsbergandDaniel Rosenwasser 25550bd3d6 Exclude special index signature rule from strict subtype relation (#53388)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2023-03-23 07:03:09 -07:00
Andrew Branch 7009c76d00 Support wildcard exports in tsconfig lookup (#53443) 2023-03-22 15:21:50 -07:00