Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Emit tsx files correctly in getEmitOutput calls#4371

Merged
mhegazy merged 1 commit into
mastermicrosoft/TypeScript:masterfrom
emitOutputForTsxmicrosoft/TypeScript:emitOutputForTsxCopy head branch name to clipboard
Aug 20, 2015
Merged

Emit tsx files correctly in getEmitOutput calls#4371
mhegazy merged 1 commit into
mastermicrosoft/TypeScript:masterfrom
emitOutputForTsxmicrosoft/TypeScript:emitOutputForTsxCopy head branch name to clipboard

Conversation

@mhegazy

@mhegazy mhegazy commented Aug 20, 2015

Copy link
Copy Markdown
Contributor

When using --jsx preserve we were setting the extension of any file in Compile-on-Save scenarios to .jsx f there is at least one file that has .tsx extension. this does not match the command line compilation, which decides the emitted file extension on a file-per-file basis. fixing and adding a test.

@DanielRosenwasser DanielRosenwasser changed the title Emit tsx files correctelly in getEmitOutput calls Emit tsx files correctly in getEmitOutput calls Aug 20, 2015
Comment thread src/harness/fourslash.ts

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks so easy to screw up (and I have, and I thought I removed these (or something like these lists) for that reason). Why not split metadataOptionNames into two maps, merge them into metadataOptionNames at runtime, and create these lists out of the maps?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i thought you will remove this as part of the test update.. i can remove them all, but will do that in a different change.. actually they are repeated twice, once in harness and once in fourslash, and each has a map and a switch, and each has a slightly different implantation for comparing and setting the values.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's okay, I'll take care of it tomorrow.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix submitted in #4383

@mhegazy

mhegazy commented Aug 20, 2015

Copy link
Copy Markdown
Contributor Author

@DanielRosenwasser any other comments for this change?

@DanielRosenwasser

Copy link
Copy Markdown
Member

Just this one and then I think we'll be good.

mhegazy added a commit that referenced this pull request Aug 20, 2015
Emit tsx files correctly in getEmitOutput calls
@mhegazy mhegazy merged commit 2a751ab into master Aug 20, 2015
@mhegazy mhegazy deleted the emitOutputForTsx branch August 20, 2015 22:12
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.