Commit Graph

6484 Commits

Author SHA1 Message Date
Vitaly
151364902b Don't add redundant await in completions (#52677) 2023-02-16 08:44:14 -08:00
Oleksandr T
733d7aed97 fix(52749): Assertion failure in derived class completion (#52787) 2023-02-15 14:33:39 -08:00
Oleksandr T
de2ab4ab8f fix(52761): overload tag is not supported in completions (#52762) 2023-02-14 14:25:00 -08:00
Andrew Branch
48e812aa07 Prefer top-level type-only imports in verbatimModuleSyntax (#52747) 2023-02-14 10:23:08 -08:00
Andrew Branch
99927cad95 Replace all instances of compilerOptions.isolatedModules with function considering verbatimModuleSyntax (#52746) 2023-02-13 16:03:02 -08:00
Andrew Branch
aa658257c9 Fix completion details auto-imports crashes (#52686) 2023-02-10 15:26:09 -08:00
Gabriela Araujo Britto
7612a3afc7 Fix crash on addImportFromExportedSymbol with default exported symbol (#52694) 2023-02-09 16:31:58 -08:00
Daniel Rosenwasser
7fb6c99c19 Don't create an unnecessary text span in isInStringOrRegularExpressionOrTemplateLiteral (#52697) 2023-02-09 15:37:22 -08:00
Oleksandr T
1c822c42a4 feat(52097): "Add missing properties" quick fix for calculated string values ... (#52135) 2023-02-08 17:25:39 -08:00
Andrew Branch
a0afacd262 Avoid caching duplicate export info from AutoImportProvider (#52683) 2023-02-08 12:36:12 -08:00
Mateusz Burzyński
6b43f82774 Filter out existing cases from string completions (#52633) 2023-02-06 13:16:29 -08:00
Andrew Branch
7d8f6eec46 Add cache to auto-import package.json filter (#52422) 2023-02-06 11:33:04 -08:00
pyBlob
00eb22030f Fix completion of partial identifier inside a JsxExpression (#52572)
Co-authored-by: Karl Kraus <karl.kraus@avantagarde-talents.de>
Co-authored-by: Gabriela Araujo Britto <gabrielaa@microsoft.com>
2023-02-03 16:54:56 -08:00
Vitaly
c06711da1b Handle literal string union complete pattern for JSX attribute snippets (<input type />) (#52562)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2023-02-03 15:40:00 -08:00
Jake Bailey
2a8436c529 Use eslint-plugin-simple-import-sort (#52090) 2023-02-02 14:36:21 -08:00
Oleksandr T
0f41b7a390 fix(52418): "Convert to named function" breaks on concise return of async function (#52434) 2023-02-02 13:03:52 -08:00
Vitaly
87b6fcd895 don't use Extension[] cast (#52556) 2023-02-02 12:59:37 -08:00
Oleksandr T
e7dfe82cc5 fix(52543): Module specifier should be escaped for snippet in import statement completion (#52574) 2023-02-02 11:27:10 -08:00
Vitaly
d0938c85ec imports: display completions to files with extensions from ambient modules (#52406) 2023-02-01 16:43:07 -08:00
Andrew Branch
60edd0685f Reject auto-imports of relative paths through node_modules in bundler resolution (#52536) 2023-01-31 13:02:59 -08:00
Jake Bailey
0141d1d5f2 Reuse Printers with common options (#52382) 2023-01-25 11:59:02 -08:00
Oleksandr T
43ecac801b fix(52386): JSDoc code fixes for arrow-function initialized const duplicates comment (#52390) 2023-01-24 23:42:57 -08:00
Oleksandr T
9ee093c094 feat(52366): @prop is not provided as a valid JSDoc tag in autocompletion (#52384) 2023-01-24 02:00:23 -08:00
Jesper van den Ende
273a67fba3 Add linkcode and linkplain to jsdoc tags (#52176) 2023-01-24 01:59:05 -08:00
Jake Bailey
10941888dc Plumb formatting to getDocCommentTemplateAtPosition (#52349)
Fixes https://github.com/microsoft/TypeScript/issues/52348
2023-01-23 15:31:58 -08:00
Ryan Cavanaugh
ff92ab0ac9 Change default newLine, forceConsistentCasingInFileNames (#52298)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
2023-01-20 17:20:26 -08:00
Sheetal Nandi
d76f3612c1 More removals of long deprecated APIs (#52343) 2023-01-20 15:25:06 -08:00
Andrew Branch
f576398194 Support export type * (#52217) 2023-01-20 14:24:48 -08:00
Andrew Branch
19d2d9ec01 Don’t let unsorted import groups eagerly derail sort detection (#52332) 2023-01-20 11:10:41 -08:00
YuqiangZhang
1e99934b29 fix(52270): update optionalReplacementSpan in continuePreviousIncompleteResponse (#52287)
Co-authored-by: zhangyuqiang <zhangyuqiang@bytedance.com>
2023-01-20 09:15:18 -08:00
Andrew Branch
cfe1842adf Add verbatimModuleSyntax, deprecate importsNotUsedAsValues and preserveValueImports (#52203) 2023-01-19 16:56:30 -08:00
Oleksandr T
6f338b9936 fix(52274): Suggestion code action adds another JSDoc (#52276) 2023-01-19 16:41:26 -08:00
Ron Buckton
5b18979697 Implement the Stage 3 Decorators Proposal (#50820) 2023-01-19 17:54:12 -05:00
Ron Buckton
20182cf848 Organize imports collation (#52115) 2023-01-19 17:53:51 -05:00
Jake Bailey
18794c7945 Enable noImplicitOverride (#52290) 2023-01-18 12:00:10 -08:00
Jake Bailey
22b362ceac Enable strictFunctionTypes (#49929) 2023-01-17 17:20:51 -08:00
Oleksandr T
8094007a1d fix(52277): switch/case completions fail when has a negative literal type (#52278) 2023-01-17 14:10:29 -08:00
Oleksandr T
9c9d4b029d feat(51086): satisfies support in JSDoc (#51753) 2023-01-17 10:22:22 -08:00
Oleksandr T
577cc1bd8a fix(52233): Ambient modules declared with patterns are offered in path completions (#52246) 2023-01-17 09:41:16 -08:00
Gabriela Araujo Britto
67a3846fbf Fix replacementSpan for class member snippet completion entries (#52231) 2023-01-16 10:32:24 -08:00
Oleksandr T
86ccd20e53 fix(52212): No member completions, and irrelevant value completions, when class property initializer has no semicolon (#52213) 2023-01-13 14:23:36 -08:00
Ron Buckton
9cdba994ac Remove some properties from Identifier (#52170) 2023-01-12 17:20:12 -05:00
Oleksandr T
6860373c1a fix(52177): Wrong space in type assertions when using array (#52184) 2023-01-11 14:59:22 -08:00
Wesley Wigham
89e928e8b4 Add --allowArbitraryExtensions, a flag for allowing arbitrary extensions on import paths (#51435) 2023-01-09 17:12:42 -08:00
Oleksandr T
394a777fdd fix(51963): Invalid property read for find-all-references when exporting non-existent binding (#52006) 2023-01-09 15:29:33 -08:00
Vitaly
4b69e1342e Basic JSX attribute snippet fixes (#51855)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2023-01-09 09:13:27 -08:00
Jake Bailey
f1ff0de943 Use native generators/iterables, remove helper cruft (#51921) 2023-01-06 14:40:56 -08:00
Oleksandr T
c57fea2a0d fix(52050): The space before satisfies after an array expression is removed when auto-formatting the statements (#52053) 2023-01-05 13:30:11 -08:00
Oleksandr T
44152bc22e fix(29648): Error message related to JSDoc for non-JSDoc syntax error (#50793)
* fix(29648): improve diagnostics of non-JSDoc syntax errors

* fix lint errors

* update tests

* change diagnostic type suggestion. fix QF for jsdoc nullable type

* move error handling from the parser to the checker

* change diagnostic message. remove speculative parsing

* update baseline
2022-12-29 16:50:57 -08:00
Andreas Buob
8b6f8730c1 fix(51223): Go-to-definition for yield and await keyword; jump to respective function definition (#51838) 2022-12-20 13:29:59 -08:00