25836 Commits

Author SHA1 Message Date
Anders Hejlsberg
bdfd342aaa Manually re-implement changes in checker.ts 2023-10-18 07:04:18 -07:00
Anders Hejlsberg
f33f09207a Merge branch 'main' into fix48070
# Conflicts:
#	src/compiler/checker.ts
2023-10-18 06:26:20 -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 Buckton
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 Works
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 T
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 Birkeland
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 Bailey
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
Oleksandr T
79736eff89
fix(55258): JSDoc render with @param Object properties (#55264) 2023-09-19 14:00:32 -07:00
Mateusz Burzyński
1f88596bb1
Narrow by comparisons to boolean literals (#53714) 2023-09-19 13:38:31 -07:00
Mateusz Burzyński
0464e91c8b
Fixed an issue with type-only import promoting (#55365) 2023-09-18 12:38:00 -07:00
Mateusz Burzyński
70b7de11fb
Narrow by clause expressions in switches with true condition (#53681) 2023-09-18 12:07:17 -07:00
Jake Bailey
9cbcf010ce
Ensure generated property names for methods named "new" are quoted (#55750)
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2023-09-15 10:25:10 -07:00
Babak K. Shandiz
b3770e7852
🐛 Fix not emitting comments between sibling fields of object literals (#50097)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-09-14 21:29:34 -07:00
Liviu-Ionut Gheorghe
e654f9691a
Allow unescaped paragraph and line separators in string literal (#53869)
Co-authored-by: Liviu Gheorghe <liviu.gheorghe@ivfuture.uk>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-09-14 20:59:25 -07:00
Mateusz Burzyński
e9af22ace9
Consistently return errorType for super expressions in classes that extend null (#55506) 2023-09-14 19:31:50 -07:00
Anders Hejlsberg
58650d97c5
Fix narrowing of destructured tuples with different arities (#55744) 2023-09-14 13:06:48 -07:00
Sheetal Nandi
fc418a2e61
Special case "/workspaces" for watching root so that codespaces work correctly (#55738) 2023-09-14 11:34:19 -07:00
Mateusz Burzyński
e6321d77c7
Fixed element access expression writes for divergent write types (#55585) 2023-09-13 16:14:07 -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