Commit Graph

12694 Commits

Author SHA1 Message Date
Ron Buckton
718d79807c Do not infer yield* type from contextual TReturn (#58621) 2024-05-29 18:05:00 -04:00
navya9singh
1659a9d615 Handling statements from a known source file (#58679) 2024-05-29 13:46:37 -07:00
graphemecluster
0cc62c3007 Correct Regular Expressions Behavior Related to Annex B (#58320)
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2024-05-29 16:14:10 -04:00
Gabriela Araujo Britto
8f408cc120 Check resolution of tslib per file (#58654) 2024-05-28 16:45:51 -07:00
Anders Hejlsberg
1d026a9f69 Only resolve source return type when actually needed during inference (#58650) 2024-05-28 08:10:06 -07:00
Zzzen
af3a61fe44 fix(57022): Rename of string literal property name doesn't rename all occurences (#57201) 2024-05-24 16:04:02 -07:00
graphemecluster
d0ef028841 Improve Recovery of Unterminated Regular Expressions (#58289)
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2024-05-24 15:46:26 -04:00
Titian Cernicova-Dragomir
842cf177db Improved errors for required parameters with default values in isolated declaration (#58637) 2024-05-24 11:50:47 -07:00
Titian Cernicova-Dragomir
6856735985 Remove members that are invalid computed properties. (#58646) 2024-05-24 10:25:46 -07:00
Isabel Duan
cffc425ad7 fix53287 mergeSymbol checks if the resolved target can merge with the source (#58326) 2024-05-23 17:30:13 -07:00
Justin Chen
abc37af88d move to code actions update and tests (#58548) 2024-05-23 12:34:42 -07:00
Ron Buckton
a1dfb1abe5 Fix class decorator detection in class fields transform (#58554) 2024-05-23 15:32:46 -04:00
Wesley Wigham
d66a30992b Add test for issue fixed by #58546 (#58635) 2024-05-23 12:31:01 -07:00
Titian Cernicova-Dragomir
2b4e7e34e7 Improve reuse of nodes in signatures with type mapping (#58546) 2024-05-23 12:11:29 -07:00
Wesley Wigham
b3f3bb3d38 Propagate the error any type in union and intersection construction (#58610)
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2024-05-23 09:38:57 -07:00
Titian Cernicova-Dragomir
a203ace7af Ban inferred return type on async and generator functions. (#58628) 2024-05-23 09:29:49 -07:00
Kat Marchán
ddf43cd0e0 CodeMapper support (#55406) 2024-05-22 16:47:08 -07:00
Titian Cernicova-Dragomir
8537bb72eb Error if type node uses inaccessible type in isolated declarations (#58620) 2024-05-22 15:51:11 -07:00
Wesley Wigham
b682ed4504 Lock down computed names in object literals and classes under --isolatedDeclarations (#58596) 2024-05-22 12:28:07 -07:00
Wesley Wigham
6f72e24544 Fix elided var handling in declaration emit visibility checks (#58605)
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2024-05-21 13:44:35 -07:00
navya9singh
11b73ecc4a Fixing a case when text is pasted into a blank file (#58595) 2024-05-21 11:54:35 -07:00
Andrew Branch
84ab39d7f0 Respect importModuleSpecifierPreference in sort order between fixes for the same symbol from different files (#58597) 2024-05-21 08:36:53 -07:00
Wesley Wigham
79a851426c Attempt to reuse type parameter constraint nodes (#58539) 2024-05-16 14:51:09 -07:00
Kevin Gibbons
e8274f74f9 add types for set methods proposal (#57230) 2024-05-16 17:19:25 -04:00
Isabel Duan
4da470da37 fix56509: return type if tryCreateAwaitedType fails (#58547) 2024-05-16 14:02:15 -07:00
Titian Cernicova-Dragomir
4ece0a381b Partially reuse type nodes (#58516) 2024-05-14 13:56:41 -07:00
Wesley Wigham
2d47953d9d Declaration emit should avoid issuing errors on unresolved names (#58536) 2024-05-14 12:49:05 -07:00
Anders Hejlsberg
d90e8e7eca Fix constant evaluation of template string expressions (#58500) 2024-05-14 09:44:05 -04:00
Sheetal Nandi
e51cbc8764 Do not lowercase typeReference directive name (#58525) 2024-05-13 16:35:49 -07:00
Wesley Wigham
56cfd6c3a8 Preserve return type nodes which resolve to errors in declaration emit (#58522) 2024-05-13 11:55:01 -07:00
Oleksandr T
017c1e0e64 fix(55765): Implement Interface Code Action is not available under certain circumstances (#55767) 2024-05-10 14:46:51 -07:00
Titian Cernicova-Dragomir
72c12c9920 Isolated declarations fix signature serialization scoping (#58409) 2024-05-10 14:09:25 -07:00
Isabel Duan
0c1b36fb65 fix37816: goToDefinition skips call signatures for jsx components (#57969) 2024-05-10 13:45:45 -07:00
navya9singh
be8fb98cf1 Implementing copy/paste (#57262) 2024-05-08 16:07:51 -07:00
Oleksandr T
dcec37e532 fix(58399): [isolatedDeclarations][5.5] Autofix does not work when JSX prop contains a dash (#58478) 2024-05-08 15:12:43 -07:00
Wesley Wigham
fece7f11c0 Preserve type nodes which resolve to errors in declaration emit output (#58475) 2024-05-08 13:29:51 -07:00
Andrew Branch
bc14459f3b Refactor default export info name gathering (#58460) 2024-05-08 09:33:17 -07:00
Andrew Branch
14b4529a69 Fix tslib resolutions (#58451)
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
2024-05-07 11:28:20 -07:00
Wesley Wigham
0d3c48109d Declaration emit should retain (instead of elide) unresolved computed names (#58428)
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2024-05-07 05:42:13 -07:00
Mateusz Burzyński
9598d35074 Avoid getting single call signatures when parameter types are the same (#58392) 2024-05-06 16:49:24 -07:00
Wesley Wigham
e154d47851 Type alias declarations should not return an effective annotation node (#58410) 2024-05-03 10:34:35 -07:00
Anders Hejlsberg
3a74ec4e99 Disable constraint reduction in intersections created by constraint hoisting (#58403) 2024-05-02 16:55:11 -07:00
Mateusz Burzyński
f01cae8893 Fixed an issue with missingType narrowing by case undefined in default cases (#58001) 2024-05-01 08:57:42 -07:00
Hana Joo
33b156147b Add a code fixer for --isolatedDeclarations errors (#58260)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2024-04-30 15:25:51 -07:00
Oleksandr T
dc316afea4 fix(58360): Cheese being inserted on TypeScript Quick Fix (#58365) 2024-04-29 15:29:46 -07:00
Anders Hejlsberg
c763c277eb Fix ghost errors resulting from out-of-order type checking (#58337) 2024-04-29 14:27:18 -07:00
Gabriela Araujo Britto
d2ad3ca035 Improve diagnostics deduplication 2 (#58318) 2024-04-29 10:24:22 -07:00
Gabriela Araujo Britto
ebcb09d71a Improve diagnostics deduplication (#58220) 2024-04-26 15:44:09 -07:00
Wesley Wigham
f76727d17a Add noCheck API option (#57934) 2024-04-26 13:21:15 -07:00
navya9singh
ce4862c267 Updating move to file (#58257) 2024-04-25 15:32:18 -07:00