-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Visual Studio Community 2013, Typescrip 1.4: When saving file, const enum doesn't resolve to constant when enum is defined in other file. #1742
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
Comments
this looks like a duplicate of #1599 |
looking at it again, this does not look the same. issue #1599, would cause this scenario: |
I got this problem at work. I installed the newest Visual Studio Community 2013 and Typescript 1.4. I have the same problem at home. Here I recorder video that demonstrate it (a little too long, sorry). |
yup that is different from #1599. looking more into it. |
I have same problem. I see it is fixed already. Do you know when this will be available publicly and with what version. It is very important bug. |
@vytautas-pranskunas- it should be in for 1.5. Also, 1.5-alpha is out now on npm if you're interested. |
Should i replace only typescriptServices.js? |
btw: i have replaced typescriptServices.js file and now on save it does not generate any file and console sys: "Input file contained syntax errors. Output generation skipped." I do not have any errors and on build everything works fine. |
Hi,
I installed Visual Studio Community 2013 and Typescript 1.4. When I changed all my enums to const enum (btw, very nice feature, thanks!) I noticed that compile-on-save feature doesn't handle this feature well.
When I use those const enums in other file than the one it was defined in then when I save file, they are not resolved to constant numbers.
For example I have file firstFile.ts:
and when I save file (by pressing Ctrl+S) i get file firstFile.js:
but When i have secondFile.ts file:
and save file I get secondFile.js:
only when I build project in Visual Studio I get proper secondFile.js file:
The text was updated successfully, but these errors were encountered: