Skip to content
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 integration #3

Closed
andrewdavey opened this issue Feb 17, 2015 · 5 comments
Closed

Visual Studio integration #3

andrewdavey opened this issue Feb 17, 2015 · 5 comments

Comments

@andrewdavey
Copy link

I'm very excited to see this fork. I've been waiting to use React in TypeScript for ages 😄 So thank you for making it happen!

Is Visual Studio integration on the roadmap? Whilst I'm happy to use the command line compiler to build, editing TS files containing JSX in VS results in red squiggles. I can live without full blown highlighting of JSX, as long as it's not showing as errors.

Is there any way to hack/replace the typescript compiler used by VS and use jsx-typescript instead?

@fdecampredon
Copy link
Owner

@andrewdavey I tried to respect the language service api the most I could, also I don't update from master since the current version seems to be the last one supporting visual studio. (the current visual studio version)

I know there is a way to use a custom compiler in visual studio did you try that ?

@andrewdavey
Copy link
Author

It looks like maybe I can replace the installed typescript files used by VS: microsoft#1110 (comment)

I'll have to have a hack and report back.

@fdecampredon
Copy link
Owner

see also https://github.com/Microsoft/TypeScript/wiki/Dev-Mode-in-Visual-Studio

jsx-typescript works with my own editor that use the same api than visual studio, if there is a bug in vs let me know ;)

@andrewdavey
Copy link
Author

Thanks for that link. Setting the registry key
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0\TypeScriptLanguageService to c:\path\to\jsx-typescript\bin\typescriptServices.js works.

@fdecampredon
Copy link
Owner

cool to hear that except for formatting everything should be fine feel free to submit bug if they are

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants