Skip to content

--lines start:end is ignored, whole file is formatted #942

Description

@lbrayner

Using https://github.com/eclipse/eclipse.jdt.ls/blob/edd4b20e2bc3f062b0e1b25a7a1088f0b6a94142/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/handlers/JDTLanguageServer.java#L1105 as an example, java -jar google-java-format-1.17.0-all-deps.jar -i --skip-sorting-imports --skip-removing-unused-imports --lines 1105:1105 org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/handlers/JDTLanguageServer.java formats the whole file, and not just line 1105.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions