-
Notifications
You must be signed in to change notification settings - Fork 945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visual Studio tooling #3
Comments
JSX support is currently top of the User Voice for Web Essentials -- IMO, it would be the better option to add it to Web Essentials than having a separate extension. http://webessentials.uservoice.com/forums/140520-general/suggestions/4935998-add-reactjs-jsx-support |
@paulirwin I definitely agree, whether Microsoft actually add it or not is another thing altogether :) I really hope they do though. |
They'll need to add general syntax transform support because we will continue to evolve the syntax of JSX. We'll provide sourcemaps, but we can't guarantee that the syntax will be pinned to a particular form. |
@jordwalke Who says Web Essentials would have to transform anything? Just add a JSX template file, syntax highlighting, tag completion, etc. would be fine. We can still leave React.net to do the transformation to JS. |
Debugging will be difficult to integrate unless something like Web Sent from my mobile.
|
And autocomplete? How does it know the semantics of JSX? Since it doesn't, it has to first transform the source, and after it does that, it won't know where your respective cursor location is in the transformed output, and therefore how to complete. Is this correct? |
If VS Web Essentials took a similar approach to the Sublime addon I think it would meet most people's needs. AFAIK Sublime JSX doesn't transform the JSX at all, just provides syntax highlighting and the usual Sublimey autocomplete based on similar words used in the open documents. |
The Visual Studio JS editing experience is amazing and no sublime plugin comes close. The goal should be to match the JS editing experience in Visual Studio, but with JSX syntax supported. That means semantic completion etc. |
The Sublime approach is mostly terrible though. Picking up random words with no context is not Intellisense. This is a huge feature that differentiates IDEs from simple text editors. |
I'd be super hapyp just to get some syntax highlighting. Have to switch to sublime in order to write .jsx files currently. |
Try voting for the feature request at http://webessentials.uservoice.com/forums/140520-general/suggestions/4935998-add-reactjs-jsx-support - Currently it's very hard for a third-party extension to easily implement JSX syntax highlighting as the current JavaScript support is not designed to be pluggable :( I started prototyping doing it with ReSharper. While that's an easier approach at the moment, it also takes a lot of work to actually get it working. |
This won't be possible until Microsoft add support for extending their JavaScript editor. Closing this out. |
Some sort of Visual Studio tooling for JSX where the standard JavaScript navigation and refactoring tools still work. This is a long time ambitious task. I have no experience with creating tooling for Visual Studio. Assistance would be fantastic!
Alternatively, some ReSharper tooling could be made instead, if it's easier. This would give syntax highlighting and ReSharper's tooling at least. See ForTea, which is a plugin for ReSharper to implement support for T4 templates. T4 is very similar in that it's a new syntax with existing syntax embedded in it. T4 is a custom syntax with embedded C# code, JSX could be seen as a custom syntax with embedded JavaScript.
The text was updated successfully, but these errors were encountered: