VSCode incredibly slow at saving files on windows

VSCode is taking a long time to format and save files on Windows 11. I’ve configured VSCode to autoformat and save on change of mouse focus, so it is formatting and saving a lot.

Format and save time is fast when VSCode is first started, a fraction of a second for files that are several thousand lines of code.

As the session goes on format and save time gets longer until it eventually can take a minute or more. A file with less than one hundred lines of code can take 30 seconds.

Some part of the Julia runtime uses a full core of CPU when this happens. The fan kicks into high gear until the format and save is finished.

It has been this way for months through several minor version changes of Julia.

Has anybody else experienced this? It is driving me crazy.

Using julia language extension for VSCode v1.38.2

julia> versioninfo()
Julia Version 1.8.5
Commit 17cfb8e65e (2023-01-08 06:45 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 32 × AMD Ryzen 9 7950X 16-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, znver3)
  Threads: 1 on 32 virtual cores
Environment:
  JULIA_EDITOR = code.cmd
1 Like