Skip to content

VSCode Typescript Intellisense slows to crawl after 5-10 minutes #18774

Closed

Description

  • VSCode Version: Insiders Version 1.9.0-insider (1.9.0-insider) 39d761b
  • OS Version: macOS Sierra 10.12.2 (16C67) (2013 rMBP, i7, 16GB RAM, 1TB SSD)

Steps to Reproduce:

  1. Open large Angular (2.4.3) project and after a while (5-10 minutes) intellisense slows down to a crawl taking 5-15 seconds to generate. If you force it (ctrl + space?), it'll sit for a while with "Loading..."

Disabled most addons, only have:

  • Angular VS Code TypeScript and HTML Snippets
  • Angular Language Service (installed after this started happening)
  • Auto-Open Markdown Preview
  • Bootstrap 3 Snippets

Enabled.

I disabled other addons such as C#/Ionide-fsharp/etc.

Activity

  1. changed the title [-]VSCode Intellisense slows to crawl after 5-10 minutes[/-] [+]VSCode Typescript Intellisense slows to crawl after 5-10 minutes[/+] on Jan 19, 2017
  2. added
    typescript
    on Jan 19, 2017
  3. philjones88 commented on Jan 25, 2017

    @philjones88
    Author

    I figured out it was because I was opening the whole of our product's code base folder, which includes C# .NET Core/CoreCLR projects etc.

    If I open just the Angular 2 sub folder performance is better, however I still notice that VS Code's background processes (Code - Insiders Helper) can sometimes get stuck and eat up CPU causing my MBP's fan to spin up. I force quit them and it's fine.

  4. steelsojka commented on Feb 7, 2017

    @steelsojka

    I have noticed this on a large Angular project. 1.8 was lightning fast with intellisense. 1.9 is taking about 6-10 seconds for just simple autocomplete. It's becoming almost unusable. I can provide any information needed to help resolve this issue.

  5. artaommahe commented on Feb 8, 2017

    @artaommahe

    I have noticed this on a large Angular project. 1.8 was lightning fast with intellisense. 1.9 is taking about 6-10 seconds for just simple autocomplete

    Same here. 1.9 looks very slow, waiting for simple import statement autocomplete from 3 to 10 seconds. 1.8 was faster (but reaches 1.4Gb memory usage in 1-2 hours and crash Intellisense process)

  6. mjbvz commented on Feb 8, 2017

    @mjbvz
    Contributor

    VSCode 1.9 upgraded the bundled TypeScript version for 2.1.4 to 2.1.5. Perhaps there was a performance regression.

    If you are seeing this problem in 1.9, please provide the following information to help us investigate:

    • Are you using a custom typescript.tsdk setting? If you are, which version of TypeScript are you using?
    • Do you have a jsconfig/tsconfig file and what does it look like?
    • If you can share your project, that would be even more helpful. If not, can you provide a general description of it?

    Collect TSServer Traces

    1. Add the user setting: "typescript.tsserver.trace": "verbose"
    2. Restart VSCode
    3. Reproduce the problem.
    4. Go to the output pane and paste up the output from the TypeScript section.

    Collect TSServer Logs
    If you're feeling up to it, this log would be very helpful as well

    1. Exit VSCode
    2. Set the TSS_LOG log environment variable
      • For bash on Mac for example, $export TSS_LOG="-level verbose -file /Users/${username-whoami`}/tss.log"
    3. Start VS Code from an environment with TSS_LOG set, by running $ code for example
    4. Reproduce the problem
    5. Share the tss.log file

    Both the TypeScript trace and TSS_LOG files may contain the contents of source files and full path names.

    You can also try downgrading to TypeScript 2.1.4 by following these instructions

    Thanks

  7. artaommahe commented on Feb 10, 2017

    @artaommahe

    Matt Bierner (@mjbvz)

    downgrading to TypeScript 2.1.4

    Does not help.

    Collect TSServer Traces

    Enabled tracing, opened vscode, wrote

    import {  } from 'page-module/core/module';

    pressed Ctrl + Space in brakets to autocomplete import, page-module/core/module has only one exported variable (with ~20 imports)

    http://pastebin.com/5PN9Amyw

    $ cat log | grep "Request took"

    http://pastebin.com/xh8tjYW2
    A lot of 10-30s requests

    Collect TSServer Logs

    cant find how to set up logging, this does not create log file or write anything to created one

    $ TSS_LOG="-level verbose -file /home/drow/temp/vscode-slow-issue/tsserver.log"
    $ code

    Are you using a custom typescript.tsdk setting? If you are, which version of TypeScript are you using?

    nope

    Do you have a jsconfig/tsconfig file and what does it look like?

    http://pastebin.com/ZdwtEaSL

    If you can share your project, that would be even more helpful. If not, can you provide a general description of it?

    cant share, ~60k loc angular 2 app, one tsconfig

    Ubtuntu 16.04, VSCode Version 1.9.1

    Currently rollback to 1.8.1, same things works instant or 2-3s max instead of 20-30s with 1.9.x.

  8. added
    *duplicate
    on Feb 22, 2017
  9. mjbvz commented on Feb 22, 2017

    @mjbvz
    Contributor

    Thanks. I believe this is a duplicate of #20815. TypeScript has a fix on their side and I also just checked in a fix on the VSCode side. Try out tonight's insiders build and let me know if you still see this

  10. artaommahe commented on Feb 23, 2017

    @artaommahe

    Matt Bierner (@mjbvz) last insiders build works well, like 1.8, thx )

  11. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicateperftypescript

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions