Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Indentation and detection for end's #234

@GeorgeKaraszi

Description

@GeorgeKaraszi

Your environment

  • vscode-ruby version: 0.15.0
  • Ruby version: 2.4.2
  • VS Code version: 1.19.0
  • Operating System: Windows 10 x64

Expected behavior

all def's if's, do's, and class/module align correctly underneath the appropriate nested method or module

Actual behavior

For every equal assignment that end's with an end block. Appears to be inaccurately aligning/detecting the parent method/module.

Steps to reproduce the problem

I believe the issue is dealing with the equal's sign. Take these few examples.

Basic Method with out predefined params: (Aligns correctly)
good-alignment

Basic Method predefined params: (Bad alignment detection)
predefined-param

Body conditional without assignment: (Aligns correctly)
body-conditional-no-eq

Body conditional with assignment: (Bad alignment detection)

body-condtional-eq

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