Commit Graph

1936 Commits

Author SHA1 Message Date
Ron Buckton
2b588610ec PR feedback 2024-04-05 20:18:46 -04:00
Ron Buckton
9f19e4c11c Merge branch 'main' into no-objectAllocator 2024-04-05 10:32:03 -04:00
Jake Bailey
3456c6e21c Monomorphize allocators for tsserver/public API, just like core compiler (#58045) 2024-04-04 17:03:03 -07:00
Jake Bailey
772c29072e Don't clear _children on NodeArrays (#58069) 2024-04-04 07:50:10 -07:00
Oleksandr T
2de69b09c5 feat(41825): JSDoc equivalent of import * (#57207) 2024-03-26 13:52:43 -07:00
Jake Bailey
7d504551ae Do not perserve references in declaration emit, unless preserve=true (#57681) 2024-03-20 15:06:02 -07:00
Mateusz Burzyński
af81456247 Fixed referencing properties that are reserved keywords in @link (#57739) 2024-03-20 09:01:49 -07:00
Jake Bailey
76f8de0a0d Require exactly 'true' for truthy reference directive prop (#57782) 2024-03-15 14:38:37 -07:00
Abraham Guo
0b044f729f When attaching JSDoc diagnostics, make sure to only include diagnostics that actually belong with the JSDoc (#57271) 2024-02-13 12:13:43 -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
a36d04fc63 feat(56634): Support for "const modifier on type parameters" with JSDoc (#56649) 2023-12-15 09:21:10 -08:00
Nathan Shively-Sanders
3d112515cb Improve JSDocFunctionType readability (#56694) 2023-12-06 15:31:59 -08:00
Oleksandr T
3500c92a78 feat(56600): JSDoc @callback doesn't support this parameters via @this (#56610) 2023-12-01 15:48:36 -08:00
Oleksandr T
4eae150282 fix(50303): Using @linkcode in combination with private methods causes TS1003 in JavaScript files. (#56338) 2023-11-28 15:07:31 -08:00
Oleksandr T
921259ee02 fix(56567): import type from = require('foo') fails to parse (#56568) 2023-11-27 15:22:27 -08:00
Sheetal Nandi
13c9b16b2a When reparsing top level await dont set original node for the new source file (#56439) 2023-11-21 13:35:49 -08:00
Oleksandr T
628bf0ec85 fix(56376): import type from from "foo" (#56385) 2023-11-13 14:43:24 -08:00
Mateusz Burzyński
3e12250839 Allow of in await using declarations in for-of loops (#55558) 2023-10-31 15:06:36 -04:00
Oleksandr T
2e9e9a292c feat(53656): Add support for the updated import attributes proposal (#54242) 2023-09-26 13:20:15 -07:00
Jake Bailey
a3c5d5d37e Make JSDoc skipping public, plus more configurable (#55739) 2023-09-21 15:31:09 -07:00
Jake Bailey
c0b39c6967 Skip parsing JSDoc when not needed (#52921)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
2023-09-13 15:58:20 -07:00
Mateusz Burzyński
fe70ec984e Parse reserved identifiers as dotted names of ambient modules (#55282) 2023-08-28 14:48:20 -07:00
Jake Bailey
b5b6048bb3 Clean up helpers which are always present in ES2020 (#55515) 2023-08-28 12:26:22 -07:00
Jake Bailey
4d7753ae3e Ensure parsing context is restored in jsdoc parser (#55537) 2023-08-28 09:52:54 -07:00
Sampo Kivistö
ec2bd4e252 perf: replace String and Array indexOf method calls with includes method call (#55482) 2023-08-25 11:27:55 -07:00
Mateusz Burzyński
e0a324b050 Don't parse DotDotDotToken in JSX attribute values (#55284) 2023-08-24 10:17:33 -07:00
Nils
3790c921dd Fix typo isInvalid -> isValid (#55414) 2023-08-17 10:07:13 -07:00
Jake Bailey
5e8c261b6a dprint the codebase (#54820) 2023-08-16 14:26:38 -07:00
Jake Bailey
f37d2ad669 Prevent detached diagnostics from running off the end of the file (#55381) 2023-08-15 08:29:36 -07:00
Jack Works
cd391b066b chore: disallows unicode escape sequence in JSX (#48609)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-08-09 15:59:39 -07:00
Kyℓe Hensel
a86be554ab allow a colon directly after @ts-check/nocheck (#54893) 2023-07-21 09:16:31 -07:00
Mateusz Burzyński
2623fe7049 Fixed false positive syntax errors with in inside for (#54801)
Co-authored-by: Evan Wallace <evan.exe@gmail.com>
2023-07-20 12:13:44 -07:00
strager
e607c8ed81 fix(54760): Report error for 'declare type' followed by newline (#54761) 2023-07-20 12:13:08 -07:00
Jake Bailey
8c7385f8b5 Eliminate addJSDocComment in favor of consistently using withJSDoc (#54802) 2023-06-30 17:05:07 -07:00
Matej 'Yin' Sadovsky
34f6e107a3 Enable parsing of nested parameters for @callback JSDoc tag. (#54681)
Co-authored-by: Matej Sadovsky <matej.sadov@gmail.com>
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-06-29 10:36:38 -07:00
Jack Works
ed5008da68 Improve error for unclosed imports and exports (#54634)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-06-29 10:22:05 -07:00
Ron Buckton
f9cf8216c6 Support using and await using declarations (#54505) 2023-06-22 17:02:56 -04:00
Wesley Wigham
02bb3108ad JSX namespace names should not be considered expressions (#54104) 2023-05-09 10:45:58 -07:00
Jake Bailey
c333e14578 Ensure that JSDoc parsing happens within a ParsingContext (#52710) 2023-05-04 09:55:34 -07:00
Nathan Shively-Sanders
840a0bfc08 Error on template tag inside callback/overload/typedef tag (#54118) 2023-05-04 09:51:43 -07:00
Nathan Shively-Sanders
063276aac9 Bind JSDoc on SemicolonClassElement (#54044) 2023-04-27 11:47:16 -07:00
Oleksandr T
c74efad46e fix(53645): JSDoc extends doesn't work with multiple lines (#53705) 2023-04-20 16:06:38 -07:00
Oleksandr T
0c5be02dcc feat(7411): JSX namespaced attribute syntax not supported (#47356) 2023-04-14 16:58:49 -07:00
Jake Bailey
f243b987af Fix crash in parseJsxChild found by fuzzing (#53674) 2023-04-05 13:47:02 -07:00
Jake Bailey
bebb6d0086 Disable JSX recovery hack when in unary expression context (#53666) 2023-04-05 13:04:37 -07:00
形素叢集・ぐらふぃーむ
c2dc2fd9b9 fix(396): (Dis)allow Octal and Bad Escape Sequences in String and (Tagged) Template Literals (#51837) 2023-03-24 16:15:50 -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
Jake Bailey
79a414bb5e Consistently use '...args' for diagnostic args (#53193) 2023-03-20 12:53:09 -07:00
Sheetal Nandi
7a8238d88d Refactor config file parsing such that json and jsonSourceFile api use same paths (#53331) 2023-03-20 12:00:08 -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