4741 Commits

Author SHA1 Message Date
Jake Bailey
533acb5ad9
Consider enclosing declaration when serializing inferred return types (#59170) 2024-07-09 14:35:27 -07:00
Mateusz Burzyński
8d84a68776
Fixed crash when finding all references when JSDocImportTags are involved (#59207) 2024-07-09 13:59:54 -07:00
navya9singh
ded36b21ac
pasteEdits returns no edit when there are no imports needed (#59189) 2024-07-09 10:27:41 -07:00
Mateusz Burzyński
3163fe7e38
Fixed crash when cross-file reusing nodes for class member snippet completions (#58216) 2024-07-04 10:38:25 -07:00
navya9singh
7bd7dfc007
Paste without imports (#59093) 2024-07-01 15:00:29 -07:00
Oleksandr T
e8fca15b14
fix(58801): "Move to file" on global code unnecessarily imports/exports, generates invalid code (#58811) 2024-06-18 17:24:22 -07:00
Isabel Duan
f999951015
fix55816: exclude files with re-exports if excluded by preferences.autoImportFileExcludePatterns (#58537)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2024-06-18 14:03:18 -07:00
Mateusz Burzyński
25d34138e3
Allow signature help argument count to be equal to argument index (#58203) 2024-06-14 14:50:36 -07:00
Andrew Branch
56289733a4
Revert #57896 (#58857) 2024-06-13 16:40:23 -07:00
Gabriela Araujo Britto
4857546865
Region-based semantic diagnostics (#57842) 2024-06-13 16:21:01 -07:00
Andrew Branch
1948e92e3a
[DO NOT MERGE UNTIL 5.6] Fix re-exported defaults in ExportInfoMap (#58837) 2024-06-12 15:43:20 -07:00
Evan Wallace
8d62e2f175
Implement "Arbitrary Module Namespace Identifiers" (#58640)
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2024-06-04 13:40:50 -07:00
Isabel Duan
506f3e26c3
fix58438: do not delete comments/code following unterminated string completion (#58742)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2024-06-03 21:10:32 -07:00
Wesley Wigham
d4976c08b1
Clone node to remove location even when it has been modified if needed (#58706) 2024-05-31 15:16:16 -07:00
Titian Cernicova-Dragomir
389b579a83
Do not expand type references in keyof and index access (#58715) 2024-05-31 10:55:06 -07:00
navya9singh
59e6620260
Fixing self import (#58718) 2024-05-30 15:02:43 -07:00
navya9singh
1659a9d615
Handling statements from a known source file (#58679) 2024-05-29 13:46:37 -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
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
Titian Cernicova-Dragomir
2b4e7e34e7
Improve reuse of nodes in signatures with type mapping (#58546) 2024-05-23 12:11:29 -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
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
Oleksandr T
017c1e0e64
fix(55765): Implement Interface Code Action is not available under certain circumstances (#55767) 2024-05-10 14:46:51 -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
Andrew Branch
bc14459f3b
Refactor default export info name gathering (#58460) 2024-05-08 09:33:17 -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
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