Skip to content

Format Selection is formatting the entire file #101

Closed
@lsouder-ozone3d

Description

@lsouder-ozone3d

I am having an issue where doing Format Selection is making changes outside the selected range. To clarify, doing Format Document does yield different results (more changes), so they are at least different.

I am using:

  • yapf 0.40.2
  • yapf VSCode extension version v2023.11.122090301
  • Python 3.9.13

My .vscode/settings.json is

{
    "python.languageServer": "Pylance",
    "python.analysis.diagnosticSeverityOverrides": {

    },
    "python.analysis.inlayHints.variableTypes": "off",
    "python.analysis.inlayHints.functionReturnTypes": true,
    "python.analysis.inlayHints.callArgumentNames": "off",
    "[python]": {
        "editor.defaultFormatter": "eeyore.yapf"
    },
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions