I am using the typescript. I can create simple typescript samples and run. When i was creating complex type of codes, visual studio becomes not responding.
Can any of you know the reason for this issue? The Performance tab on TaskManager takes approx 35%. Can any of you aware of this issue?
Code i was implemented looks like below,
module myModule{
export class myClass implements myInterface{
// code to PartialUpdate, otalUpdate function declarations and
// extra properties and methods
}
export interface myInterface{
PartialUpdate:void;
TotalUpdate:void;
}
}
Note: Visual Studio becomes not responding while creating code itself, before starting build.
I have used the following extensions:
And my system config is
Visual Studio Code includes TypeScript language support but does not include the TypeScript compiler, tsc . You will need to install the TypeScript compiler either globally or in your workspace to transpile TypeScript source code to JavaScript ( tsc HelloWorld. ts ). You can test your install by checking the version.
TypeScript is a popular choice for programmers accustomed to other languages with static typing, such as C# and Java. TypeScript's type system offers many of the same benefits, such as better code completion, earlier detection of errors, and clearer communication between parts of your program.
Are you using the latest version of Web Essentials 2012? (2.0 at time of writing) And of TypeScript (0.8.1.1)? I had the same issue with an earlier combination of WE and TS 0.8.1, but it was fixed in a recent release.
WebEssentials can be configured either to compile on save, and/or on build. Go Tools > Options > Web Essentials > TypeScript
in VS2012 and try toggling these switches and see if this helps.
Disable Web Essentials, go to the Tools > Options
as described above, and try turning off Compile TypeScript on save
. This way you can have all the benefits of WE without the performance hit
Update
WE 2012 has just ticked over to the next version: 2.1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With