Commit Graph
17224 Commits
Author SHA1 Message Date
Ron Buckton 79da510066 Fix incorrect flags in modifierFlagsCache (#56198) 2023-10-25 18:24:53 -04:00
Sheetal Nandi 55395f9e01 When caching type references cache the tracked symbols so they can be emitted in the d.ts file (#51721) 2023-10-25 15:05:47 -07:00
Evgeniy Timokhov 043e1ca743 Expose TypeChecker.getMergedSymbol to public (#56192) (#56193) 2023-10-25 14:37:19 -07:00
Oleksandr TandNathan Shively-Sanders 5449489238 fix(55796): JSDoc does not support @this when using an arrow function as method in class (#55877)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-10-25 14:23:04 -07:00
Ron Buckton 8e37e4b853 More reliable mechanism for _this/_super simplification (#56130) 2023-10-23 21:01:11 -04:00
Ron Buckton e5e7cbba79 Expose 'updateModifiers' in public NodeFactory API (#56194) 2023-10-23 20:37:57 -04:00
Anders Hejlsberg b76b4c26ca Improve isDeeplyNestedType for homomorphic mapped types (#56169) 2023-10-23 08:53:46 -07:00
Andrew Branch aef4e468d9 Add user preference for preferring type-only auto imports (#56090) 2023-10-20 14:52:18 -07:00
Ron Buckton 7d3f387318 Properly handle AsyncGeneratorUnwrapYieldResumption (#56150) 2023-10-19 17:16:34 -04:00
Anders Hejlsberg ac75a5ec9a Fix discriminant property check in CFA (#56156) 2023-10-19 14:04:41 -07:00
Gabriela Araujo Britto b1f5ef69e8 Improve error message for index signature on generic type when writing (#55906) 2023-10-18 17:43:43 -07:00
Mateusz Burzyński d6171b9d0b Provide contextual this to functions assigned using compound assignments (#56116) 2023-10-16 11:59:25 -07:00
Mateusz Burzyński 0e07ff50ae Defer checking expressions in void expressions (#56122) 2023-10-16 10:16:19 -07:00
vuittont60 2e660bc174 Fix typos (#56115) 2023-10-16 09:37:15 -07:00
Jake Bailey d3c7d96d2c Remove old references to deprecated assertion node types (#56073) 2023-10-11 12:54:27 -07:00
Sheetal Nandi 9473195b6c noDts project resolutions verification and updates for incremental behaviour (#56016) 2023-10-10 10:24:08 -07:00
Mateusz Burzyński 521f8a8caf Ignore awaited self tail calls when collecting the return type of an async function (#56020) 2023-10-10 09:03:18 -07:00
Sheetal NandiandAndrew Branch 3516ca96e5 pass program update level to getExternalFiles in tsserver plugins so plugins can make decision about their cache based on that (#56047)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2023-10-09 16:05:11 -07:00
Andrew Branch d0d406747d Add type reference directive for all visited references to ambient modules (#56015) 2023-10-09 11:38:15 -07:00
Mateusz Burzyński 9144836360 Fixed type narrowing in switch statements with parenthesized expressions (#56035) 2023-10-09 11:36:16 -07:00
Jake Bailey 53a3d24b95 Fix fallthrough and default in new switch-true narrowing (#55991) 2023-10-06 16:23:54 -07:00
Mateusz Burzyński 7377f5cb9d Fixed declaration emit of object literals withs divergent accessors (#55442) 2023-10-05 16:40:45 -07:00
Andrew Branch 21109b71aa Recognize export * as default as a syntactic default export for synthetic default detection (#55985) 2023-10-05 10:33:24 -07:00
Jake Bailey 579e494f01 Preserve partially typed tuple names in more places (#55789) 2023-10-04 13:45:25 -07:00
Mateusz Burzyński 274821eb88 Don't create children prop out of non-semantic JSX children (#55981) 2023-10-04 11:15:43 -07:00
Andrew Branch 248488aa06 Prefer local module specifier over relative node_modules ones in auto-import, even when it reaches into a monorepo package (#55969) 2023-10-03 14:10:06 -07:00
Mateusz Burzyński d9cd2d0bd0 Fixed a crash in getPropertyNameForPropertyNameNode on NoSubstitutionTemplateLiteral (#55930) 2023-10-02 13:31:38 -07:00
Mateusz Burzyński efc343a438 Remove CheckMode.IsForStringLiteralArgumentCompletions (#55867) 2023-09-29 16:49:30 -07:00
Mateusz Burzyński df5093e7bd Rename isClassFieldAndNotAutoAccessor to isClassInstanceProperty (#55921) 2023-09-29 15:35:06 -07:00
Mateusz Burzyński 38d09d4ae1 Fixed na issue with evaluator using binding element initializers as const values (#55910) 2023-09-29 13:23:46 -07:00
Mateusz Burzyński 485a2ea0c9 Error on class fields accesses through super in JS files (#55892) 2023-09-29 12:29:39 -07:00
Ron Buckton 9cf44dc51a Support custom 'Symbol.hasInstance' methods when narrowing 'instanceof' (#55052) 2023-09-29 13:37:44 -04:00
Anders Hejlsberg c052bc7c72 Error on excessive relation complexity (#55851) 2023-09-26 15:57:57 -07:00
Oleksandr T fbe426e7d3 change transpile to compile (#55881) 2023-09-26 15:32:49 -07:00
Andrew Branch 1b70ac32b2 Support resolution-mode overrides in type-only constructs in all moduleResolution modes (#55725) 2023-09-26 14:20:05 -07:00
Oleksandr T 2e9e9a292c feat(53656): Add support for the updated import attributes proposal (#54242) 2023-09-26 13:20:15 -07:00
Sheetal Nandi 4ec809da37 Fix issue with trailing directory separator not present if symlink wasnt detected by program (#55865) 2023-09-25 16:52:27 -07:00
Ron BucktonandMateusz Burzyński d7b4cee7df Include source node inferences in string literal completions (#54121)
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2023-09-25 18:29:29 -04:00
Jake Bailey e44ecbc289 Make unchangedTextChangeRange const (#55836) 2023-09-23 16:17:44 -07:00
Ron Buckton 956a363028 Emit source positions for open/close braces (#47924) 2023-09-23 02:41:44 -04:00
Jack WorksandNathan Shively-Sanders 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
Nathan Shively-Sanders 982f8be6f2 More did-you-mean errors on classes in plain JS (#49827) 2023-09-22 16:12:21 -07:00
Gerrit BirkelandandNathan Shively-Sanders 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 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
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