Skip to content

Fluent API Formatting is Inconsistent #1555

@Sahasrara

Description

@Sahasrara

Environments

  • IDE Version:
    Version: 1.98.2 (user setup)
    Commit: ddc367ed5c8936efe395cffeec279b04ffd7db78
    Date: 2025-03-12T13:32:45.399Z
    Electron: 34.2.0
    ElectronBuildId: 11161602
    Chromium: 132.0.6834.196
    Node.js: 20.18.2
    V8: 13.2.152.36-electron.0
    OS: Windows_NT x64 10.0.26100

  • Extension Version:
    2.0.6

  • CSharpier Version:
    I'm... not sure. It doesn't say in VS Code.

  • Operating System:
    Windows 11

  • .csharpierrc Settings:
    N/A

  • .editorconfig Settings:
    N/A

Log Output
N/A

Steps to reproduce
Format code

Expected behavior
I would expect consistent fluent API formatting, or no fluent api formatting.

Actual behavior
Here's an example chunk of code:

            Singletons<HotelBagatelleActions>
                .Value
                .Golf
                .GP_LeftStick
                .performed += OnLeftStick;
            Singletons<HotelBagatelleActions>.Value.Golf.GP_LeftStick.canceled += OnLeftStick;
            Singletons<HotelBagatelleActions>.Value.Golf.GP_RightStick.performed += OnLeftStick;
            Singletons<HotelBagatelleActions>.Value.Golf.GP_RightStick.canceled += OnLeftStick;

This is how CSharpier formatted the code. I would expect them all to be like the first line, or the first line to be like the following three lines. Instead, it's inconsistently formatted.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions