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.

inline if statement has an 'end' statement linked to it and highlighted making the end statements after it incorrect #656

@JarrColl

Description

@JarrColl

Your environment

  • vscode-ruby version: 0.27.0
  • Ruby version: N/A
  • Ruby version manager (if any): N/A
  • VS Code version: 1.44.2
  • Operating System: Windows
  • Using language server? (eg useLanguageServer is true in your configuration?) not using language server

Expected behavior

inline if statement isn't highlighted and linked to an end statement

Actual behavior

image

Here is the code sample:

def openPlayer(albums)
  id = read_integer_in_range("Enter album ID: ", 1, albums.length()) #Album ID selected
  system("clear") || system("cls")
  album = albums[id-1]

  album.tracks.each {|track| puts track.name}
  response = nil
  while(true)
    response = read_string("\nPlay Album? (y/n)") # Play album?
    if(response == 'y')
      playerGUI = MusicPlayerMain.new(album)
      playerGUI.show if __FILE__ == $0 # Open the player GUI
      break
    elsif(response == 'n')
      break
    else
      puts("Invalid Input")
    end
  end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions