Fix implied formats, file watching, new source file creating during edits - #50098
Conversation
…report errors in watch mode
…one as part of create source file
…mplied format Also stop creating options if we already have them
2d1fd89 to
d5de787
Compare
…e. Handle implied node format in document registry Fixes #50086
d5de787 to
0dd2e7d
Compare
…e to invalidate package json entries instead of clearing them out everytime program is created
|
TypeScript Bot (@typescript-bot) pack this |
|
Heya Sheetal Nandi (@sheetalkamat), I've started to run the tarball bundle task on this PR at 73f56b2. You can monitor the build here. |
|
Hey Sheetal Nandi (@sheetalkamat), I've packed this into an installable tgz. You can install it for testing by referencing it in your and then running There is also a playground for this build and an npm module you can use via |
| } | ||
| if (isExternalOrCommonJsModule(file)) { | ||
| switch (file.impliedNodeFormat) { | ||
| case ModuleKind.ESNext: |
There was a problem hiding this comment.
Should both of these have a branch for when the file extension sets the format, for .cts, .cjs, .mjs and .mts files?
There was a problem hiding this comment.
Daniel Rosenwasser (@DanielRosenwasser) and myself discussed offline before this change and decided try this with only spitting this out when package.json determines the context.
This change includes:
--explainFilesFixes #50086