VSCode Motoko plugin performance issues

I’m experiencing performance issues with the official VSCode plugin for Motoko.

Even on my relatively small repo, the code insights and error highlighting take very long making the DX suffer quite a bit.

I made sure to give VSCode enough resources and also work on a workspace only containing that repo.

Would be grateful for any pointers as to how to improve it.

The repo I’m working on: GitHub - FreeosDAO/fractal_sortition_oc_bot: Standalone Fractal Sortition OpenChat bot

My ./vscode/settings.json:

{
  "files.watcherExclude": {
    "**/node_modules": true,
    "**/dist": true,
    "**/.dfx": true,
    "**/.mops": true
  },
  "typescript.tsserver.maxTsServerMemory": 16384,
  "editor.formatOnSave": false
}

Plugin version: 0.20.1

VSCode version: 1.108.0 (Universal)

System:

  • MacBook Pro 16-inch, 2021
  • Apple M1 Max
  • 64 GB RAM
  • macOS Tahoe 26.2
1 Like

Hey @mattigrthr,

thanks for reporting and providing so much details!

I recognize that we have multiple threads regarding this topic:

As discussed on Discord, there is also this GH issue:

I hope that @rvanasa is able to provide some update on this for you.

Best,
Marco

1 Like

Hi @mattigrthr, this is a known issue with the extension (performance regression with recent Motoko versions) which we are planning to address as soon as possible. It is likely that the slowdown is coming from the large openchat-bot-sdk dependency.

Thank you for sending the link to your repo so we can identify optimizations, and we encourage anyone else to do the same so we can benchmark the performance across a wide range of community Motoko projects.

2 Likes