Sha256: c680d0f938d6b749f4f34365665a25bee60dd017a0cf01b49238e9150527a6d9

Contents?: true

Size: 753 Bytes

Versions: 25

Compression:

Stored size: 753 Bytes

Contents

# frozen_string_literal: true

module PlatformosCheck
  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, :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

25 entries across 25 versions & 1 rubygems

Version Path
platformos-check-0.4.14 lib/platformos_check/language_server/code_action_provider.rb
platformos-check-0.4.13 lib/platformos_check/language_server/code_action_provider.rb
platformos-check-0.4.12 lib/platformos_check/language_server/code_action_provider.rb
platformos-check-0.4.11 lib/platformos_check/language_server/code_action_provider.rb
platformos-check-0.4.10 lib/platformos_check/language_server/code_action_provider.rb
platformos-check-0.4.9 lib/platformos_check/language_server/code_action_provider.rb
platformos-check-0.4.8 lib/platformos_check/language_server/code_action_provider.rb
platformos-check-0.4.7 lib/platformos_check/language_server/code_action_provider.rb
platformos-check-0.4.6 lib/platformos_check/language_server/code_action_provider.rb
platformos-check-0.4.5 lib/platformos_check/language_server/code_action_provider.rb
platformos-check-0.4.4 lib/platformos_check/language_server/code_action_provider.rb
platformos-check-0.4.3 lib/platformos_check/language_server/code_action_provider.rb
platformos-check-0.4.2 lib/platformos_check/language_server/code_action_provider.rb
platformos-check-0.4.1 lib/platformos_check/language_server/code_action_provider.rb
platformos-check-0.4.0 lib/platformos_check/language_server/code_action_provider.rb
platformos-check-0.3.3 lib/platformos_check/language_server/code_action_provider.rb
platformos-check-0.3.1 lib/platformos_check/language_server/code_action_provider.rb
platformos-check-0.3.0 lib/platformos_check/language_server/code_action_provider.rb
platformos-check-0.2.2 lib/platformos_check/language_server/code_action_provider.rb
platformos-check-0.2.1 lib/platformos_check/language_server/code_action_provider.rb