Commit Graph

6534 Commits

Author SHA1 Message Date
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
Sheetal Nandi
df3bec6674 Tweak module resolution failed lookup watching (#53591) 2023-04-13 14:50:50 -07:00
Donald33 Wang
adcc39d2c7 Allow custom switch-case indentation in formatting (#53733) 2023-04-13 08:35:05 -07:00
Jake Bailey
a26175bffb Ensure findPrecedingToken recurses into JSDoc children when needed (#53487) 2023-04-12 12:00:47 -07:00
Vitaly
a97ba985b2 infer from usages: support short-circuiting assignment operators (#52860) 2023-04-10 13:13:46 -07:00
Isabel Duan
d4c48e1495 Adds linked editing for JSX tags (#53284) 2023-04-07 13:39:10 -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
Anders Hejlsberg
b40385b595 Explicit undefined return type checked similar to explicit void return type (#53607) 2023-04-01 14:44:52 -07:00
David Sherret
710e7d914d Remove non-ascii characters from internal code comments (#53608) 2023-03-31 10:57:57 -07:00
Andrew Branch
52a8061e11 Type-only auto-import improvements (#53590) 2023-03-30 12:01:40 -07:00
Mateusz Burzyński
ae2b4afdcb Provide string completions within unions in indexed access types (#53225) 2023-03-29 10:07:34 -07:00
Iván
2b57a88b72 Use related spans for "implement abstract class" errors (#48030)
Co-authored-by: Gabriela Araujo Britto <gabrielaa@microsoft.com>
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-03-28 07:54:36 -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
Jake Bailey
ac55b297b7 Upgrade "boolean-trivia" lint to new "argument-trivia" lint that uses type info, has quick fixes, etc. (#53002) 2023-03-23 16:26:39 -07:00
Wesley Wigham
916f9b7344 Handle jsx runtime implicit synthetic import in find all references (#51319) 2023-03-23 12:08:52 -07:00
Lyu, Wei-Da
5712730c2d fix: non-relative path completion without baseUrl (#52908) 2023-03-23 08:57:57 -07:00
Lyu, Wei-Da
9f18c3fd9c fix: escape module specifier for snippet after quoted (#53407) 2023-03-22 10:19:16 -07:00
Jake Bailey
2c952fe850 Remove redundant throws of Debug.assertNever (#53405) 2023-03-21 16:04:06 -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
79a414bb5e Consistently use '...args' for diagnostic args (#53193) 2023-03-20 12:53:09 -07:00
Jake Bailey
913f65c28d Remove most "import * as ts" imports, except for const enum reverse mapping and plugins (#53329) 2023-03-20 10:50:40 -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
Ron Buckton
ae1b3db8ce Allow 'verbatimModuleSyntax' with transpileModule (#53240)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2023-03-14 13:03:43 -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
88adf8014b Make special intersections order-independent (#52782) 2023-03-07 15:39:14 -08:00
Nathan Shively-Sanders
ff1e08f859 Rename scanner token methods (#53078) 2023-03-07 13:54:44 -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
Sheetal Nandi
b19cfc03f2 Make getSupportedCodeFixes plugin test such that we dont need to update its baseline for every new error (#53070) 2023-03-02 14:58:13 -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
Sheetal Nandi
dcc766f2b2 Remove long deprecated occurrences request (#52347) 2023-03-01 10:59:07 -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
Jake Bailey
6b75ce23ce Completely remove Push type (#52133) 2023-03-01 09:34:59 -08:00
Jake Bailey
ca1cf3dd85 Deprecate UnderscoreEscapedMap and remove internal uses (#53032) 2023-02-28 16:55:29 -08:00
Vitaly
0e357f510b Exclude literal completions after closing quote and JSX attribute location (#52676) 2023-02-28 13:31:30 -08:00
Jake Bailey
6fe711f85a Remove unused eslint-disable directives (#52987) 2023-02-27 11:01:37 -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
Mateusz Burzyński
38b951e166 Fixed crash in switch completions related to parenthesized expressions (#52881) 2023-02-21 10:41:16 -08:00
Jake Bailey
e88fe15d68 Remove ts namespace import from checker (#52890) 2023-02-21 10:14:26 -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
Ron Buckton
fd0370822f Fix crash in 'Wrap in JSX Fragment' quick fix (#52816) 2023-02-16 21:34:58 -05:00
Ron Buckton
55eff14353 Fix crash in extract type and generate get/set refactors (#52803) 2023-02-16 16:15:54 -05:00
Vitaly
2f43308dc4 Add API option to getCompletionsAtPosition to expose completion symbol information (#52560)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2023-02-16 11:09:29 -08:00