https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
5aa2eb7 Add 'insiders'. 18 August 2020, 22:53:40 UTC
912cbdf Update LKG 17 August 2020, 02:14:20 UTC
076db46 Cherry-pick PR #40072 into release-4.0 (#40076) Component commits: 1582b76053 Revert "Add '(approximate)' to the beginning of quick info requests in PartialSemantic mode (#40061)" This reverts commit 2426eb4980d34c762e745cdb5062ca211e65f25e. Co-authored-by: Daniel Rosenwasser <drosen@microsoft.com> 17 August 2020, 02:01:12 UTC
c9c6cd2 Bump version to 4.0.2 and LKG 15 August 2020, 01:16:37 UTC
5f5dac0 Add '(approximate)' to the beginning of quick info requests in PartialSemantic mode (#40061) * Add '(approximate)' to the beginning of quick info requests. * Use 'approximation' instead of 'approximate'. 15 August 2020, 01:01:11 UTC
1030455 Ensure file, include and exclude specs used are strings (#40041) * Test displaying failure when specs used are not strings * Ensure specs used are strings Fixes #38164, #39856 * Feedback 14 August 2020, 23:59:19 UTC
edaa8aa Merge pull request #39989 from amcasey/pinned-release-4.0 Pin dependencies in release branch 13 August 2020, 17:24:54 UTC
f88f306 Update LKG 13 August 2020, 06:22:57 UTC
a192551 Cherry-pick PR #40026 into release-4.0 (#40028) Component commits: 8f442baa3c Revert to including only open files in partial semantic server mode Co-authored-by: Sheetal Nandi <shkamat@microsoft.com> 13 August 2020, 03:45:52 UTC
6620b25 🤖 Pick PR #40005 (feat(40004): Missing Compiler API p...) into release-4.0 (#40015) * Cherry-pick PR #40005 into release-4.0 Component commits: fa1ed85593 feat(40004): make isNamedTupleMember public * Update LKG Co-authored-by: Alexander T <alexander.tarasyuk@outlook.com> Co-authored-by: typescript-bot <typescript@microsoft.com> 12 August 2020, 07:10:04 UTC
7558de6 Cherry-pick PR #39702 into release-4.0 (#39985) Component commits: cd5dde5d79 Improve deprecated suggestion node position 6e39ee706e fix typo a593fd03fe Simplify code 58f6f3daf2 merge helper function Co-authored-by: kingwl <kingwenlu@gmail.com> 12 August 2020, 06:33:56 UTC
47c23aa Pin dependencies in release branch With this change, you can build the branch using `npm ci && npm run build`. 11 August 2020, 01:02:58 UTC
3055018 Cherry-pick PR #39950 into release-4.0 (#39951) Component commits: 6e5d75b58b Use isUncalledFunctionReference for aliases too Fixes bogus deprecated notices on imports of functions with deprecated overloads, but with some non-deprecated overloads. Fixes microsoft/vscode#104238 e2eb319e72 Just check all declarations, don't call isUncalledFunction Co-authored-by: Nathan Shively-Sanders <nathansa@microsoft.com> 07 August 2020, 17:40:44 UTC
264d27e 🤖 Pick PR #39937 (Handle empty package.json files) into release-4.0 (#39938) * Cherry-pick PR #39937 into release-4.0 Component commits: 0b9b321b0c Handle empty package.json files * Update LKG Co-authored-by: Andrew Branch <andrew@wheream.io> Co-authored-by: typescript-bot <typescript@microsoft.com> 06 August 2020, 17:37:28 UTC
071b649 Cherry-pick PR #39932 into release-4.0 (#39933) Component commits: f53db98f88 Add missing 'importName' for private field helpers Co-authored-by: Ron Buckton <rbuckton@microsoft.com> 06 August 2020, 16:56:58 UTC
10bfb7c 🤖 Pick PR #39883 (Renames in servermode per feedback) into release-4.0 (#39888) * Cherry-pick PR #39883 into release-4.0 Component commits: d320625392 Server mode renames as per feedback e8d798db59 More renames 508226eec3 Merge branch 'master' into serverModeRename * Update LKG Co-authored-by: Sheetal Nandi <shkamat@microsoft.com> Co-authored-by: typescript-bot <typescript@microsoft.com> 05 August 2020, 21:37:43 UTC
024a09b Update LKG 05 August 2020, 05:30:59 UTC
eeea32b Handle the fact that noResolveResolution resolution is reused Fixes #39795 05 August 2020, 05:18:08 UTC
1763b8e Update LKG 04 August 2020, 07:29:17 UTC
d063105 Rename and use the default ref instead of having a `workflow_dispatch` option 04 August 2020, 07:16:09 UTC
4f02a04 Add an 'Update LKG' action (#39897) 04 August 2020, 07:15:51 UTC
7cf6184 Cherry-pick PR #39889 into release-4.0 (#39890) Component commits: c3ac7fa2e7 Handle the fact that noResolveResolution resolution is reused Fixes #39795 Co-authored-by: Sheetal Nandi <shkamat@microsoft.com> 04 August 2020, 05:19:53 UTC
3a6dde0 Make numeric Array constructors take ArrayLikeBuffer union PR #38449 changed the second overload of the constructor for Int8, Uint8, Int32, Uint32, Int16, Uint16, Float, Float64 -Array so that it no longer includes `ArrayBufferLike`. It's just `ArrayLike<number>`. This is fine except in the case that the caller provides exactly `ArrayLike<number> | ArrayBufferLike`. This PR adds ArrayBufferLike back so that the union is once again accepted. This avoids a breaking change, in particular in one Microsoft-internal codebase. 03 August 2020, 23:57:29 UTC
5463606 Update LKG. 03 August 2020, 05:18:50 UTC
fe74f34 Bump version to 4.0.1-rc. 03 August 2020, 05:14:17 UTC
e141dd1 Merge branch 'master' into release-4.0 03 August 2020, 05:12:42 UTC
7e93035 LEGO: Merge pull request 39868 LEGO: Merge pull request 39868 03 August 2020, 04:11:41 UTC
b092fb3 LEGO: check in for master to temporary branch. 03 August 2020, 04:10:44 UTC
aee78ac Add separate flag serverMode for server mode (#39735) * Add separate flag serverMode for server mode to allow back compatibility * Addressed code review feedback. Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> 03 August 2020, 01:18:26 UTC
86a87c4 Limit auto import provider project size (#39855) * Limit auto import provider project size * Add test * Make option configurable * Fix test * Only bail when setting is auto * Fix other test * Update API baseline 03 August 2020, 00:47:49 UTC
9498978 In JS declaration emit, move imports painted in nested contexts to the root private context (#39818) * In JS declaration emit, move imports painted in nested contexts to the root private context * Add test for nathan 01 August 2020, 01:25:37 UTC
1b97d03 Update user baselines (#39502) Co-authored-by: typescript-bot <typescript@microsoft.com> 31 July 2020, 22:06:29 UTC
d3877d2 Redo in narrowing for intersections (#39637) * Redo in-narrowing for intersections Still need to carve out an exception for globalThis * exempt globalThis from `in` narrowing 30 July 2020, 21:58:22 UTC
32934a9 Merge pull request #39824 from microsoft/fix35484 Allow assignments to a narrowable reference to be considered narrowable 30 July 2020, 19:27:34 UTC
7119e2b The iteration type of overloaded iterator signatures derives from the intersection of their return types (#39722) 30 July 2020, 18:37:04 UTC
315b5f4 PR Feedback 30 July 2020, 18:13:58 UTC
faf128d Fix formatting scanner on JSX text that looks like trivia (#39718) * Fix formatting scanner on JSX text that looks like trivia * Combine if statements Co-authored-by: Andrew Branch <andrew@wheream.io> 30 July 2020, 17:56:14 UTC
bffe354 Issue35876: Give better error message when Classic Module Resolution with incorrect path (#38105) * added Error 5084 to diagnosticMessages.json * added test case errorForBareSpecifierWithImplicitModuleResolution1 to tests/cases/compiler * modified checker.ts to report error 5084 when classic resolution and incorrect path are used * added baseline changes * passes all test cases including src/testRunner/unittests/ tests * Update with feedback * Make it check whether it is the right module resolution kind * Use the right diagnostic message in tsserver tests Co-authored-by: Meera Shivakumar <mshivaku@umich.edu> Co-authored-by: Orta <git@orta.io> 30 July 2020, 17:45:29 UTC
a320e1b Make `getLocalSymbolForExportDefault` look harder for an export Look for a symbol that has a `.localSymbol` property instead of blindly using the first one. Fixes #37829. 30 July 2020, 17:09:21 UTC
b601487 Updates Uint8ArrayConstructor to match MDN documentation. (#38449) * Updates Uint8ArrayConstructor to match MDN documentation. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array/Uint8Array ``` new Uint8Array(); // new in ES2017 new Uint8Array(length); new Uint8Array(typedArray); new Uint8Array(object); new Uint8Array(buffer [, byteOffset [, length]]); ``` While the previous constructors aren't significantly different from the new, it would prevent someone from doing `new Uint8Array(myBuffer, undefined, undefined)` since there was no overload that accepted undefined as a second parameter and buffer as first. Fixes #38446 * Fixes constructor defenition for all other typed arrays. * Renames property to `array` since it is no longer an `arrayOrBuffer`. 30 July 2020, 12:51:50 UTC
21963ce Restore reference change 30 July 2020, 01:41:05 UTC
4c90ba9 Temporary revert to compare user test baselines 30 July 2020, 01:13:27 UTC
bae111f fix(39245): change related diagnostic for missing rest parameter arguments (#39356) Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 30 July 2020, 00:25:13 UTC
b9db641 Allow assignments to a narrowable reference to be considered narrowable 29 July 2020, 23:37:25 UTC
9b2d487 Fix this-parameter emit for JSDocFunction types (#39814) * Fix this parameter emit for JSDocFunction types Previously, parameters with names that were not `new` were treated like rest parameters. This is incorrect: parameters with the name `this` should emit a `this` parameter. Fixes #38550 * :heart: quote style 29 July 2020, 21:11:59 UTC
f2d1531 Fix location for duplicate function implementation errors Use only the relevant declarations (by collecting them in the for loop), and use `declaration` if `getNameOfDeclaration` didn't work (useful for `export default` with anonymous functions). Fixes #39804. Also, use `nodeIsPresent` once, and a random `?.`. 29 July 2020, 20:07:00 UTC
c66b690 Merge pull request #39792 from amcasey/OverloadErrors4 Reduce unnecessary error computation 29 July 2020, 17:43:59 UTC
2f3b835 Merge pull request #39794 from amcasey/Mocha4 Move off deprecated mocha types 28 July 2020, 21:37:18 UTC
189a6d7 Move off deprecated mocha types 28 July 2020, 21:04:29 UTC
03b6580 Make @enum,@this tag construction stricter (#39791) The type expression is required, so the type should reflect that. 28 July 2020, 20:49:42 UTC
2480458 Reduce unnecessary error computation ...during overload resolution. Based on a trace that was spending 30% of a (very slow) overload resolution elaborating errors that were then dropped. 28 July 2020, 20:03:31 UTC
8f04f91 Add diagnostic info to getNameForExportedSymbol crash (#39790) * Add diagnostic info to getNameForExportedSymbol crash * Add JS indicator 28 July 2020, 19:53:56 UTC
79e2ed2 Merge pull request #39776 from amcasey/OverloadErrors Reduce unnecessary error computation 28 July 2020, 17:35:22 UTC
1f1521c Undo accidental change from #39772 (#39779) * Undo accidental change * Delete test 27 July 2020, 23:55:59 UTC
68ba670 Add contextual type for generator return type (#39772) * WIP * Add contextual type for generator return type 27 July 2020, 22:14:47 UTC
5b2b70b Merge pull request #39774 from amcasey/Mocha Move off deprecated mocha types 27 July 2020, 21:54:14 UTC
6318cc6 Move off deprecated mocha types 27 July 2020, 21:29:19 UTC
195fad2 Reduce unnecessary error computation ...during overload resolution. Based on a trace that was spending 30% of a (very slow) overload resolution elaborating errors that were then dropped. 27 July 2020, 21:11:24 UTC
48e58f4 Handle unresolved baseType when trying to get completions for static member (#39731) * Handle unresolved baseType when trying to get completions for static member Fixes #38067 * Update src/services/completions.ts Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> * correct the condition Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 24 July 2020, 23:37:28 UTC
c5d21e7 Lower priority for speculative variadic tuple inferences (#39723) * Inference to [...T, X?] has lower priority than inference to [...T, X] * Update tests * Accept new API baselines 24 July 2020, 22:00:53 UTC
823b69a Fixes slow nav to issue by keeping project with result. (#39721) Also cache the result of config file name for open files Fixes #38491 24 July 2020, 20:33:25 UTC
73b268e Use new octokit API method in review request script (#39719) 23 July 2020, 22:43:48 UTC
2fb0436 LEGO: Merge pull request 39706 LEGO: Merge pull request 39706 22 July 2020, 22:11:58 UTC
7c5ed71 LEGO: check in for master to temporary branch. 22 July 2020, 22:10:54 UTC
ec33814 Make AutoImportProviderProject work with symlinked monorepos (#39679) * Hack everything together * Add test * Remove realpath from program * Ensure symlinked directories are directories * Revert unnecessary change * Update baselines * Use host program realpath on AutoImportProviderProject files before program creation * Which fixes hasRoots() too * Apply suggestions from code review Co-authored-by: Sheetal Nandi <shkamat@microsoft.com> * Lint Co-authored-by: Sheetal Nandi <shkamat@microsoft.com> 22 July 2020, 20:53:30 UTC
312a6f0 Add a fastpath for comparing common mapped types like Pick which avoids manufacturing intermediate type identities (#39696) 22 July 2020, 18:59:16 UTC
b834096 Fix emit/formatting issues in refactors (#39506) * Fix #37948 * Fix formatter skipping tab/space fixup on comments, handle trailing commas in list closing line count. Fixes #37944 * Add newline between imports and main body of new file in moveToNewFile Fixes #37941 * Update baseline (probably broken before?) 22 July 2020, 17:31:42 UTC
e76d172 Fix 38219: signature helper works for optional function condition. (#39672) * fix optional fuction condition. * Adds a test Co-authored-by: Orta <git@orta.io> 22 July 2020, 16:30:21 UTC
8a05707 Fix 31995: make cached key more precise to avoid returning wrong cached value. (#39670) * fix 31995 * revert useless change only for debug. * add test 22 July 2020, 16:26:17 UTC
294a040 not escape unicode char for import path string. (#39463) * not escape unicode char for import path string. * fix test. 22 July 2020, 15:28:29 UTC
34adaaf Support loading of child project if found project is not pure solution has some of its own files and project references (#39613) * Use disableReferencedProjectLoad to stop loading child projects to allow users to disable loading large solutions Fixes #39144 * Handle indirect references * Support loading of child project if found project is not pure solution has some of its own files and project references Fixes #38605 * Fix grammar 21 July 2020, 22:02:10 UTC
e92afac Add disableReferencedProjectLoad to stop loading child projects to allow users to disable loading large solutions (#39593) * Use disableReferencedProjectLoad to stop loading child projects to allow users to disable loading large solutions Fixes #39144 * Handle indirect references * PR feedback 21 July 2020, 21:24:15 UTC
5484687 switch typeof any could be checked for unreachable (#39389) * switch typeof any could be checked for unreachable * fix stupid error * support unknown * remvoe use less code. * fix spelling. 21 July 2020, 17:51:27 UTC
d897646 fix 39453 (#39579) * fix 39453 * add restriction. * add tests * comment. * fix as suggestion. 21 July 2020, 16:40:25 UTC
56865f7 LEGO: Merge pull request 39682 LEGO: Merge pull request 39682 21 July 2020, 04:11:42 UTC
ea75b00 LEGO: check in for master to temporary branch. 21 July 2020, 04:10:47 UTC
94d6b45 Consistent errors on circular base types (#39675) * Properly track and report errors on circular base types * Accept new baselines * Add regression test 21 July 2020, 03:35:47 UTC
5ae4b5d Properly preserve numeric string named properties in declaration files (#39658) * Properly preserve names of properties with numeric literal strings * Accept new baselines 20 July 2020, 17:36:46 UTC
3b22339 Triple slash references must resolve against the resolved file name (.d.ts and not original source file) since they are rewritten in the .d.ts emit (#39645) * Add tests corresponding to repro from #37928 * Triple slash references must resolve against the resolved file name (.d.ts and not original source file) since they are rewritten in the .d.ts emit * Remove the scenario not fixed in this PR 17 July 2020, 23:25:32 UTC
92f41c8 tests(39373): add addition tests (#39631) 17 July 2020, 20:30:57 UTC
f19c610 Adds latest version of TypeScript to the repro code (#39641) 17 July 2020, 19:15:49 UTC
191f4f6 Explicitly add dependency on node to compiler tsconfig, remove es6+ string method usage (#39636) 17 July 2020, 14:02:05 UTC
5519027 Minor fixes to consmetic build issues in user test PR script 17 July 2020, 13:43:50 UTC
4e24b1b fix(39373): add diagnostic message about using a private name for class declarations without name (#39567) 17 July 2020, 00:05:33 UTC
1d671c3 Add twoslash repros to the compiler (#39628) 16 July 2020, 22:39:49 UTC
667ba74 Resolve only relative references in open files on syntax server (#39476) * Resolve only relative references in open files on syntax server * Support resolving tripleslash references only in the open file * Apply suggestions from code review Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> 16 July 2020, 21:31:24 UTC
c07c885 fix(39515): fix getting a position for an element before the line break CRLF/LF on the line that contains 'after' element (#39554) 16 July 2020, 20:56:30 UTC
6430211 fix(38868): add separator for type parameters (#39621) 16 July 2020, 17:58:16 UTC
db79030 Support variadic tuple inference from trailing optional to non-optional (#39614) * Permit variadic tuple inference from trailing optional to non-optional * Add tests 16 July 2020, 00:46:48 UTC
b6f09cc Better error message for unparenthesized function/constructor type notation in union/intersection types (#39570) * add graceful error message for unparenthesized function types in union and intersection * add unparenthesizedFunctionTypeInUnionOrIntersection test * add unparenthesizedConstructorTypeInUnionOrIntersection test * Update src/compiler/parser.ts Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> * pass isInUnionType to parseFunctionOrConstructorTypeToError * Apply suggestions from code review Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> * syntax fix * refactor isStartOfFunctionType into isStartOfFunctionTypeOrConstructorType * Update src/compiler/parser.ts Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> * hoist isUnionType Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 15 July 2020, 21:43:56 UTC
37e6e27 Do not resolve require calls in typescript files even if it contains dynamic import (#39617) * Existing tests showing require in ts file is not used for module resolution * Do not resolve require calls in typescript files even if it contains dynamic import Fixes #38611 15 July 2020, 21:31:55 UTC
f2c5643 Flag mapped types with circular property types and do not attempt to print them structurally (#39552) 15 July 2020, 18:19:43 UTC
fcd4fcb Use combined node flags (#39403) 15 July 2020, 16:22:12 UTC
7b72875 Fix incorrect deprecated mark (#39611) * Fix incorrect deprecated mark * improve test 15 July 2020, 15:47:25 UTC
dd2fc86 Don’t give all instantiated signatures in JS strict arity (#39606) 15 July 2020, 01:56:50 UTC
ef9affe Use jsxFragmentFactory entity name for factory name lookup from checking fragments (#39475) 15 July 2020, 00:25:45 UTC
ececf3b fix(33511): show jsx namespace default import quick fix if it does not exists in the current scope (#38419) 14 July 2020, 22:43:18 UTC
98ab3a7 Fix tsc --watch crash on module augmentations when module resolution changes (#39604) * Add failing test * Ensure source files are bound before analyzing them 14 July 2020, 22:05:10 UTC
f68a839 Load ETW module from a specified path (#39599) 14 July 2020, 18:52:55 UTC
1702238 Add refactor convertToOptionalChainExpression (#39135) * add convertOptionalChain * cover more cases * expose containsMatchingReference * clean up performing edits * bound start position * add tests * refactor and handle edge cases * update tests * consider explicit requests for empty spans * update fourslash to use trigger reason * add tests cases for trigger reason * fix errors * remove type assertion * fix non ampersand chains * clean up some logic * add ternary case * add diagnostic message * add nullish check for ternary expressions * Update src/services/refactors/convertToOptionalChainExpression.ts Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> * Update src/services/refactors/convertToOptionalChainExpression.ts Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> * Update tests/cases/fourslash/refactorConvertToOptionalChainExpressionForTriggerReason3.ts Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> * Update tests/cases/fourslash/refactorConvertToOptionalChainExpressionForTriggerReason1.ts Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> * reformat and remove unused checks * allow any for ternary refactor * add tests * add tests * check return and variable statements * use isMatchingReference instead of containsMatchingReference * allow partial selections * fine tune selection ranges * recurse for call expressions * fix spellings * add recursive cases * remove isOrContainsMatchingReference * cleanup * more refactoring * cleanup * rename tests * address PR comments * check match syntactically * handle another call expression case * some renames * inline some checks * add test * address comments * add refactorNotAvailableReason Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 14 July 2020, 02:33:33 UTC
back to top