Sha256: fa2cb4bbd0d68fa6172d94f8f011d98a7ff196292a72506606bde6a7ad41a154

Contents?: true

Size: 765 Bytes

Versions: 13

Compression:

Stored size: 765 Bytes

Contents

# frozen_string_literal: true

module ThemeCheck
  module LanguageServer
    class CodeActionProvider
      class << self
        def all
          @all ||= []
        end

        def inherited(subclass)
          all << subclass
        end

        def kind(k = nil)
          @kind = k unless k.nil?
          @kind
        end
      end

      attr_reader :storage
      attr_reader :diagnostics_manager

      def initialize(storage, diagnostics_manager)
        @storage = storage
        @diagnostics_manager = diagnostics_manager
      end

      def kind
        self.class.kind
      end

      def base_kind
        kind.split('.')[0]
      end

      def code_actions(relative_path, range)
        raise NotImplementedError
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
theme-check-1.15.0 lib/theme_check/language_server/code_action_provider.rb
theme-check-1.14.0 lib/theme_check/language_server/code_action_provider.rb
theme-check-1.13.0 lib/theme_check/language_server/code_action_provider.rb
theme-check-1.12.1 lib/theme_check/language_server/code_action_provider.rb
theme-check-1.12.0 lib/theme_check/language_server/code_action_provider.rb
theme-check-1.11.0 lib/theme_check/language_server/code_action_provider.rb
theme-check-1.10.3 lib/theme_check/language_server/code_action_provider.rb
theme-check-1.10.2 lib/theme_check/language_server/code_action_provider.rb
theme-check-1.10.1 lib/theme_check/language_server/code_action_provider.rb
theme-check-1.10.0 lib/theme_check/language_server/code_action_provider.rb
theme-check-1.9.2 lib/theme_check/language_server/code_action_provider.rb
theme-check-1.9.1 lib/theme_check/language_server/code_action_provider.rb
theme-check-1.9.0 lib/theme_check/language_server/code_action_provider.rb