https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
1b2f3cb Accept new baselines 06 April 2020, 20:59:09 UTC
50a131c Remove redundant intersections from unions 06 April 2020, 20:58:00 UTC
a2609b1 Extra check in assignment of intersections with generic constituents (#37537) * Consolidated extra property check with intersections * Fix comment * Add tests * Properly propagate intersectionState * Route property check through recursive type tracking logic * Accept new baselines * Skip check when apparent type of source is never * Accept new baselines * Only check when apparent type of source is a structured type 06 April 2020, 20:36:20 UTC
5a4024d Generic functions are never context sensitive (#37811) * Functions with type parameters are never contextsensitive * Add tests 06 April 2020, 18:55:39 UTC
eac0738 Fix serialisation of static class members in JS (#37780) * Fix serialisation of static class members in JS Previously static class members would be treated the same way as expando namespace assignments to a class: ```ts class C { static get x() { return 1 } } C.y = 12 ``` This PR adds a syntactic check to the static/namespace filter that treats symbols whose valueDeclaration.parent is a class as statics. Fixes #37289 * fix messed-up indent * Extract function 04 April 2020, 03:06:05 UTC
20ecbb0 Allow Source Mapping inside destructuring assignment (#37298) * Add support for source maps inside of destructured code * Adds tests for the source maps inside destructured code 03 April 2020, 21:23:02 UTC
7317292 Consider arrays and tuples within one another as possibly requiring deferral (#37776) 03 April 2020, 21:14:13 UTC
7cf4b12 Fix crash for private identifier in expando assignments (#37764) * Fix crash for private identifier in expando assignments It does this by disallowing private identifiers from expando assignments entirely. I haven't thought of a scenario where they make sense, but I haven't thought about it exhaustively either. Fixes #37356 * Update baselines I think the new error is probably better. It's certainly different! 03 April 2020, 17:29:22 UTC
d68295e LEGO: Merge pull request 37766 LEGO: Merge pull request 37766 03 April 2020, 10:11:13 UTC
c787252 LEGO: check in for master to temporary branch. 03 April 2020, 10:10:33 UTC
6d25c01 Cache the regularized form of union types (#37749) * Cache the regularized form of union types * Inline function because why not * Introduce two fastpasths into isRelatedTo 03 April 2020, 06:54:24 UTC
349ae45 Reduce intersections with conflicting privates, elaborate on reasons (#37762) * Elaborate on reasons for 'never' intersections * Accept new API baselines * Accept new baselines * Add tests * Accept new baselines * Address CR feedback 03 April 2020, 01:00:59 UTC
2187ba1 Fix variable name collisions (#37761) 02 April 2020, 22:12:19 UTC
527f467 Remove error when spreading optional any (#37757) Previously, spreading an optional any gave a bogus error when the name conflicted with earlier properties in the object literal. Now the code checks any types for optionality before issuing the error. Fixes #37740 02 April 2020, 22:04:45 UTC
6964137 fix(37456): add tests for JsxOpeningElement nodes (#37752) 02 April 2020, 17:38:31 UTC
afc41f0 Quick fix for functions lacking return expressions (#26434) * stash * add surmise for return type * add support for more case * add more test case * add more testcase and fix all test * fix changed diagnosis * fix broken test case * add more case * rename quickfix * fix conflict * fix fix desc * fix semi * Avoid replace brace with paren * Split fix all action * Add return work in same line * fix test cases * rename baseline * refactor and handle comment * Support semi * make helper internal 02 April 2020, 17:06:14 UTC
54b0e4a Fix goto implementation does not suggest all subtypes (#33652) 02 April 2020, 16:57:48 UTC
3810c2f Fix rename for type symbols imported as a different name (#37745) * Add failing test * Fix getMeaningFromLocation for imports * Only the name of an ImportEqualsDeclaration counts * Commit baseline 02 April 2020, 16:06:19 UTC
72a0411 fix(37431): allow only one space between async keyword and method name (#37504) 02 April 2020, 15:30:05 UTC
78a9924 Reuse input type nodes when serializing signature parameter and return types (#37444) * Accept change * Accept the huge set of ever so slightly changed baselines * Update return type logic to only reuse nodes if original nodes share scope with current node, like property types, only reuse nodes if symbols referened are acessible, reuse nodes for property signatures, too * Only reuse nodes when a context is provided (otherwise identifier printback may fail) * Only track symbol if symbol is found and no error is recorded * Fix type parameter reuse lookup * Forbid cjs module.exports references in retained nodes * Adjust check for cjs export references to not include bad module type in output * Add symbol to all identifiers we see in existing nodes for quickinfo * Accept fourslash baseline updates * Accept slightly updated baseline post-merge * Do not copy original nodes for error types, replace empty type references with any 02 April 2020, 02:50:21 UTC
5596ed8 Add replacement span for string literal (#37490) * Add replacement span for string literal * fix change requests * fix lint * Avoid flag * Fix baseline * ADd misising baseline 02 April 2020, 00:58:16 UTC
15aff05 Explicitly merge module augmentation members into the exports added by export * declarations (#37691) * Explicitly merge module augmentation members into the exports added by export * declarations * Use ?., add namespace merge test * Add missing merged symbol call to handle enum/ns merges during entity name lookup * Add test with error case * Handle missing value declarations in more places, unify duplicate declaration error handling to improve assignment declaration duplicate errors 01 April 2020, 23:36:28 UTC
c546988 fix(37456): omit type arguments from JsxSelfClosingElement, JsxOpeningElement nodes (#37739) 01 April 2020, 23:27:33 UTC
a98adef Add replacer function overload for replaceAll (#37476) 01 April 2020, 23:25:16 UTC
326e1c9 Disallow partial matches for discriminant properties when generating error messages (#37589) 01 April 2020, 22:39:12 UTC
697d104 fix(37519): forbid trailing comma in a index signature (#37535) 01 April 2020, 22:38:10 UTC
95a124f Fix crash on bad namespace parse (#37626) * Fix crash on bad namespace parse `global` inside a class body is parsed as a module declaration, and in the following example has no body: ```ts class C { global x } ``` `x` is parsed as a separate ExpressionStatement. This caused a crash in emit because the code didn't expect a module declaration with no body. * inline node.body variable * fix missed references to body 01 April 2020, 22:05:49 UTC
ed1863b Add node to zone.js' tsconfig types (#37499) 01 April 2020, 21:40:01 UTC
0b38a9a Add support for extraFileExtensions on WatchCompilerHost (#37726) To support typescript-eslint/typescript-eslint#1813 01 April 2020, 18:13:21 UTC
0e48e68 Fix post-LKG build 01 April 2020, 17:53:46 UTC
9c4cbd6 fix #32843 : evaluate right scope when checked if all type parameter are unused for jsdoc `@template` (#33320) Co-authored-by: magierjones <simon.jaeger@magierjones.de> 31 March 2020, 22:32:15 UTC
4dc827e Fix emit of simple module.exports.C.prototype pattern (#37719) Extends the fix of #36108 so that the simple example gets correct emit; the complex test case I came up with still doesn't work correctly, but the actual code froma #35228 is fixed. 31 March 2020, 21:59:47 UTC
a46e9ae support 'in' type guard of intersections (#37106) 31 March 2020, 20:37:08 UTC
23b500c Don’t offer `this.` completions on `self`, `window`, `global`, `globalThis`. Disambiguate `this.` completions from others in details requests. (#37652) * Special-case window, self, global, globalThis methods * Disambiguate global and this property completions in details requests * Hide the Map<boolean> implementation * Update old tests * Replace SymbolOriginKind stringification with dedicated enum 31 March 2020, 19:40:57 UTC
065a996 Rerun LKG to remove 'awaited' type (#37616) 31 March 2020, 18:54:02 UTC
ef377d5 Don't delete comments when deleting unused declarations (#37467) * don't delete comment on variable declaration * add more declaration kinds * don't copy comment in convertes6 class * don't copy comments in convertToES6Class * add tests * use isAnyImportSyntax * handle mixed comment types * update tests 31 March 2020, 17:18:06 UTC
2b0f351 Fix narrow-by-constructor logic (#37698) * Fix narrow-by-constructor logic * Add regression test 31 March 2020, 02:31:16 UTC
6ffbffb Update user baselines (#37498) Co-authored-by: typescript-bot <typescript@microsoft.com> 30 March 2020, 23:20:51 UTC
f17174c Fix build after merging #35862 30 March 2020, 22:13:20 UTC
3433434 Fixed issue where missing method call went unreported if the call target symbol did no have an id assigned or if the called property was used inside the if block on a different target. (#35862) 30 March 2020, 21:45:32 UTC
0e15b9f Make never rest type top-like (#35438) * Make never rest type top-like * Add higher-order test * properly support types which reduce to never Co-authored-by: Wesley Wigham <wwigham@gmail.com> 30 March 2020, 21:16:07 UTC
2f0cc51 Fix contextual types for maybe-async callbacks (#37205) * Fix contextual types for maybe-async callbacks * Remove comment 30 March 2020, 21:15:51 UTC
9cd4b07 Add link to documentation in tsconfig.json template generated by tsc --init (#34686) * Add Advanced Compile Options to --init command * removed advanced options and descriptioncolumn * tests: fix tsconfig.json baselines * tests: fix failing tests * feat: adjusted link to specification * fix: removed duplicate increment flag * chore: moved position back * return of the comments * fix for missalignment * return of the comment 30 March 2020, 21:14:00 UTC
1f56ab0 Improve error message for invalid return type of JSX component (#32702) * New diagnostic message for wrong JSX function component * Component and Mixed type * fix existing tests * add new test for JSX component return type error * fix tslint error * update diagnostic message to include component name * accept baseline * update tests * missing semicolon * accept baseline Co-authored-by: Wesley Wigham <wwigham@gmail.com> 30 March 2020, 20:04:33 UTC
4c440e5 Fix #31319 : Narrow unit-unit inequality tests using comparability (#33071) * Narrow unit-unit inequality tests using comparability * Accept updated baselines Co-authored-by: Wesley Wigham <wwigham@gmail.com> 30 March 2020, 19:49:53 UTC
64cb578 update baseline (#37692) 30 March 2020, 18:52:09 UTC
d8170fa fix(33054): allow variables starting with an underscore in for/of statement (#36739) 30 March 2020, 18:18:18 UTC
96f0122 fix(36909): wrong error message when trying to named-import an export (#36925) 28 March 2020, 19:16:50 UTC
6d7539a Fix Number.is* to accept unknown again (#34932) Fixes #34931 This essentially reapplies #24436 which incorrectly updated the generated files rather than the sources, and so was wiped out by 2f73986b44a4ec10c7ebe7188e23863c3879d54e. Note that this is specifically _not_ the same as #4002, which pertains to the global functions that coerce their arguments and therefore should _not_ accept `unknown`. This change was already accepted 18 months ago, but was applied incorrectly. 27 March 2020, 21:48:45 UTC
3c130d1 feat(37092): improve error message about missing default export (#37212) 27 March 2020, 21:33:01 UTC
7f59949 Handle comment directives in incremental parsing (#37632) * Add test case that shows failure to handle commentDirectives in incremental parsing Testcase for #37536 * Handle comment directives in incremental parsing Fixes #37536 27 March 2020, 19:00:34 UTC
0f3a9d4 Support completions for local named exports (#37606) * Support completions for local named exports * Add JSDoc * Use sort text instead of filtering * Revert new CompletionKind * Return valid completions even when export declaration is in an invalid place 27 March 2020, 17:47:02 UTC
7f1df6e Fix import order (#37510) 26 March 2020, 20:55:56 UTC
6afd5c9 Adds a preview link to the baseline emits for sourcemaps (#37111) 26 March 2020, 15:37:37 UTC
0ae938b Report error when cannot read file (#37611) This also consolidates helper for readFile failure 26 March 2020, 04:29:02 UTC
9119fe3 Fix sys.debugMode when using VSCode's new preview debugger (#37558) 26 March 2020, 02:18:36 UTC
4fc4c4e Revert 'awaited' type (#37610) 26 March 2020, 01:39:45 UTC
84a3252 Handle packages inside another node modules package when auto importing (#37561) Fixes #37542 25 March 2020, 23:27:02 UTC
fd9e602 When the global file is deleted mark all files as changed (#37538) * Add test case when the errors are not refreshed if global file is deleted Testcase for #36728 * When the global file is deleted mark all files as changed Fixes #36728 * Update other baselines to fix file info 25 March 2020, 23:26:10 UTC
6bd68a8 Release the documents from language service using key instead of calculating it on the spot since we want to use correct paths for the files (#37596) Fixes #37500 25 March 2020, 22:51:07 UTC
b58a29b Fix emit for optional chain with non-null assertion (#36539) * Fix emit for optional chain with non-null assertion * Treat '!' differently inside chain vs end of chain * remove dead code and fix comment 25 March 2020, 22:28:13 UTC
a04225d Don’t suppress completions after yield (#37609) 25 March 2020, 22:27:47 UTC
4567fc4 Ensure computed property names are always checked (#37307) 25 March 2020, 22:16:54 UTC
6c1e8aa Sort the arrays of fileNames in the build info (#37541) * Sort the arrays of fileNames in the build info Earlier we did this in testing to ensure we could baseline now moved to actual build info writing Fixes #37156 * Sort using compareStringsCaseSensitive 25 March 2020, 21:57:46 UTC
e1772fa Add test for #35011 (#37312) * Add test for #35011 When searching for a default configured project, stop at `node_modules`. * Be more explicit about inferred projects * Move test into tsserver/projects.ts * Use existing helpers to simplify tests 25 March 2020, 21:48:54 UTC
8615eec Enhancement new expression with type arguments without parenthesized argument list error message (#37576) * Enhancement new expression with type arguments without parenthesized argument list error message Signed-off-by: Rustin-Liu <rustin.liu@gmail.com> * add baselines Signed-off-by: Rustin-Liu <rustin.liu@gmail.com> * use parseErrorAt Signed-off-by: Rustin-Liu <rustin.liu@gmail.com> * refine code Signed-off-by: Rustin-Liu <rustin.liu@gmail.com> * Space before paren Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> 25 March 2020, 19:37:46 UTC
b7b2c33 Handle if reading tsconfig file fails (#37563) Fixes #36862 25 March 2020, 17:14:31 UTC
a1c8608 Revert cloneNode overrides in the DOM (#37568) * Revert cloneNode overrides in the DOM See microsoft/TSJS-lib-generator#842 * update baselines 25 March 2020, 00:56:27 UTC
37569d0 Convert to async function: handle type arguments to then/catch (#37463) * Handle type arguments to then/catch * Keep single-line types on a single line 24 March 2020, 16:56:47 UTC
9f296ce Do not include global errors in semantic errors from the file (#37545) Fixes #37084 24 March 2020, 16:53:27 UTC
7ade67d LEGO: Merge pull request 37553 LEGO: Merge pull request 37553 24 March 2020, 16:11:09 UTC
f55cb45 LEGO: check in for master to temporary branch. 24 March 2020, 16:10:28 UTC
11043b0 Check JSDocPropetyTag (#37544) Fixes #37040 24 March 2020, 00:20:35 UTC
38e717a fix: hyphened name not auto-completed by the ls (#37455) * fix: hyphened name not auto-completed by the ls * fix: accept new baseline * Adds a test to validate the hypened identifiers in JSX Co-authored-by: Orta Therox <orta.therox@gmail.com> 23 March 2020, 21:08:44 UTC
221a2ae Handle import type and export type in preprocess (#37508) Fixes #37338 23 March 2020, 17:11:01 UTC
5fa066f LEGO: Merge pull request 37517 LEGO: Merge pull request 37517 22 March 2020, 16:11:05 UTC
fa32f40 LEGO: check in for master to temporary branch. 22 March 2020, 16:10:26 UTC
fbd83b8 Bring over last 3.9 dom changes (#37502) * Bring over last 3.9 dom changes * Addresses feedback 21 March 2020, 00:17:27 UTC
fde9c7f Narrowing from truthy unknown to object (#37507) * For x && typeof x === 'object', narrow x to just type object * Add tests * Allow arbitrary nesting / add comments * Add additional tests 21 March 2020, 00:09:24 UTC
e3ec7b1 Add the 'awaited' type operator (#35998) * Add the 'awaited' type operator * Add script to manually add reviewers to a PR when GH 'Suggested Reviewers' breaks * Fix lint error in review script * Only defer generic awaited type for possible thenable * Add variance-like behavior for awaited * Switch awaited type params to 'unreliable' variance * fix typo in inferTypes * LKG without syntax in lib * LKG with new syntax in lib * Add 'strictAwaitedTypes' flag * Treat strictAwaitedTypes as strict-mode flag * Rename TAll, remove duplicate definition of 'race' * Apply suggestions from code review Co-Authored-By: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> * Fix inference priority * Update comment to isGenericAwaitableType * Add overloads for then/catch to Promise * Add inference heuristic for T | PromiseLike<T> (for any PromiseLike) * Remove strictAwaitedTypes flag Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> 20 March 2020, 23:09:01 UTC
114fe4d Update user baselines (#37354) Co-authored-by: typescript-bot <typescript@microsoft.com> 20 March 2020, 17:28:12 UTC
8f64d66 If emitting declaration file, update the d.ts signature in state to not have to save all files when different file changes without changing its shape (#37483) * Add test that calling getAffectedFiles on two different files (even if the second one is saved) returns all files * If emitting declaration file, update the d.ts signature in state to not have to save all files when different file changes without changing its shape Fixes #30508 20 March 2020, 17:16:41 UTC
5e9c436 Handle auto import scenarios when using project references (#37482) * Add test for project reference and auto import Test for #34677 * Add project reference redirect to the possible file name to import if file is source of project reference redirect Fixes the auto import suggestion when project is built * Use fileExists that mimics presence of project reference redirect file when trying to get auto import file name 19 March 2020, 23:53:44 UTC
ec95c27 Fix `getSignatureOfTypeTag` (#37473) Prevents infinite looping as in #37265. Fixes #37265 19 March 2020, 23:02:39 UTC
292d018 Add code fix for importsNotUsedAsValues error (#37468) 19 March 2020, 21:13:15 UTC
e15a9fb Track tuple type recursion in inferFromObjectTypes (#37479) * Track recursive tuple types in inferFromObjectTypes * Add regression test 19 March 2020, 21:05:33 UTC
7e07a2b Allow rich response for compile on save (#37462) Fixes #30739 19 March 2020, 21:03:21 UTC
c513a4a Allow nested conditionals to be related via constraints (#37208) * Allow nested conditionals to be related via constraints * Delete word in comment 19 March 2020, 19:03:50 UTC
a83ce33 Fix poor error span for unclosed JSX tags in the presence of whitespace/comments (#37419) * Improve jsx tag error span * Move solution to parseJsxChild func * Add tests and update baselines * Update comment in src/compiler/parser.ts Co-Authored-By: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> * Use skipTrivia to check for whitespaces and other trivia * Import React into errorSpanForUnclosedJsxTag.tsx * . * . Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> 19 March 2020, 18:40:43 UTC
e2156a1 Add huge maximal length for noTruncation mode (#37461) 19 March 2020, 17:45:00 UTC
237ea52 Preserve newlines from original source when printing nodes from TextChanges (#36688) * Allow emitter to write multiple newlines in node lists * Progress * Progress * Fix recomputeIndentation * Add tests, fix leading line terminator count * Do a bit less work when `preserveNewlines` is off * Fix accidental find/replace rename * Restore some monomorphism * Fix single line writer * Fix other writers * Revert "Fix other writers" This reverts commit 21b0cb8f3beb6915eb969e4924ce0ad4b1645876. * Revert "Fix single line writer" This reverts commit e535e279f99a423aab44dca8eca46f46669d045f. * Revert "Restore some monomorphism" This reverts commit e3ef42743a99333a15d3cb357125c67aa13f2d03. * Add equal position optimization to getLinesBetweenRangeEndAndRangeStart * Add one more test * Actually save the test file * Rename preserveNewlines to preserveSourceNewlines * Make ignoreSourceNewlines internal * Optimize lines-between functions * Add comment; * Fix trailing line terminator count bug for function parameters * Preserve newlines around parenthesized expressions * Back to speculative microoptimizations, yay * Don’t call getEffectiveLines during tsc emit at all 19 March 2020, 16:46:00 UTC
667f3b4 Allow assertion signatures to narrow by discriminant (#37310) 19 March 2020, 04:16:55 UTC
ac3dc0c fix(37287): check appropriate context with enabled useDefineForClassFields (#37323) 19 March 2020, 00:03:07 UTC
933c294 Dom update 2020-03-18 (#37464) * Copy over DOM updates from TSJS-lib-generator * update baselines 18 March 2020, 23:08:19 UTC
062104d Simplify return type of Object.fromEntries (#37457) PropertyKey is accurate but not usable. Fixes #31393 18 March 2020, 21:35:19 UTC
2df421b Always generate configFileDiag if file is going to be added to configured project (#37443) Fixes #30623 18 March 2020, 17:39:25 UTC
0aa2e27 feat(37409): add fix all quick fix to fixInvalidJsxCharacters (#37436) 18 March 2020, 16:54:17 UTC
f8083d2 LEGO: Merge pull request 37446 LEGO: Merge pull request 37446 18 March 2020, 04:11:08 UTC
5fd5690 LEGO: check in for master to temporary branch. 18 March 2020, 04:10:28 UTC
0222211 Support for/of variables in assertion checking (#37432) * Support for/of variables in assertion checking * Integrate with "dotted name" logic * Add tests 18 March 2020, 02:20:56 UTC
back to top