Commit Graph
4623 Commits
Author SHA1 Message Date
Pranav Senthilnathan (from Dev Box) e6eccb91a6 Merge branch 'main' of https://github.com/microsoft/TypeScript into pranas/completion-computed-property 2023-10-25 15:51:00 -07:00
Pranav Senthilnathan (from Dev Box) 00303d53fe test cases 2023-10-25 11:51:46 -07:00
Pranav Senthilnathan (from Dev Box) b2b138fe2f Improving completions for computed properties 2023-10-25 10:57:08 -07:00
Andrew Branch aef4e468d9 Add user preference for preferring type-only auto imports (#56090) 2023-10-20 14:52:18 -07:00
Sheetal Nandi 508e52d13a During fourslash server test baseline tsserver log file so that project updates and watches can be baselined and reasoned about (#56132) 2023-10-16 16:08:13 -07:00
Sheetal Nandi 9473195b6c noDts project resolutions verification and updates for incremental behaviour (#56016) 2023-10-10 10:24:08 -07:00
Andrew Branch 5001433b10 Allow valid contextual keyword completions even when an auto-import by the same name exists (#56001) 2023-10-05 16:01:59 -07:00
Oleksandr T 6ec5547823 fix(55945): Inlay hints don't work for bigint literals (#55947) 2023-10-04 10:52:01 -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
Oleksandr TandDaniel Rosenwasser f2805dc88b fix(55946): Errant case causes crash in switch/case snippet completions (#55949)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2023-10-02 21:46:48 -07:00
Oleksandr T c640c5de0a fix(55937): 'Infer function return type' offered in preceding trivia (#55938) 2023-10-02 16:34:46 -07:00
Mateusz Burzyński efc343a438 Remove CheckMode.IsForStringLiteralArgumentCompletions (#55867) 2023-09-29 16:49:30 -07:00
Maria José Solano 952526c5c9 Show interactive inlay hints in parameter types (#55918) 2023-09-29 13:45:57 -07:00
Ron Buckton 9cf44dc51a Support custom 'Symbol.hasInstance' methods when narrowing 'instanceof' (#55052) 2023-09-29 13:37:44 -04:00
Jake Bailey 9208239759 Remove shims.ts and related infra (#55868) 2023-09-28 13:54:47 -07:00
Oleksandr T f5bf4e63d7 fix(55775) - TS parameter inlay hints disconsiders used parameters when set to literals (#55780) 2023-09-26 17:32:24 -07:00
Oleksandr T 2e9e9a292c feat(53656): Add support for the updated import attributes proposal (#54242) 2023-09-26 13:20:15 -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
Ron Buckton 956a363028 Emit source positions for open/close braces (#47924) 2023-09-23 02:41:44 -04:00
Oleksandr TandNathan Shively-Sanders e743d070ea fix(55404): Remove braces from arrow function" generates invalid code in JavaScript (#55429)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-09-22 16:14:06 -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
Oleksandr T ec2acc9f8a fix(55823) - Remove Braces From Arrow function fails when using satisfies (#55831) 2023-09-22 11:32:56 -07:00
Mateusz Burzyński 56accb08a1 Fixed string completions that require escaping (#55118) 2023-09-21 15:05:34 -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
Jake Bailey 45a05f3475 Support converting string literals to templates outside of concatenation (#54647) 2023-09-21 11:16:26 -07:00
Maria José Solano 0b82e1a03f Interactive type inlay hints (#55141) 2023-09-19 22:50:11 -07:00
Oleksandr T 79736eff89 fix(55258): JSDoc render with @param Object properties (#55264) 2023-09-19 14:00:32 -07:00
Mateusz Burzyński 0464e91c8b Fixed an issue with type-only import promoting (#55365) 2023-09-18 12:38:00 -07:00
Jake BaileyandMateusz Burzyński 9cbcf010ce Ensure generated property names for methods named "new" are quoted (#55750)
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2023-09-15 10:25:10 -07:00
Mateusz Burzyński e6321d77c7 Fixed element access expression writes for divergent write types (#55585) 2023-09-13 16:14:07 -07:00
Mateusz Burzyński 21b8892d21 Fixed an issue with errors not being correctly reported after completion requests in functions within nested calls (#54944) 2023-09-13 15:48:40 -07:00
Oleksandr T 05fdb5f671 fix(54266): Navtree doesn't return computed class members (#54271) 2023-09-13 14:50:48 -07:00
Mateusz Burzyński 543d7ed00c Fixed display of optional and rest parameters created as result of combining union parameters (#55625) 2023-09-13 11:25:19 -07:00
Oleksandr T a0c51b5336 fix(55694): format issues (#55721) 2023-09-12 11:36:03 -07:00
PhoebeSzmucerandPhoebe Szmucer eb2d1f93f2 Fix an off-by-one error in getBaseDirectoriesFromRootDirs (#55233)
Co-authored-by: Phoebe Szmucer <pszmucer@palantir.com>
2023-09-11 07:57:50 -07:00
Gabriela Araujo Britto b5d6aa73d1 Add option to exclude library symbols from navTo results (#55605) 2023-09-07 11:19:56 -07:00
Hardik KoulandAndrew Branch dce7b6d2e7 Prevents auto import in module: "none" (#55556)
Co-authored-by: Andrew Branch <andrew@wheream.io>
2023-08-31 09:18:26 -07:00
Gabriela Araujo Britto cbadc78f96 Return all symbols in navto for empty string pattern (#55550) 2023-08-30 15:30:38 -07:00
Oleksandr T fe82a610cd fix(55014): Quick fix for ts7051 introduces incorrect type (#55020) 2023-08-30 15:17:43 -07:00
Mateusz Burzyński 32ebbe05dc Transfer all declared symbols onto the type from the interface that extends another (#55252) 2023-08-28 15:17:44 -07:00
Mateusz Burzyński 9a6a4ab1d5 Fixed a string completions regression when requested directly in argument position (#55552) 2023-08-28 15:04:06 -07:00
Mateusz Burzyński 27a5bdd446 Add a test for finding all references of same-named imports from two missing modules (#55519) 2023-08-26 08:58:48 -07:00
Mateusz Burzyński 5b9547b1ba Add a fourslash completions test related to JSDoc @template on prototype method (#55513) 2023-08-26 08:57:45 -07:00
Oleksandr T daa7e985f5 fix(55434): Renamed field takes on documentation from other field with the same name (#55469) 2023-08-23 17:02:40 -07:00
Maria José Solano 5fe88ea044 [Interactive inlay hints] Get source file from parameter node (#55476) 2023-08-23 16:40:49 -07:00
Mateusz Burzyński b8b0d26cb9 Display write type for property accesses in write locations (#54777) 2023-08-15 12:01:21 -07:00
Oleksandr T 0099e42451 fix(55374): Invalid Parameter Inlay Hint (#55384) 2023-08-15 11:41:00 -07:00
Maria José Solano 05cb53ec0b Organize/consolidate inlay hint tests (#55332) 2023-08-14 14:21:00 -07:00
lyonbot b35fa04346 Fix broken formatting rules around namespaced JSX attributes (#55294) 2023-08-11 09:51:05 -07:00
Mateusz Burzyński 28cd1fbd13 Allow intersections to be used as valid types for template literal placeholders (#54188) 2023-08-10 12:50:21 -07:00