Commit Graph

4503 Commits

Author SHA1 Message Date
Vitaly c70fa514b0 Don't include completions for current and later parameters (#52690) 2023-04-14 17:05:55 -07:00
Zzzen 458c5e6c64 fix(53138): go-to-definition not working on expression of SatisfiesExpression (#53164)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-04-13 15:29:18 -07:00
Donald33 Wang adcc39d2c7 Allow custom switch-case indentation in formatting (#53733) 2023-04-13 08:35:05 -07:00
Anders Hejlsberg bec204c844 Revise discriminateTypeByDiscriminableItems function (#53709)
Co-authored-by: Maria Solano <mariasolano@microsoft.com>
2023-04-12 07:25:58 -07:00
Vitaly a97ba985b2 infer from usages: support short-circuiting assignment operators (#52860) 2023-04-10 13:13:46 -07:00
Tobias S 8369d41efe fix ordering of code fix import with triple-slash directives (#52484) 2023-04-10 10:45:57 -07:00
Isabel Duan d4c48e1495 Adds linked editing for JSX tags (#53284) 2023-04-07 13:39:10 -07:00
Andrew Branch 287ee41cf2 Fix two module specifier ending preference detection issues (#53691) 2023-04-06 13:06:58 -07:00
Gabriela Araujo Britto e83d61398e Provide snippet completions for @param in JSDoc (#53260) 2023-04-04 11:35:09 -07:00
Oleksandr T 3f7a8d5604 fix(52828): No signature help in parameter declaration before , and ) (#52840) 2023-04-03 13:43:20 -07:00
Andrew Branch 9052ef895a Fix Go To Source Definition in --moduleResolution bundler (#53613) 2023-03-31 15:50:11 -07:00
Andrew Branch 52a8061e11 Type-only auto-import improvements (#53590) 2023-03-30 12:01:40 -07:00
Andrew Branch 5586727193 Allow getter and setter types to be unrelated (#53417) 2023-03-30 08:51:01 -07:00
Mateusz Burzyński ae2b4afdcb Provide string completions within unions in indexed access types (#53225) 2023-03-29 10:07:34 -07:00
Mateusz Burzyński 089876a5c5 Retry string completions from the inferred type by default (#53481) 2023-03-27 18:21:03 -07:00
Maria José Solano 6e44db7d1d Don't capture type parameters defined inside the extraction range with "Extract to function" (#53543) 2023-03-27 18:12:41 -07:00
Andrew Branch 3a3146e25f Add tests for completions crash (#53472) 2023-03-23 15:59:43 -07:00
Mateusz Burzyński 218180ded2 Fixed an issue with an incorrect resolved signature being cached/returned sometimes for signatures depending on the contextual type/outer inference (#52146) 2023-03-23 12:15:33 -07:00
Wesley Wigham 916f9b7344 Handle jsx runtime implicit synthetic import in find all references (#51319) 2023-03-23 12:08:52 -07:00
Gabriela Araujo Britto d5fd34b037 Don't error when calling resolveEntityName (#53441) 2023-03-23 10:49:53 -07:00
Lyu, Wei-Da 5712730c2d fix: non-relative path completion without baseUrl (#52908) 2023-03-23 08:57:57 -07:00
Sheetal Nandi 1b745df857 Adding baseline methods for verification of findAllRefs, GoTo*, Occurrences, highlights and rename deprecating the corresponding verification methods from fourslash tests (#52576) 2023-03-22 14:02:18 -07:00
Oleksandr T 01a7a3e146 fix(53289): TypeScript cannot auto-complete keyword typeof (#53325) 2023-03-21 13:51:08 -07:00
Oleksandr T c5b539dcd5 fix(53372): TypeScript cannot auto-complete keyword extends (#53418) 2023-03-21 13:12:38 -07:00
Jake Bailey 27aca613ff Remove random code from fourslash test (#53335) 2023-03-20 11:13:06 -07:00
gu bf369f1b95 Fix missing reference in js (#50509) (#53000) 2023-03-17 15:51:11 -07:00
Kagami Sascha Rosylight f473058361 Allow implicit return with explicit undefined return type (#53092)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2023-03-17 12:08:01 -07:00
Mateusz Burzyński eb6aaea86e Fixed symbol declarations for generic filtering mapped types (#53207) 2023-03-15 10:43:45 -07:00
Oleksandr T 0e3e14d39e fix(52992): no add missing properties quick for nested object literal (#53004) 2023-03-09 10:00:55 -08:00
Mateusz Burzyński 6e4f0a430e Fix string completions depending on contextual signatures (#52717) 2023-03-07 16:42:16 -08:00
Mateusz Burzyński f555ad73db Fix property completion in unions of object types and string mappings (#52767) 2023-03-07 16:36:37 -08:00
jihndai 4af97b0572 Fix compound assignments for properties with different getter & setter types (#50431) 2023-03-07 16:02:16 -08:00
Mateusz Burzyński 88adf8014b Make special intersections order-independent (#52782) 2023-03-07 15:39:14 -08:00
Oleksandr T 02cf0b68b7 fix(52879): No autocompletions after the typeof keyword inside JSDoc comments. (#52973) 2023-03-07 10:52:23 -08:00
Vitaly b1f25a2bdb Move to New File: Respect Quote Style in import updates (#52974) 2023-03-07 09:23:02 -08:00
Oleksandr T 5240f060b8 feat(52569): fixUnusedIdentifier: Unwanted side-effects when removing an unused destructuring declaration containing a function call (#52951) 2023-03-06 15:41:13 -08:00
Oleksandr T 3a6752ca14 feat(52883): Organize Imports doesn't treat exports the same way and merges groups (#52982) 2023-03-03 17:03:21 -08:00
Oleksandr T a9ae9eeb23 fix(53074): Functions with async keyword don't autocomplete (#53079) 2023-03-03 10:31:01 -08:00
Oleksandr T 211a60dc79 fix(52444): "... is a type and must be imported using a type-only import ..." should have a quick fix (#52565) 2023-03-01 12:20:56 -08:00
brendaHuang 1b692dec96 convert JSDoc typedef to type, issue 50644 (#51430)
Co-authored-by: Brenda Huang <brehuang@linkedin.com>
2023-03-01 09:43:08 -08:00
Vitaly 0e357f510b Exclude literal completions after closing quote and JSX attribute location (#52676) 2023-02-28 13:31:30 -08:00
Mateusz Burzyński 1a76569a78 Retry querying string completions from the inferred type if the original completions request doesn't return anything (#52875) 2023-02-23 12:13:30 -08:00
Jake Bailey 3471bd7d86 Fix type import node circularity errors in eager diagnostic mode, deprecations (#52861) 2023-02-21 15:42:15 -08:00
Mateusz Burzyński 38b951e166 Fixed crash in switch completions related to parenthesized expressions (#52881) 2023-02-21 10:41:16 -08:00
Oleksandr T e1ae30e1ab fix(52852): "Move to a new file" refactoring does not maintain "import type" semantics (#52854) 2023-02-21 10:02:00 -08:00
Oleksandr T bbb98cf797 fix(52664): Assertion failure on completions for derived class with computed base property name (#52673) 2023-02-17 17:36:52 -08:00
Oleksandr T 088fdf6efe fix(51202): Circular instantiation expression crashing IDEs (#51214) 2023-02-17 11:31:45 -08:00
Jake Bailey a3a4993937 Don't parse out a name for JSX fragments (#52818) 2023-02-17 10:55:56 -08:00
Ron Buckton fd0370822f Fix crash in 'Wrap in JSX Fragment' quick fix (#52816) 2023-02-16 21:34:58 -05:00
Mateusz Burzyński 879dbcd2df Do not report errors when inference is partially blocked (#52728) 2023-02-16 15:17:07 -08:00