ahmadawais / shades-of-purple-vscode

🦄 Shades of Purple offers a hand-picked selection of bold and vibrant shades of purple that will transform your code into a visually stunning masterpiece. With its carefully crafted color palette, this theme brings a sense of style, elegance, and whimsy to your favorite code editor, making your coding sessions a delightful journey of creativity.
https://marketplace.visualstudio.com/items?itemName=ahmadawais.shades-of-purple
Other
733 stars 62 forks source link

Ruby files theming is unclear #155

Open donquxiote opened 1 month ago

donquxiote commented 1 month ago

On Ruby files with the latest updates to the recommended Ruby extensions, the theme's coloring becomes unclear. Here's an example snippet, and screenshots running the theme with the Ruby extension enabled and without. I'm posting this here because it seems like this is an issue with the theme not recognizing a new classification of the code, rather than the the Ruby extension misclassifying code.

Without Ruby extension

Screenshot 2024-08-06 at 10 05 37 AM

With Ruby extension

Here are the differences that make the code less clear:

Screenshot 2024-08-06 at 10 06 16 AM

Snippet of code

class Foo < InheritingClass
  include ModuleName

  def initialize(arg1, arg2, foo: "bar", **options)
    @arg1 = arg1
    @arg2 = arg2
    @foo = foo
    @options = options
  end

  def self.example_class_method
    puts "This is a class method"
  end

  def example_instance_method
    puts "This is an instance method"
  end

  def reference_to_another_class
    AnotherClass::SubClass::CONSTANT
  end

  def method_with_conditional_logic(fizz, buzz)
    if fizz == "fizz"
      puts true
    else
      puts false
    end

    case buzz
    when "buzz"
      puts true
    else
      puts false
    end

    fizz.map do |f|
      "#{f} !"
    end
  end
end