Open arturl opened 3 months ago
Curious what you would expect in this scenario, I think we have a pretty wide array of options:
The least surprising behavior would be to switch the language selector to the user-specified language. Internally, I would add a sanity check to detect language mismatch between the generated language and the file type. As in, if we're writing C# code into a .ts file, fail hard and report an error. (Not sure if this is recoverable, if we know the user intent at that point)
What happened?
The tool generates a C# program while still saying "TypeScript":
Now click the "Deploy with Pulumi" button:
Go through the project creation steps. The project is generated as TypeScript with C# code:
Example
See above
Output of
pulumi about
not relevant
Additional context
While this is a user error (I should have switched the language), the experience is a trap. I explicitly asked for what I want (a C# app) and expect to get it.
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).