7cf842b | Anders Hejlsberg | 03 November 2022, 18:05:42 UTC | Enum unification and improvements (#50528) * Fix enum classification and evaluation * References in literal enums must be to other enum members * Accept new baselines * Unify enum types + template literal constant expressions * Accept new baselines * Fix fourslash tests * Fix new compiler errors * Fix lint error * Accept new API baselines * Fix test * Better error message + consistently check enum initializers * Accept new baselines | 03 November 2022, 18:05:42 UTC |
5a40875 | TypeScript Bot | 03 November 2022, 06:07:44 UTC | Update package-lock.json | 03 November 2022, 06:07:44 UTC |
610ae68 | Sheetal Nandi | 02 November 2022, 21:55:37 UTC | Serialize and use files that can be emitted as affectedFilesPendingEmit (#51364) | 02 November 2022, 21:55:37 UTC |
8ed84e1 | Sheetal Nandi | 02 November 2022, 20:55:20 UTC | Write original fileInfo when its not just string = version = signature in readable baseline (#51391) | 02 November 2022, 20:55:20 UTC |
3568eba | Gabriela Araujo Britto | 02 November 2022, 20:46:32 UTC | fix test baseline | 02 November 2022, 20:46:32 UTC |
6017625 | Zzzen | 02 November 2022, 18:41:04 UTC | do not report use-before-declaration error in async IIFE initializer (#50199) | 02 November 2022, 18:41:04 UTC |
46b015f | Mateusz Burzyński | 02 November 2022, 18:35:17 UTC | Fixed the issue with some longer variadic tuples with `any` rest being incorrectly assignable to shorter variadic tuples (#50218) | 02 November 2022, 18:35:17 UTC |
fdcb2ff | Gabriela Araujo Britto | 02 November 2022, 18:28:10 UTC | Fix services' type's `isLiteral` implementation (#50929) * fix services' type's isLiteral * update literal completions tests * remove booleans from literals | 02 November 2022, 18:28:10 UTC |
c1e9afd | TypeScript Bot | 02 November 2022, 06:10:57 UTC | Update package-lock.json | 02 November 2022, 06:10:57 UTC |
8efa88f | TypeScript Bot | 01 November 2022, 06:12:36 UTC | Update package-lock.json | 01 November 2022, 06:12:36 UTC |
4d15bb1 | Wesley Wigham | 01 November 2022, 00:24:51 UTC | Fix #50869, only cache calculated type for non-context sensitive parameters (#50976) * Fix #50869, only cache calculated type for non-context sensitive parameters * Simplify check, update comment | 01 November 2022, 00:24:51 UTC |
c49c733 | Daniel Rosenwasser | 31 October 2022, 20:42:28 UTC | Bump version to 5.0. | 31 October 2022, 20:42:28 UTC |
7c58011 | Sheetal Nandi | 31 October 2022, 18:26:36 UTC | Set impliedNodeFormat on sourceFile we get from host to ensure the field is set correctly (#50977) * Add test that fails * Handle impliedNodeFormat when handling sourceFileCache Fixes #50872 * Revert the fix * Make sure impliedNodeFormat is set for the sourceFile * Revert "Make sure impliedNodeFormat is set for the sourceFile" This reverts commit 651a47fdd6ea200e59fdf150dfa913230a86653a. * Revert "Revert the fix" This reverts commit 5c98b9cfc1f275877d8d57a60f8f28a5c8d08157. * Swap the keys for map | 31 October 2022, 18:26:36 UTC |
cfa55f1 | Sheetal Nandi | 31 October 2022, 17:15:19 UTC | Fixes the tests that got disabled when generating config set es2016 expecting to find libFile and remove incorrect affects flag from listFilesOnly (#51243) * Fix the existing test * Remove affectsEmit from listFilesOnly | 31 October 2022, 17:15:19 UTC |
18f559f | Sheetal Nandi | 31 October 2022, 17:14:22 UTC | Store array only if dtsOnly emit is pending to compress buildinfo (#51246) | 31 October 2022, 17:14:22 UTC |
e50bb07 | TypeScript Bot | 31 October 2022, 06:07:50 UTC | Update package-lock.json | 31 October 2022, 06:07:50 UTC |
e5cd686 | TypeScript Bot | 30 October 2022, 06:07:26 UTC | Update package-lock.json | 30 October 2022, 06:07:26 UTC |
8d40dc1 | TypeScript Bot | 29 October 2022, 06:07:05 UTC | Update package-lock.json | 29 October 2022, 06:07:05 UTC |
5cfb3a2 | Ron Buckton | 28 October 2022, 22:36:40 UTC | Only call return() for an abrupt completion in user code (#51297) | 28 October 2022, 22:36:40 UTC |
a7a9d15 | Ron Buckton | 28 October 2022, 20:56:53 UTC | Fix for broken baseline in yieldInForInInDownlevelGenerator (#51345) | 28 October 2022, 20:56:53 UTC |
7f8426f | Ron Buckton | 28 October 2022, 19:09:10 UTC | fix for-in enumeration containing yield in generator (#51295) | 28 October 2022, 19:09:10 UTC |
3d2b401 | Jake Bailey | 28 October 2022, 03:27:53 UTC | Fix assertion functions accessed via wildcard imports (#51324) * Add test * Resolve alias of property in getTypeOfDottedName * Always resolve * Update tests | 28 October 2022, 03:27:53 UTC |
64d0d5a | Oleksandr T | 28 October 2022, 00:27:36 UTC | fix(51301): Fixing an unused import at the end of a line removes the newline (#51320) * fix(51301): keep the line break after removing the unused identifier * preserve line breaks in import specifiers * preserve line breaks in parameters and destructuring elements * remove preserveLineBreak option | 28 October 2022, 00:27:36 UTC |
754eeb2 | Jake Bailey | 27 October 2022, 23:29:55 UTC | Update CodeQL workflow and configuration, fix found bugs (#51263) | 27 October 2022, 23:29:55 UTC |
d8aad26 | TypeScript Bot | 27 October 2022, 06:07:22 UTC | Update package-lock.json | 27 October 2022, 06:07:22 UTC |
d4f26c8 | Oleksandr T | 26 October 2022, 20:59:44 UTC | fix(51245): Class with parameter decorator in arrow function causes "convert to default export" refactoring failure (#51256) * fix(51245): don't rely on parent nodes in formatting rules * check existing parent node | 26 October 2022, 20:59:44 UTC |
16faf45 | TypeScript Bot | 26 October 2022, 06:07:52 UTC | Update package-lock.json | 26 October 2022, 06:07:52 UTC |
8b1ecdb | Oleksandr T | 26 October 2022, 00:05:57 UTC | fix(50654): "Move to a new file" breaks the declaration of referenced variable (#50681) * fix(50654): remove entire import require call instead of the name * handle require imports in ts files | 26 October 2022, 00:05:57 UTC |
170a17f | Nathan Shively-Sanders | 26 October 2022, 00:04:55 UTC | Dom update 2022-10-25 (#51300) * Update DOM Looks like the changes are: - AbortSignal.abort finally has the right type. - Add OffscreenCanvas support - Some new properties scattered around, some properties now allow `null`. - rename VideoFrameMetadata -> VideoFrameCallbackMetadata - Add CSSContainerRule, EXT_texture_norm16, OES_draw_buffers_indexed - Some type aliases include more types in their union. * Update baselines | 26 October 2022, 00:04:55 UTC |
9c4e14d | Andrew Branch | 25 October 2022, 22:11:27 UTC | Remove "No type information for this code" from baseline (#51311) * Fix "No type information for this code" in baseline * Just remove the message | 25 October 2022, 22:11:27 UTC |
88d25b4 | Oleksandr T | 25 October 2022, 20:10:31 UTC | fix(50068): Refactors trigger debug failure when JSX text has a ' and a tag on the same line. (#51299) * fix(50068): rescan JsxText on JsxElement context * fix lint errors * add tests | 25 October 2022, 20:10:31 UTC |
8bee69a | TypeScript Bot | 25 October 2022, 06:30:32 UTC | Update package-lock.json | 25 October 2022, 06:30:32 UTC |
702de1e | Ron Buckton | 25 October 2022, 02:37:42 UTC | Fix early call to return/throw on generator (#51294) | 25 October 2022, 02:37:42 UTC |
2c12b14 | Andrew Casey | 24 October 2022, 17:23:04 UTC | Add a GH Action to file a new issue if we go a week without seeing a typescript-error-deltas issue (#51271) * Add a GH Action to file a new issue if we go a week without seeing a typescript-error-deltas issue * Don't use the search terms in the title of the bug report | 24 October 2022, 17:23:04 UTC |
6af270d | TypeScript Bot | 24 October 2022, 06:34:04 UTC | Update package-lock.json | 24 October 2022, 06:34:04 UTC |
2cc4c16 | TypeScript Bot | 23 October 2022, 06:13:35 UTC | Update package-lock.json | 23 October 2022, 06:13:35 UTC |
6093491 | Jake Bailey | 22 October 2022, 15:23:41 UTC | Fix apparent typo in getStringMappingType (#51248) | 22 October 2022, 15:23:41 UTC |
61c2609 | TypeScript Bot | 22 October 2022, 06:11:59 UTC | Update package-lock.json | 22 October 2022, 06:11:59 UTC |
ef69116 | Andrew Branch | 21 October 2022, 23:05:58 UTC | Generate shortest `rootDirs` module specifier instead of first possible (#51244) * Generate shortest rootDirs module specifier instead of first possible * Simplify `min` | 21 October 2022, 23:05:58 UTC |
bbb42f4 | Jake Bailey | 21 October 2022, 17:04:40 UTC | Fix typo in canWatchDirectoryOrFile found by CodeQL (#51262) | 21 October 2022, 17:04:40 UTC |
a56b254 | Ron Buckton | 21 October 2022, 12:00:24 UTC | Include 'this' type parameter in isRelatedTo fast path (#51230) | 21 October 2022, 12:00:24 UTC |
3abd351 | Ron Buckton | 21 October 2022, 12:00:00 UTC | Fix super property transform in async arrow in method (#51240) | 21 October 2022, 12:00:00 UTC |
eed0511 | TypeScript Bot | 21 October 2022, 06:15:23 UTC | Update package-lock.json | 21 October 2022, 06:15:23 UTC |
2625c1f | Sheetal Nandi | 20 October 2022, 20:23:18 UTC | Make the init config category order predictable (#51247) | 20 October 2022, 20:23:18 UTC |
1ca99b3 | Oleksandr T | 20 October 2022, 17:57:43 UTC | fix(50551): Destructuring assignment with var bypasses "variable is used before being assigned" check (2454) (#50560) * fix(50551): handle destructuring variables used before assignment * skip the error in binding elements that refer to the same destructuring * fix binding element type | 20 October 2022, 17:57:43 UTC |
3f28fa1 | TypeScript Bot | 20 October 2022, 06:12:31 UTC | Update package-lock.json | 20 October 2022, 06:12:31 UTC |
906ebe4 | Anders Hejlsberg | 19 October 2022, 22:46:00 UTC | Revert structuredTypeRelatedTo change and fix isUnitLikeType (#51076) * Revert structuredTypeRelatedTo change, fix isUnitLikeType * Accept new baselines * Add regression tests * Fix formatting in test | 19 October 2022, 22:46:00 UTC |
8ac4652 | Oleksandr T | 19 October 2022, 19:38:37 UTC | change type (#51231) | 19 October 2022, 19:38:37 UTC |
245a02c | Oleksandr T | 19 October 2022, 18:32:39 UTC | fix(51222): Go-to-definition on return statements should jump to the containing function declaration (#51227) * fix(51222): add go-to-definition return statement to containing function * add additional tests | 19 October 2022, 18:32:39 UTC |
2dff34e | Ron Buckton | 19 October 2022, 17:24:01 UTC | markAliasReferenced should include ExportValue as well (#51219) | 19 October 2022, 17:24:01 UTC |
5ef2634 | TypeScript Bot | 19 October 2022, 06:34:14 UTC | Update package-lock.json | 19 October 2022, 06:34:14 UTC |
d0f0e35 | Jake Bailey | 19 October 2022, 00:30:42 UTC | Remove old tslint comments (#51220) | 19 October 2022, 00:30:42 UTC |
85d405a | Mateusz Burzyński | 18 October 2022, 21:10:03 UTC | Fixed a false positive "await has no effect on the type" diagnostic with mixed generic union (#50833) | 18 October 2022, 21:10:03 UTC |
1f8959f | Joshua Chen | 18 October 2022, 20:46:51 UTC | fix: avoid downleveled dynamic import closing over specifier expression (#49663) * fix: evaluate dynamic import specifier expressions synchronously * refactor * Update src/compiler/transformers/module/module.ts Co-authored-by: Ron Buckton <ron.buckton@microsoft.com> * [Experiment] Co-authored-by: Ron Buckton <ron.buckton@microsoft.com> | 18 October 2022, 20:46:51 UTC |
11066b2 | Mateusz Burzyński | 18 October 2022, 19:58:39 UTC | Rename internal functions to `narrowTypeBySwitchOnTypeOf` and `narrowTypeByInKeyword` (#51215) | 18 October 2022, 19:58:39 UTC |
4c9afe8 | TypeScript Bot | 18 October 2022, 06:31:08 UTC | Update package-lock.json | 18 October 2022, 06:31:08 UTC |
f25bcb7 | Oleksandr T | 18 October 2022, 00:35:08 UTC | fix(49196): add jsdoc snippet for interface member functions (#51135) | 18 October 2022, 00:35:08 UTC |
7406ee9 | Oleksandr T | 17 October 2022, 20:14:23 UTC | fix(51170): Completing an unimplemented property overwrites rest of line (#51175) * fix(51170): skip insertText for class members with existing initializer * skip insertText for class members with existing tokens | 17 October 2022, 20:14:23 UTC |
a1d82fc | Jake Bailey | 17 October 2022, 17:49:56 UTC | Remove some unnecessary code discovered by rollup (#51204) | 17 October 2022, 17:49:56 UTC |
0481773 | Alex Hsu | 17 October 2022, 10:24:51 UTC | LEGO: Merge pull request 51200 LEGO: Merge pull request 51200 | 17 October 2022, 10:24:51 UTC |
98c19cb | Alex Hsu | 16 October 2022, 12:55:49 UTC | LEGO: Merge pull request 51190 LEGO: Merge pull request 51190 | 16 October 2022, 12:55:49 UTC |
13c9b05 | TypeScript Bot | 16 October 2022, 06:12:30 UTC | Update package-lock.json | 16 October 2022, 06:12:30 UTC |
673475e | TypeScript Bot | 15 October 2022, 06:13:40 UTC | Update package-lock.json | 15 October 2022, 06:13:40 UTC |
f6cf510 | Andrew Branch | 14 October 2022, 16:42:06 UTC | Add more tracing to node16/nodenext resolution (#51168) * Add more tracing to node16/nodenext resolution * Update baselines after diagnostic change * Trace non-matching conditions | 14 October 2022, 16:42:06 UTC |
83c5581 | TypeScript Bot | 14 October 2022, 06:29:00 UTC | Update package-lock.json | 14 October 2022, 06:29:00 UTC |
be5f0fe | Mateusz Burzyński | 14 October 2022, 01:30:35 UTC | Add an extra regression test for awaited unresolvable recursive union (#51167) | 14 October 2022, 01:30:35 UTC |
2cb7e77 | Isabel Duan | 13 October 2022, 23:44:30 UTC | fix(50416): correctly names disabled export refactors (#50663) * added test case to try to retrieve duplicate refactor as in #50416. 'verify.refactorAvailable' correctly retrieves nonduplicate refactors... * optional arguments in refactorAvailable return `true` even if there is no single refactor that satisfies both * it still passes :C * Delete fixExtractToInnerFunctionDuplicaton.ts * deleted extra test code * fix 'verify.refactorAvailable' so that tests correctly check for multiple arguments * fixes #50416 * refactor | 13 October 2022, 23:44:30 UTC |
2bcfed0 | Oleksandr T | 13 October 2022, 22:43:49 UTC | feat(37440): Provide a quick-fix for non-exported types (#51038) * feat(37440): add QF to handle missing exports * change diagnostic message * add type modifier only if isolatedModules is set or if the export declaration already uses type modifiers | 13 October 2022, 22:43:49 UTC |
a24201c | Jake Bailey | 13 October 2022, 21:39:25 UTC | Remove VSDevMode.ps1 and createPlaygroundBuild (#51166) | 13 October 2022, 21:39:25 UTC |
2da62a7 | Oleksandr T | 13 October 2022, 20:37:23 UTC | fix(51112): omit parameter names that precede the type (#51142) | 13 October 2022, 20:37:23 UTC |
cf1b6b7 | Oleksandr T | 13 October 2022, 18:29:18 UTC | feat(51163): show QF to fill in the missing properties for the mapped type. (#51165) | 13 October 2022, 18:29:18 UTC |
bdcc240 | Wesley Wigham | 13 October 2022, 17:58:42 UTC | Remove bug-causing carve-out in conditional type instantiation that hopefully is no longer required (#51151) | 13 October 2022, 17:58:42 UTC |
37317a2 | Anders Hejlsberg | 13 October 2022, 15:20:07 UTC | Check nested weak types in intersections on target side of relation (#51140) * Check nested weak types in intersections on target side of relation * Add regression tests * Move logic from isRelatedTo to structuredTypeRelatedTo * Fix lint error * Add additional test | 13 October 2022, 15:20:07 UTC |
9f49f9c | TypeScript Bot | 13 October 2022, 06:22:26 UTC | Update package-lock.json | 13 October 2022, 06:22:26 UTC |
4f54e7e | Anders Hejlsberg | 12 October 2022, 14:22:06 UTC | Fix isExhaustiveSwitchStatement to better handle circularities (#51095) * Fix isExhaustiveSwitchStatement to better handle circularities * Add regression test | 12 October 2022, 14:22:06 UTC |
503604c | Valerian Clerc | 11 October 2022, 23:58:03 UTC | Overloads shouldn't gain @deprecated tags of other overloads in quick info (#50904) * Add test case to check for the propogation of @deprecation tag to multiple overloads * Implement filter to only include @deprecated tag in first signature after JSDoc comment | 11 October 2022, 23:58:03 UTC |
e14a229 | TypeScript Bot | 11 October 2022, 06:22:40 UTC | Update package-lock.json | 11 October 2022, 06:22:40 UTC |
67256e5 | Jake Bailey | 10 October 2022, 20:57:10 UTC | Remove unused declarations array in extractSymbol's TargetRange (#51091) | 10 October 2022, 20:57:10 UTC |
9c87ded | Rafał Chłodnicki | 10 October 2022, 19:03:15 UTC | fix(51100): ensure tsserver shuts down when parent process is killed (#51107) * fix(51100): ensure tsserver shuts down when parent process is killed When using IPC channel (`--useNodeIpc`) for communicating with tsserver, the child tsserver process did not shut down on parent process disconnecting (for example due to it being killed). Call exit() on IPC disconnect, same as stdio-based communication did when pipe to parent process was destroyed. * don't duplicate inherited method | 10 October 2022, 19:03:15 UTC |
c01ae01 | Jake Bailey | 10 October 2022, 16:33:45 UTC | Fix nightly publish oops in Gulpfile (#51131) | 10 October 2022, 16:33:45 UTC |
a7d10f1 | TypeScript Bot | 08 October 2022, 06:08:40 UTC | Update package-lock.json | 08 October 2022, 06:08:40 UTC |
d0bfd8c | Oleksandr T | 07 October 2022, 17:33:20 UTC | fix(51072): ts.preProcessFile finds import in template string after conditional expression with template strings (#51082) | 07 October 2022, 17:33:20 UTC |
ad56b5c | Jake Bailey | 07 October 2022, 16:50:46 UTC | Convert scripts/Gulpfile to checked mjs/cjs so they can run without compilation (#50988) | 07 October 2022, 16:50:46 UTC |
dbeae5d | Oleksandr T | 07 October 2022, 16:13:22 UTC | fix(51017): Make lineText in the references response opt-out (#51081) * add option to exclude lineText from the response * add comments * update baseline | 07 October 2022, 16:13:22 UTC |
d06a592 | Anders Hejlsberg | 07 October 2022, 14:25:57 UTC | Properly defer resolution of mapped types with generic `as` clauses (#51050) * Fix isGenericMappedType, getTemplateLiteralType, getStringMappingType * Accept new baselines * Add regression tests * Fix comment | 07 October 2022, 14:25:57 UTC |
42b1049 | TypeScript Bot | 07 October 2022, 06:09:49 UTC | Update package-lock.json | 07 October 2022, 06:09:49 UTC |
5f3e6cc | Sheetal Nandi | 06 October 2022, 20:45:22 UTC | Plugin probe location is higher priority than peer node_modules (#51079) Fixes #34616 | 06 October 2022, 20:45:22 UTC |
2648f6a | Sheetal Nandi | 06 October 2022, 20:40:21 UTC | Plugins in project were adding up after every config file reload (#51087) * Add test where current plugins dont get reset when reloading config file * Reset loaded plugins when reloading configured project and closing project | 06 October 2022, 20:40:21 UTC |
c18791c | Sheetal Nandi | 05 October 2022, 18:54:59 UTC | Fix incorrect options type to WatchOptions (#51064) | 05 October 2022, 18:54:59 UTC |
b0795e9 | TypeScript Bot | 05 October 2022, 06:16:37 UTC | Update package-lock.json | 05 October 2022, 06:16:37 UTC |
43c6fd4 | Sheetal Nandi | 05 October 2022, 01:14:14 UTC | Covert some of the config testing to baselines for easy validation (#51063) * Baseline config tests for easy validation * Refactor * Fix incorrect pick * Dont print unnecessary plugin host not implemented msg in logs | 05 October 2022, 01:14:14 UTC |
fc5e72b | Sheetal Nandi | 04 October 2022, 22:06:41 UTC | Remove unused defaultWatchFileKind method since useFsEvents is default for tsserver and tsc (#51044) | 04 October 2022, 22:06:41 UTC |
8af9a93 | Jake Bailey | 04 October 2022, 22:00:35 UTC | Use typescript.d.ts in APISample tests (#51061) | 04 October 2022, 22:00:35 UTC |
4953316 | Jake Bailey | 04 October 2022, 17:36:57 UTC | Remove configureLanguageServiceBuild, instrumenter (#51048) | 04 October 2022, 17:36:57 UTC |
9dfffd0 | Jake Bailey | 04 October 2022, 15:11:58 UTC | Update GitHub Actions (#51045) | 04 October 2022, 15:11:58 UTC |
4635a5c | TypeScript Bot | 04 October 2022, 06:14:09 UTC | Update package-lock.json | 04 October 2022, 06:14:09 UTC |
33a34e5 | Ben Taylor | 03 October 2022, 23:31:24 UTC | Adding a JSDoc comment to the es5 type declarations to describe the functionality of Date.now() (#50630) * Adding a JSDoc comment to the es5 type declarations to describe the functionality of Date.now() & updating baselines (50565) * Update the Date.now() type declaration description Updating the Date.now() type declaration description to make it clearer and more accurate. Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> | 03 October 2022, 23:31:24 UTC |
299745c | Nathan Shively-Sanders | 03 October 2022, 23:07:57 UTC | Fix crash in goto-def on `@override` (#51016) * Fix crash in goto-def on `@override` When the base type is not defined, getDefinitionFromOverriddenMember will have its type as errorType, which has no symbol. The error handling previously only handled the case of no baseType at all -- which I'm not sure ever actually happens. * Improve checking 1. getTypeAtLocation never returns undefined, only errorType, so check for that. 2. Return directly after missing baseTypeNode instead of continuing to return later. * Experiment with making goto-def on `override` more consistent * Unify static/instance node->symbol->type path * Make getSymbolAtLocation support class expressions and parenthesized expressions * Revert "Make getSymbolAtLocation support class expressions" This reverts commit 4c1b03135576c9e5d146ce6f38e691c804cbb0dd. * fix semicolon lint | 03 October 2022, 23:07:57 UTC |
7dcf11f | Oleksandr T | 03 October 2022, 22:57:32 UTC | fix(50750): Object type literal with string literal property in contextual typing position causes language service error on all literal type references (#50757) * fix(50750): skip unbound symbols from JSDoc tags in typescript * skip contextual type checking in JsDoc for TypeScript files | 03 October 2022, 22:57:32 UTC |
5cd49f6 | TypeScript Bot | 03 October 2022, 06:13:27 UTC | Update package-lock.json | 03 October 2022, 06:13:27 UTC |