GithubHelp home page GithubHelp logo

Comments (2)

DanielRosenwasser avatar DanielRosenwasser commented on June 27, 2024

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.

devhik0 avatar devhik0 commented on June 27, 2024

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: :(

diag
mem-diag

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

vim-diag

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.