Sha256: 64c8339ce69a3475bad9d561f938b03d215b5d5cb838faddfcd0f666b266a519

Contents?: true

Size: 804 Bytes

Versions: 25

Compression:

Stored size: 804 Bytes

Contents

# frozen_string_literal: true

module PlatformosCheck
  module LanguageServer
    class RunChecksExecuteCommandProvider < ExecuteCommandProvider
      include URIHelper

      command "runChecks"

      def initialize(diagnostics_engine, storage, linter_config, language_server_config)
        @diagnostics_engine = diagnostics_engine
        @storage = storage
        @linter_config = linter_config
        @language_server_config = language_server_config
      end

      def execute(_args)
        @diagnostics_engine.analyze_and_send_offenses(
          @storage.opened_files.map { |relative_path| @storage.path(relative_path) },
          @linter_config,
          only_single_file: @language_server_config.only_single_file?,
          force: true
        )
        nil
      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/execute_command_providers/run_checks_execute_command_provider.rb
platformos-check-0.4.13 lib/platformos_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
platformos-check-0.4.12 lib/platformos_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
platformos-check-0.4.11 lib/platformos_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
platformos-check-0.4.10 lib/platformos_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
platformos-check-0.4.9 lib/platformos_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
platformos-check-0.4.8 lib/platformos_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
platformos-check-0.4.7 lib/platformos_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
platformos-check-0.4.6 lib/platformos_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
platformos-check-0.4.5 lib/platformos_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
platformos-check-0.4.4 lib/platformos_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
platformos-check-0.4.3 lib/platformos_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
platformos-check-0.4.2 lib/platformos_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
platformos-check-0.4.1 lib/platformos_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
platformos-check-0.4.0 lib/platformos_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
platformos-check-0.3.3 lib/platformos_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
platformos-check-0.3.1 lib/platformos_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
platformos-check-0.3.0 lib/platformos_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
platformos-check-0.2.2 lib/platformos_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
platformos-check-0.2.1 lib/platformos_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb