Commit Graph

6745 Commits

Author SHA1 Message Date
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
Gabriela Araujo Britto
ebcb09d71a Improve diagnostics deduplication (#58220) 2024-04-26 15:44:09 -07:00
Wesley Wigham
f76727d17a Add noCheck API option (#57934) 2024-04-26 13:21:15 -07:00
navya9singh
ce4862c267 Updating move to file (#58257) 2024-04-25 15:32:18 -07:00
Wesley Wigham
0b71b81d7d Add transpileDeclaration API method (#58261) 2024-04-23 17:09:47 -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
形素叢集・ぐらふぃーむ
42f238bfbb Provide Syntax Checking for Regular Expressions (#55600)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-04-19 16:51:08 -07:00
Daniel Rosenwasser
e8f22253ba Don't cache child lists for tokens (#58233) 2024-04-19 14:49:31 -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
Jake Bailey
84265652d6 Rename isParameterDeclaration to isPartOfParameterDeclaration (#58251) 2024-04-19 09:34:28 -07:00
Sheetal Nandi
5b3060d5c6 [Experiment] Some tweaking to handle project references for auto import (#55955)
Co-authored-by: Andrew Branch <andrew@wheream.io>
2024-04-18 11:41:48 -07:00
Jake Bailey
17e420daf6 Use built-in no-restricted-syntax to ban null instead of plugin, ban null type too (#58095) 2024-04-18 09:06:32 -07:00
Jake Bailey
967d6189a6 Add lint error for declarations marked internal, but unexported (#58229) 2024-04-17 13:52:31 -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
Andrew Branch
585a9af830 Respect package.json "type" and module-format-specific file extensions in more module modes (#57896) 2024-04-12 12:47:09 -07:00
Andrew Branch
5c55ce1ba2 Expand auto-import API to work on non-existent files and symbols (#58093) 2024-04-09 11:24:15 -07:00
Jake Bailey
3456c6e21c Monomorphize allocators for tsserver/public API, just like core compiler (#58045) 2024-04-04 17:03:03 -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
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
Jake Bailey
4cedfe40b0 Update dprint, don't force multiline imports for imports of single name (#58038) 2024-04-02 10:58:16 -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
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
Jake Bailey
e72605925d Update deps and fix new lints (#57870) 2024-03-21 09:24:23 -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
navya9singh
c295531bfa Adopt code action ranges for refactorings (#57608) 2024-03-18 14:34:44 -07:00
Isabel Duan
0a671aa393 Change detection to detection by diff in organizeImports (#57267) 2024-03-15 16:07:39 -07:00
Ron Buckton
5e8f900afa Report grammar errors for invalid decorator grammar (#57749) 2024-03-13 14:50:04 -04:00
Oleksandr T
c1f0f7cb58 feat(57240): Unimplemented abstract methods result in verbose, repetitive message (#57291) 2024-03-12 15:56:09 -07: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
Sheetal Nandi
353ccb7688 Ensure correct script kind and text when using cached sourceFile from scriptInfo (#57641) 2024-03-04 15:56:35 -08:00
Andrew Branch
6d458e81cd Deduplicate protocol.ts content (#57361)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-03-04 11:41:49 -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
Jake Bailey
4df884c773 Ensure harness doesn't force or eagerly computes target, stop using raw target elsewhere (#57526) 2024-02-26 11:32:18 -08:00
Oleksandr T
65812bf3ec fix(57348): Auto-complete on satisfies auto-imports satisfies (#57364) 2024-02-26 09:29:45 -08:00
Sheetal Nandi
2fc6e2e80c Test document position mapper (#57426) 2024-02-22 11:03:40 -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
Oleksandr T
c18c1c20dc fix(57302): Cannot move symbols from tsx to ts files (#57305) 2024-02-16 10:36:23 -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