4707 Commits

Author SHA1 Message Date
navya9singh
ce4862c267
Updating move to file (#58257) 2024-04-25 15:32:18 -07:00
Armando Aguirre
5b69fdf541
Clone questionMark and dotdotdot token (#58263)
Co-authored-by: Armando Aguirre Sepulveda <araguir@microsoft.com>
2024-04-24 10:20:59 -07:00
Mateusz Burzyński
b1d821ae0c
Fixed crash in go to definition related to expando classes in JS files (#57628) 2024-04-19 16:54:30 -07:00
Oleksandr T
93451e8dd9
fix(57497): "Remove unused declaration" does not work on overloaded function declarations (#57517) 2024-04-19 11:28:00 -07:00
Oleksandr T
4b01686602
fix(58151): JSDoc tags get lost when inheriting from a grandparent class (#58183) 2024-04-15 15:47:40 -07:00
idango10
a4d12a46c8
fix(58146): enum quick info can display non ascii strings (#58171) 2024-04-12 13:04:03 -07:00
Anders Hejlsberg
53de336e1e
Don't propagate partial union/intersection properties between caches (#58083)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-04-09 11:39:44 -07:00
Wesley Wigham
f89a5fd674
Replace addUndefined in serializeTypeForDeclaration with the actual declaration (#58085) 2024-04-08 21:42:50 -07:00
Mateusz Burzyński
69e7e57b15
Fixed crashes when looking up symbols of jsdoc nodes in TS files (#57110)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2024-04-04 15:45:35 -07:00
Wesley Wigham
386cc0f417
Always consider type parameters in scope visible to the node builder (#58078) 2024-04-04 12:34:39 -07:00
Oleksandr T
1ab2a8d83e
fix(57761): Invalid verbatimModuleSyntax quick fix offered when also reexporting a value (#57769) 2024-04-03 16:06:44 -07:00
Isabel Duan
46b4c925c3
fix51686: don't indent mapped types on new lines (#58039) 2024-04-02 15:52:09 -07:00
Mateusz Burzyński
97dc5f0dd9
Fixed a regression related to determining argument index when spread elements are involved (#57637)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-03-28 16:18:28 -07:00
Wesley Wigham
6ff28d14d1
Node builder reuses type predicate nodes, more often reuses return position nodes (#57990) 2024-03-28 14:55:10 -07:00
Lyu, Wei-Da
b0d5ae6091
fix type import check for default-import/re-export in js files (#57778) 2024-03-27 15:08:18 -07:00
Oleksandr T
2de69b09c5
feat(41825): JSDoc equivalent of import * (#57207) 2024-03-26 13:52:43 -07:00
idango10
316f1805f3
fix(57635): duplicate property name error when trying to overwrite early-bound prop with late-bound prop (#57717) 2024-03-26 08:22:06 -07:00
Eloy Robillard
ede8ad84b1
fix(57451): Prevent self-imports when using the "Move to File" refactor (#57530) 2024-03-20 14:06:46 -07:00
Isabel Duan
4ecadc6c03
fix54092: return replacement ranges for completions on unclosed strings (#57839)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2024-03-20 13:41:48 -07:00
Wesley Wigham
66047f79dc
Look for usable type nodes in associated expressions for declaration emit (#57772) 2024-03-18 13:19:55 -07:00
Isabel Duan
0a671aa393
Change detection to detection by diff in organizeImports (#57267) 2024-03-15 16:07:39 -07:00
Dan Vanderkam
e5bf594753
Infer type predicates from function bodies using control flow analysis (#57465)
Co-authored-by: Anders Hejlsberg <andersh@microsoft.com>
2024-03-15 11:42:55 -07:00
Ron Buckton
5e8f900afa
Report grammar errors for invalid decorator grammar (#57749) 2024-03-13 14:50:04 -04:00
Oleksandr T
884d649846
fix(57445): No inlay hints for property declaration types inferred from constructor (#57494)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2024-03-12 11:50:46 -07:00
Gabriela Araujo Britto
6357c89c52
Properly set hasAction for erasing modifiers in class member completions (#57643) 2024-03-07 11:34:47 -08:00
idango10
64edd07330
fix(57590): [Formatting] Remove spaces between ... and type name in tuple spread (#57604) 2024-03-04 09:48:48 -08:00
Jake Bailey
26df0cb23e
Remove 5.5 deprecated compiler options (#57527)
Co-authored-by: Andrew Branch <andrew@wheream.io>
2024-02-28 14:35:39 -08:00
Mateusz Burzyński
df8d755c1d
Prefer global over object members completions after ... (#57542) 2024-02-27 15:05:37 -08:00
Oleksandr T
65812bf3ec
fix(57348): Auto-complete on satisfies auto-imports satisfies (#57364) 2024-02-26 09:29:45 -08:00
Aiday Marlen Kyzy
60f93aa83a
Making Move To File Action appear less often (#57080) 2024-02-20 00:06:10 -08:00
Oleksandr T
91e67ffbea
fix(57392): using is not suggested as a keyword (#57394) 2024-02-16 14:12:17 -08:00
hborchardt
da5f0fe9d4
Add missing members to array of objects in quickfix (#57143) 2024-02-15 11:49:38 -08:00
PhoebeSzmucer
d65bdb8c34
Fix duplicated import suggestions (#57369)
Co-authored-by: Phoebe Szmucer <pszmucer@palantir.com>
2024-02-12 14:00:27 -08:00
Andrew Branch
76cf0928f2
Expand anti-parent-barrel auto-import heuristic to all moduleResolution modes (#57342) 2024-02-08 11:12:35 -08:00
Oleksandr T
10a3872de4
fix(57326): 'resolves to a type-only declaration and must be imported using a type-only import' doesn't have a quick fix (#57327) 2024-02-07 15:17:29 -08:00
Andrew Branch
31bf80ce6b
Fix path completions missing extensions for exports wildcards (#57312) 2024-02-07 15:02:35 -08:00
Isabel Duan
ee2090d7f2
fix 57215 -- add support for import attributes to OrganizeImports (#57250) 2024-02-01 10:32:58 -08:00
Isabel Duan
e45183b82a
fix57127: remove linkedediting from cases where JSX tags are not closed (#57132) 2024-01-30 11:25:32 -08:00
Andrew Branch
9ba8c7a51c
Allow autoImportFileExcludePatterns to match anywhere in the file path (#57090) 2024-01-19 12:40:47 -08:00
Oleksandr T
140fa7e5d1
feat(51870): Add a Quick Fix to add an additional parameter to a method or function (#56411) 2024-01-19 09:35:33 -08:00
Oleksandr T
55153b0274
feat(57028): Support inlining variables that are used in object literal shorthand (#57051) 2024-01-18 11:27:13 -08:00
Andrew Branch
a673958ccc
Check autoImportExcludePatterns against symlink paths (#57033) 2024-01-16 09:35:26 -08:00
Sviatoslav Zaytsev
1717826b6e
fix(51225): Go-to-definition on case or default should jump to the containing switch statement if available. (#51236)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2024-01-11 11:14:03 -08:00
Oleksandr T
72d497352f
fix(55994): Type-check Import Attributes in static imports (#56034) 2024-01-10 15:35:04 -08:00
Isabel Duan
780097856a
Organize type imports (#55269) 2024-01-09 16:29:16 -08:00
Oleksandr T
2c14a1c225
fix(55650): Wrong/missing quick info in JSDoc @implements tag (#56884) 2024-01-09 13:14:14 -08:00
Babak K. Shandiz
b2c6a56e38
Fix "Extract to type alias" not available at end of span (#56467)
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-01-05 09:52:26 -08:00
Mateusz Burzyński
02f9ddf55d
Fixed an issue with property type display when contextual type is a union (#56318) 2024-01-04 09:29:15 -08:00
Andrew Branch
0ea57f6ca1
Let AutoImportProvider find non-declaration files in wildcard exports... (#56848) 2024-01-03 15:01:49 -08:00
Oleksandr T
9e0e9d35b9
fix(56475): Hyperlink in quick info generated by @link jumps to import statement for named or default imports, not symbol definition (#56802) 2024-01-02 14:44:09 -08:00