VS2017 RTM Painly Slow While Typing Typescript Import / Export

As the name suggests, I'm looking for information about which features / extensions I can disable to solve a specific problem with the Visual Studio 2017 IDE (Windows).

When I work in Typescript, the following will lead to the node.js process to increase CPU usage and lock the IDE for a few seconds with each keystroke. This happens when filling in paths for import and export operations, for example:

import { foo } from 'app/file/bar'; export { foo } from 'app/file/bar'; 

As soon as I start typing 'app/file/bar' everything goes to hell. The Windows Resource Monitor shows node.exe, diving almost 100% of the processor. Its almost the same as scanning my entire project with every keystroke, so that he can try and offer options for autocompletion (but nothing appears, everything just suffocates).

I made sure my tsconfig excludes node_modules .

Please help - I have so much work to do!

+5
source share
1 answer

Try installing Typescript 2.4.1 , which was released 2 days ago.

This should be fixed in the Typescript repository, indicating that it optimizes the module resolution process, which should affect the performance when import changes. After installation, I found that performance is much better.

I had the same problem as you (~ 20-30 second lag when import changes), but now the lag is minimal.

0
source

Source: https://habr.com/ru/post/1265664/


All Articles