
Microsoft has now enabled TypeScript 7 Beta within the TypeScript SDK by default in Visual Studio 18.6 Insiders 3. This update will impact any project that uses the built-in SDK such as TypeScript projects, ASP.NET Core projects with npm packages, and any TypeScript or JavaScript files you’re editing.
For any project that doesn’t have a specific TypeScript version installed, Visual Studio will use the new native compiler by default.
Microsoft notes that TypeScript 7 is a native port of the TypeScript compiler and tools, marking a big change that gives you native execution speed and shared-memory parallelism to the TypeScript compiler and language service. Where users have large code bases, the compile time improvements can be up to 10x and it uses significantly less memory.
The TypeScript language service is also significantly better too with project load times decreasing by 8x. There are also general speed improvements across the board including:
- IntelliSense and completions. Code completions and parameter info should appear faster, especially in large projects where you may have previously noticed a delay.
- Find All References. Searching for references across your solution is significantly faster.
- Go to Definition. Navigating to definitions is more responsive.
- Error diagnostics. Squiggles and error lists update more quickly as you type.
- Project load times. Opening TypeScript and JavaScript projects in Visual Studio should be noticeably faster, with load times decreasing by roughly 8x.
Microsoft previously announced the TypeScript 7.0 Beta earlier this month, but this announcement today marks the availability of it in the Visual Studio 18.6 Insiders 3 build. For more information on the new TypeScript, check out Neowin’s previous coverage. You can also refer to Microsoft's announcement for the commands to switch between TypeScript versions and learn about the known issues in TypeScript 7.0 Beta.
0 Comments
Load the comments and join the conversation!
Read the comments, ask the editors questions, show respect and join the conversation.