microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.45k stars 1.53k forks source link

Document format is very slow | CPU #345

Closed justnonamenoname closed 7 years ago

justnonamenoname commented 7 years ago

Steps to Reproduce:

  1. Check Format Document on this file - 40k lines www.gta-samp.com/size.cpp

clang-format.exe works 1 second but Code.exe stuck at CPU 100% for a minute

Visual Studio 2013 format this file in second

If you delete ms-vscode.cpptools and install marketplace.visualstudio.com/items?itemName=ryannaddy.vscode-format or change filename to .css Code.exe will stuck at CPU 100% too

Also run extention dir\ms-vscode.cpptools-0.9.2\LLVM\bin clang-format.exe size.cpp it will format in 3 seconds too

It's not problem of extension

Redirect from: https://github.com/Microsoft/vscode/issues/15221

sean-mcmanus commented 7 years ago

This doesn't appear to be our bug. Can you re-open the issue with VS Code?