12326 Commits

Author SHA1 Message Date
Jake Bailey
9cbcf010ce
Ensure generated property names for methods named "new" are quoted (#55750)
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2023-09-15 10:25:10 -07:00
Babak K. Shandiz
b3770e7852
🐛 Fix not emitting comments between sibling fields of object literals (#50097)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-09-14 21:29:34 -07:00
Liviu-Ionut Gheorghe
e654f9691a
Allow unescaped paragraph and line separators in string literal (#53869)
Co-authored-by: Liviu Gheorghe <liviu.gheorghe@ivfuture.uk>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-09-14 20:59:25 -07:00
Mateusz Burzyński
e9af22ace9
Consistently return errorType for super expressions in classes that extend null (#55506) 2023-09-14 19:31:50 -07:00
Anders Hejlsberg
58650d97c5
Fix narrowing of destructured tuples with different arities (#55744) 2023-09-14 13:06:48 -07:00
Mateusz Burzyński
e6321d77c7
Fixed element access expression writes for divergent write types (#55585) 2023-09-13 16:14:07 -07:00
Jake Bailey
c0b39c6967
Skip parsing JSDoc when not needed (#52921)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
2023-09-13 15:58:20 -07:00
Mateusz Burzyński
21b8892d21
Fixed an issue with errors not being correctly reported after completion requests in functions within nested calls (#54944) 2023-09-13 15:48:40 -07:00
Oleksandr T
05fdb5f671
fix(54266): Navtree doesn't return computed class members (#54271) 2023-09-13 14:50:48 -07:00
Andrew Branch
07bca994fa
Avoid unnecessary resolution-mode assertion in declaration emit (#55727) 2023-09-13 13:31:19 -07:00
Mateusz Burzyński
4c34a181c3
Fixed declaration emit for expando properties on function declarations declared using element access expressions (#55183) 2023-09-13 12:07:33 -07:00
Mateusz Burzyński
f996bab056
Preserve readonly on mapped index signatures (#55541) 2023-09-13 11:34:50 -07:00
Zzzen
811a637e6f
Fix issue with optional chaining and type inference in type guard (#55613) 2023-09-13 11:28:26 -07:00
Mateusz Burzyński
543d7ed00c
Fixed display of optional and rest parameters created as result of combining union parameters (#55625) 2023-09-13 11:25:19 -07:00
Oleksandr T
a0c51b5336
fix(55694): format issues (#55721) 2023-09-12 11:36:03 -07:00
Mateusz Burzyński
4b0f54fe9f
Fixed cache key computation for tuple target types with partially named members (#55695) 2023-09-11 14:41:08 -07:00
Anders Hejlsberg
4f899a1691
Track recursive homomorphic mapped types by the symbol of their target (#55638) 2023-09-11 14:03:00 -07:00
PhoebeSzmucer
eb2d1f93f2
Fix an off-by-one error in getBaseDirectoriesFromRootDirs (#55233)
Co-authored-by: Phoebe Szmucer <pszmucer@palantir.com>
2023-09-11 07:57:50 -07:00
Gabriela Araujo Britto
b5d6aa73d1
Add option to exclude library symbols from navTo results (#55605) 2023-09-07 11:19:56 -07:00
Zzzen
c68d1dd942
error on duplicate symbols in classes (#55438) 2023-09-01 16:25:22 -07:00
Hardik Koul
dce7b6d2e7
Prevents auto import in module: "none" (#55556)
Co-authored-by: Andrew Branch <andrew@wheream.io>
2023-08-31 09:18:26 -07:00
Gabriela Araujo Britto
cbadc78f96
Return all symbols in navto for empty string pattern (#55550) 2023-08-30 15:30:38 -07:00
Oleksandr T
fe82a610cd
fix(55014): Quick fix for ts7051 introduces incorrect type (#55020) 2023-08-30 15:17:43 -07:00
Mateusz Burzyński
f424a6be05
Discriminate types with divergent read/write property types (#55576) 2023-08-30 14:55:11 -07:00
Zzzen
c5f92d4150
support generic variant setter (#55030) 2023-08-29 14:11:33 -07:00
Mateusz Burzyński
9f9a72a2eb
Disallow object prototype property access on const enums (#55424) 2023-08-28 19:29:52 -07:00
Mateusz Burzyński
418494e4c4
Infer from parameters annotated using JSDoc (#55400) 2023-08-28 16:02:52 -07:00
Mateusz Burzyński
32ebbe05dc
Transfer all declared symbols onto the type from the interface that extends another (#55252) 2023-08-28 15:17:44 -07:00
Mateusz Burzyński
9a6a4ab1d5
Fixed a string completions regression when requested directly in argument position (#55552) 2023-08-28 15:04:06 -07:00
Mateusz Burzyński
fe70ec984e
Parse reserved identifiers as dotted names of ambient modules (#55282) 2023-08-28 14:48:20 -07:00
Wesley Wigham
5ce34cafad
Avoid trying to emit anonymous classish/expando functions as assignments (#55472) 2023-08-28 12:15:53 -07:00
Oleksandr T
9d0dc77712
fix(55494): Invalid declaration with computed property using imported symbol (#55529) 2023-08-28 11:40:03 -07:00
Zzzen
788239ff87
do not report use-before-declaration error in async like IIFE initial… (#55279) 2023-08-28 10:47:32 -07:00
Mateusz Burzyński
4b15830a1f
Add an extra test for as const satisfies with a mutable array (#55522) 2023-08-28 00:02:00 -07:00
Mateusz Burzyński
27a5bdd446
Add a test for finding all references of same-named imports from two missing modules (#55519) 2023-08-26 08:58:48 -07:00
Mateusz Burzyński
270a471e11
Add a test case with a generic member call returning a closed over object (#55514) 2023-08-26 08:57:57 -07:00
Mateusz Burzyński
5b9547b1ba
Add a fourslash completions test related to JSDoc @template on prototype method (#55513) 2023-08-26 08:57:45 -07:00
Anders Hejlsberg
753c463821
Only infer readonly tuples for const type parameters when constraints permit (#55229)
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2023-08-26 08:20:55 -07:00
Mateusz Burzyński
e0a324b050
Don't parse DotDotDotToken in JSX attribute values (#55284) 2023-08-24 10:17:33 -07:00
Shinichi Katayama
98d7e0b936
Fix double error on invalid delete of readonly property (#55449) 2023-08-24 09:57:22 -07:00
Mateusz Burzyński
fecbae5d2e
Fixed a regression in serializing setters with non-function declarations in JS files (#55492) 2023-08-24 09:45:58 -07:00
Mateusz Burzyński
f07077c7ff
Fixed a redundant used before defined error (#55283) 2023-08-24 08:35:48 -07:00
Oleksandr T
daa7e985f5
fix(55434): Renamed field takes on documentation from other field with the same name (#55469) 2023-08-23 17:02:40 -07:00
Maria José Solano
5fe88ea044
[Interactive inlay hints] Get source file from parameter node (#55476) 2023-08-23 16:40:49 -07:00
Anders Hejlsberg
fcaa900012
Fix check in getDiscriminantPropertyAccess (#55464) 2023-08-23 11:43:41 -07:00
Anders Hejlsberg
6d07d5fa40
Improve inference between types with multiple signatures (#54448)
Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com>
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2023-08-23 11:14:25 -07:00
Mateusz Burzyński
97d8c83bce
Fixed serialization of param names in setters from JS files (#55393) 2023-08-22 09:54:09 -07:00
Mateusz Burzyński
e99508b863
Make contextually-typed parameter with question token optional (#54960) 2023-08-21 15:01:07 -07:00
Zzzen
a0e0104656
error on duplicate symbols in object literals (#55193) 2023-08-17 16:34:31 -07:00
Mateusz Burzyński
3b49ce99e2
Fixed contravariant inferences from annotated optional parameters (#55397) 2023-08-16 14:49:11 -07:00