Skip to content

Clarify custom clang_format_style/clang_format_fallbackStyle block must be a string, or also support JSON object syntax #11092

@jmigual

Description

@jmigual

Environment

  • OS and Version: Windows 11 22H2 (build 22621.1702)
  • VS Code Version: 1.79.1
  • C/C++ Extension Version: v1.15.14

Bug Summary and Steps to Reproduce

Bug Summary:

Steps to reproduce:

  1. Go to the JSON settings
  2. Add the following key:
"C_Cpp.clang_format_fallbackStyle": {
    "BasedOnStyle": "Google",
    "IndentWidth": 4,
    "ColumnLimit": 100,
},
  1. The following warning appears (Incorrect type. Expected string):
    image

Expected behavior:
No warning is issued and intellisense is provided as this is a valid setting parameter.

Configuration and Logs

Attached

Other Extensions

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions