Commit Graph

26317 Commits

Author SHA1 Message Date
Ron Buckton 956a363028 Emit source positions for open/close braces (#47924) 2023-09-23 02:41:44 -04:00
Jack Works 5f818a9031 fix: class field is not accessible via super (#54056)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-09-22 16:20:12 -07:00
Oleksandr T e743d070ea fix(55404): Remove braces from arrow function" generates invalid code in JavaScript (#55429)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-09-22 16:14:06 -07:00
Nathan Shively-Sanders 982f8be6f2 More did-you-mean errors on classes in plain JS (#49827) 2023-09-22 16:12:21 -07:00
Gerrit Birkeland da8b54d831 Expose Signature.thisParameter (#53628)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-09-22 15:51:41 -07:00
Sheetal Nandi 934216f968 Support using client watch in tsserver using events (#54662) 2023-09-22 14:25:40 -07:00
Jake Bailey 4c965433b6 Partially revert PR 55723 to fix OOM in testing (#55822) 2023-09-22 11:57:01 -07:00
Oleksandr T ec2acc9f8a fix(55823) - Remove Braces From Arrow function fails when using satisfies (#55831) 2023-09-22 11:32:56 -07:00
Sheetal Nandi c5cd2758fd Use forEachResolvedModule in incremental utils (#55833) 2023-09-22 11:29:31 -07:00
Sheetal Nandi dcb0fa7f44 Incremental testing for program structure and resolutions and fixes (#55814) 2023-09-22 10:53:19 -07:00
Sheetal Nandi 83f02a4b7e Picking resolutions of module for sourceFile as method (#55818) 2023-09-22 10:24:37 -07:00
Jake Bailey a3c5d5d37e Make JSDoc skipping public, plus more configurable (#55739) 2023-09-21 15:31:09 -07:00
Mateusz Burzyński 56accb08a1 Fixed string completions that require escaping (#55118) 2023-09-21 15:05:34 -07:00
Andrew Branch 5b7b011518 Fix export path patterns with .d.ts target extensions in AutoImportProvider (#55815) 2023-09-21 15:03:11 -07:00
Nathan Shively-Sanders cf084b6376 Fix CJS export of typedef and class w/latebound names (#55053) 2023-09-21 12:25:28 -07:00
Jake Bailey 45a05f3475 Support converting string literals to templates outside of concatenation (#54647) 2023-09-21 11:16:26 -07:00
Sheetal Nandi ec1414f627 Source files not affected by all module resolution options (#55790) 2023-09-20 16:45:32 -07:00
Nathan Shively-Sanders 190d70962a Update DOM before 5.3 beta (#55798) 2023-09-20 11:24:51 -07:00
Maria José Solano 0b82e1a03f Interactive type inlay hints (#55141) 2023-09-19 22:50:11 -07:00
Jake Bailey 1a68590c9c Mark more options as affecting errors/resolution (#53403)
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
2023-09-19 15:11:21 -07:00
Mateusz Burzyński 6e01b06616 Use const context in intersections containing const type variables (#55779) 2023-09-19 14:26:14 -07:00
Oleksandr T 79736eff89 fix(55258): JSDoc render with @param Object properties (#55264) 2023-09-19 14:00:32 -07:00
Mateusz Burzyński 1f88596bb1 Narrow by comparisons to boolean literals (#53714) 2023-09-19 13:38:31 -07:00
Mateusz Burzyński 0464e91c8b Fixed an issue with type-only import promoting (#55365) 2023-09-18 12:38:00 -07:00
Mateusz Burzyński 70b7de11fb Narrow by clause expressions in switches with true condition (#53681) 2023-09-18 12:07:17 -07:00
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
Sheetal Nandi fc418a2e61 Special case "/workspaces" for watching root so that codespaces work correctly (#55738) 2023-09-14 11:34:19 -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
Jake Bailey b9b5d16bd5 Add friendly name to intrinsics in debug helpers (#55554) 2023-09-13 12:42:44 -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 647c41d26e Fixed JSDoc get-only accessors to be serialized as const (#55444) 2023-09-13 11:38:56 -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
Jake Bailey 3f0c62bf02 Fix test harness bugs hidden by method behavior (#55723) 2023-09-13 10:15:14 -07:00
Jack Works e7bb0ebfac refactor: let exportMapKey accepts bad symbol name (#54678) 2023-09-13 09:39:05 -07:00
Sheetal Nandi 3ade5022d7 Fix file matching with tsx and dts of same name are included by include patterns (#55690) 2023-09-12 13:10:34 -07:00
Sheetal Nandi 3bc41784f0 Fix issue with wildcard with supported extensions when plugins add external files and override getScriptKind to add script kinds for the additional extensions (#55716) 2023-09-12 11:52:49 -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