Commit Graph
26896 Commits
Author SHA1 Message Date
Sheetal NandiandAndrew Branch 3516ca96e5 pass program update level to getExternalFiles in tsserver plugins so plugins can make decision about their cache based on that (#56047)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2023-10-09 16:05:11 -07:00
Andrew Branch d0d406747d Add type reference directive for all visited references to ambient modules (#56015) 2023-10-09 11:38:15 -07:00
Mateusz Burzyński 9144836360 Fixed type narrowing in switch statements with parenthesized expressions (#56035) 2023-10-09 11:36:16 -07:00
Jake Bailey 53a3d24b95 Fix fallthrough and default in new switch-true narrowing (#55991) 2023-10-06 16:23:54 -07:00
Mateusz Burzyński 7377f5cb9d Fixed declaration emit of object literals withs divergent accessors (#55442) 2023-10-05 16:40:45 -07:00
Andrew Branch 5001433b10 Allow valid contextual keyword completions even when an auto-import by the same name exists (#56001) 2023-10-05 16:01:59 -07:00
Andrew Branch 21109b71aa Recognize export * as default as a syntactic default export for synthetic default detection (#55985) 2023-10-05 10:33:24 -07:00
Jake Bailey 579e494f01 Preserve partially typed tuple names in more places (#55789) 2023-10-04 13:45:25 -07:00
Mateusz Burzyński 274821eb88 Don't create children prop out of non-semantic JSX children (#55981) 2023-10-04 11:15:43 -07:00
Oleksandr T 6ec5547823 fix(55945): Inlay hints don't work for bigint literals (#55947) 2023-10-04 10:52:01 -07:00
Andrew Branch 248488aa06 Prefer local module specifier over relative node_modules ones in auto-import, even when it reaches into a monorepo package (#55969) 2023-10-03 14:10:06 -07:00
Oleksandr TandDaniel Rosenwasser f2805dc88b fix(55946): Errant case causes crash in switch/case snippet completions (#55949)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2023-10-02 21:46:48 -07:00
Oleksandr T c640c5de0a fix(55937): 'Infer function return type' offered in preceding trivia (#55938) 2023-10-02 16:34:46 -07:00
Mateusz Burzyński d9cd2d0bd0 Fixed a crash in getPropertyNameForPropertyNameNode on NoSubstitutionTemplateLiteral (#55930) 2023-10-02 13:31:38 -07:00
Mateusz Burzyński efc343a438 Remove CheckMode.IsForStringLiteralArgumentCompletions (#55867) 2023-09-29 16:49:30 -07:00
Mateusz Burzyński df5093e7bd Rename isClassFieldAndNotAutoAccessor to isClassInstanceProperty (#55921) 2023-09-29 15:35:06 -07:00
Jake Bailey a48cebf65d Update dprint-typescript to 0.88.1, reformat (#55913) 2023-09-29 14:12:50 -07:00
Maria José Solano 952526c5c9 Show interactive inlay hints in parameter types (#55918) 2023-09-29 13:45:57 -07:00
Mateusz Burzyński 38d09d4ae1 Fixed na issue with evaluator using binding element initializers as const values (#55910) 2023-09-29 13:23:46 -07:00
Mateusz Burzyński 485a2ea0c9 Error on class fields accesses through super in JS files (#55892) 2023-09-29 12:29:39 -07:00
Ron Buckton 9cf44dc51a Support custom 'Symbol.hasInstance' methods when narrowing 'instanceof' (#55052) 2023-09-29 13:37:44 -04:00
Jake Bailey 9208239759 Remove shims.ts and related infra (#55868) 2023-09-28 13:54:47 -07:00
Anders Hejlsberg c052bc7c72 Error on excessive relation complexity (#55851) 2023-09-26 15:57:57 -07:00
Oleksandr T fbe426e7d3 change transpile to compile (#55881) 2023-09-26 15:32:49 -07:00
Andrew Branch 1b70ac32b2 Support resolution-mode overrides in type-only constructs in all moduleResolution modes (#55725) 2023-09-26 14:20:05 -07:00
Oleksandr T 2e9e9a292c feat(53656): Add support for the updated import attributes proposal (#54242) 2023-09-26 13:20:15 -07:00
Sheetal Nandi 4ec809da37 Fix issue with trailing directory separator not present if symlink wasnt detected by program (#55865) 2023-09-25 16:52:27 -07:00
Ron BucktonandMateusz Burzyński d7b4cee7df Include source node inferences in string literal completions (#54121)
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2023-09-25 18:29:29 -04:00
Jake Bailey e44ecbc289 Make unchangedTextChangeRange const (#55836) 2023-09-23 16:17:44 -07:00
Ron Buckton 956a363028 Emit source positions for open/close braces (#47924) 2023-09-23 02:41:44 -04:00
Jack WorksandNathan Shively-Sanders 5f818a9031 fix: class field is not accessible via super (#54056)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-09-22 16:20:12 -07:00
Oleksandr TandNathan Shively-Sanders e743d070ea fix(55404): Remove braces from arrow function" generates invalid code in JavaScript (#55429)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-09-22 16:14:06 -07:00
Nathan Shively-Sanders 982f8be6f2 More did-you-mean errors on classes in plain JS (#49827) 2023-09-22 16:12:21 -07:00
Gerrit BirkelandandNathan Shively-Sanders da8b54d831 Expose Signature.thisParameter (#53628)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-09-22 15:51:41 -07:00
Sheetal Nandi 934216f968 Support using client watch in tsserver using events (#54662) 2023-09-22 14:25:40 -07:00
Jake Bailey 4c965433b6 Partially revert PR 55723 to fix OOM in testing (#55822) 2023-09-22 11:57:01 -07:00
Oleksandr T ec2acc9f8a fix(55823) - Remove Braces From Arrow function fails when using satisfies (#55831) 2023-09-22 11:32:56 -07:00
Sheetal Nandi c5cd2758fd Use forEachResolvedModule in incremental utils (#55833) 2023-09-22 11:29:31 -07:00
Sheetal Nandi dcb0fa7f44 Incremental testing for program structure and resolutions and fixes (#55814) 2023-09-22 10:53:19 -07:00
Sheetal Nandi 83f02a4b7e Picking resolutions of module for sourceFile as method (#55818) 2023-09-22 10:24:37 -07:00
Jake Bailey a3c5d5d37e Make JSDoc skipping public, plus more configurable (#55739) 2023-09-21 15:31:09 -07:00
Mateusz Burzyński 56accb08a1 Fixed string completions that require escaping (#55118) 2023-09-21 15:05:34 -07:00
Andrew Branch 5b7b011518 Fix export path patterns with .d.ts target extensions in AutoImportProvider (#55815) 2023-09-21 15:03:11 -07:00
Nathan Shively-Sanders cf084b6376 Fix CJS export of typedef and class w/latebound names (#55053) 2023-09-21 12:25:28 -07:00
Jake Bailey 45a05f3475 Support converting string literals to templates outside of concatenation (#54647) 2023-09-21 11:16:26 -07:00
Sheetal Nandi ec1414f627 Source files not affected by all module resolution options (#55790) 2023-09-20 16:45:32 -07:00
Nathan Shively-Sanders 190d70962a Update DOM before 5.3 beta (#55798) 2023-09-20 11:24:51 -07:00
Maria José Solano 0b82e1a03f Interactive type inlay hints (#55141) 2023-09-19 22:50:11 -07:00
Jake BaileyandSheetal Nandi 1a68590c9c Mark more options as affecting errors/resolution (#53403)
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
2023-09-19 15:11:21 -07:00
Mateusz Burzyński 6e01b06616 Use const context in intersections containing const type variables (#55779) 2023-09-19 14:26:14 -07:00