Comments (2)
Hey there, sorry about this - this seems like an awful experience.
Is this specifically a problem with only editing? Are you seeing an increase in build time as well? I don't suppose you've been able to run the results of your trace via https://github.com/microsoft/typescript-analyze-trace, have you? That will make things easier to diagnose in terms of performance, and will make it easier to understand what is slower now compared to 5.4.
There is also every-ts to help figure out which commit of TypeScript introduced a regression. If you can run that to help diagnose the issue, it would be extremely helpful.
from typescript.
Well actually I am not using TSC to build my project cuz it's a next.js project. As I know it's using swc to build but I don't have problems at build.
Only happens at editing and typing. I am also using vscode if matters. I generated that trace i attached via vscode's tsserver traces.
I checked same thing at another project and another editor and also at another OS :D , only difference was at Neovim with (coc.nvim) TS server LSP. coc-ts
Also at version check i tried both vscode's TS version and my project's version (5.5, 5.4.5) both were same.
What's happening basically:
I am making a mistake at code then I am waiting for diagnostics, meanwhile my fans are buzzing, my CPU and memory usage increasing around 80%,
the process continuing and it's not showing anything as solution at intellisense.
Even when I correct my mistake, returning back to normal state takes 5-6 sec and my fans and usage becomes same again.
I checked performance profile at vscode, i saw a similar graphic describes that problem.
Here i am sharing what i see while coding: :(
Here is for neovim with coc-tsserver
"C:\Program Files\nodejs\node.EXE" --max-old-space-size=11196 C:\Users\aydin\AppData\Local\coc\extensions\node_modules\coc-tsserver\node_modules\typescript\lib\tsserver.js --useInferredProjectPerProjectRoot --cancellationPipeName C:\Users\aydin\AppData\Local\Temp\coc-tsserver\3956c3a1a44238ae64fa\tscancellation-95086c00069497dac2c0.tmp* --locale en --noGetErrOnBackgroundUpdate --validateDefaultNpmLocation --useNodeIpc
I am okay for high resource consumption for these kind of things, however i dont know why its not ending and showing.
from typescript.
Related Issues (20)
- URLSearchParams not accept number as a value HOT 3
- Passed generic not giving exact return type in callbacks HOT 7
- importHelpers not respected when exporting defaults HOT 3
- `import.meta.resolve` is missing in `lib.dom.d.ts` HOT 1
- Nested generic calls don't inherit outer inferences when their return types are intersections containing functions
- DOM.AsyncIterable not recognized as a valid lib HOT 5
- Type is not checked when spreading a typed object into another typed object HOT 4
- DecoratorsOf<TClass, TFieldName> - Expose decorators to the type system HOT 6
- 5.4.5 nuget package is missing. HOT 3
- Cannot find name react. HOT 10
- Default imports don't work with module resolution node16 HOT 6
- Type guards do not flow when used as callbacks HOT 2
- Allow consumers of Compiler API to override getDirectoryToWatchFailedLookupLocation HOT 3
- Map containing array with strict nullable doesn't work right HOT 4
- Inverted union type narrowing was broken in 4.9 HOT 2
- [nightly][performance] 97% of time spent reading type dependencies when --noCheck and --isolatedDeclarations is enabled HOT 14
- Narrowing subtypes by enum values does not work HOT 4
- Add k command-line flag to allow user specify the module option on their tsconfig.json file at build time. HOT 3
- Explicit Resource Management normative changes for April 2024
- Improve Object.hasOwn HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typescript.