Skip to content

Format on save takes way too long with cmake extension enabled. #12221

Closed as not planned
@christianbrugger

Description

@christianbrugger

Brief Issue Summary

When using format on save "editor.formatOnSave": true with CMake Tools extension enabled the save often takes 10 seconds or even longer. For the formatting itself I am using clang-format-17.

Slow.-.CMake.Extension.Enabled.webm

Running clang-format-17 itself takes 20ms on this file when launched from the terminal.

$ time clang-format-17 -i src/component/simulation/history_calculation.h

real	0m0.023s
user	0m0.007s
sys	0m0.015s

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions