Sha256: 88473e9945d796e2e79b2278664659c58a2440d691d377e1dc58f4712ab383bd

Contents?: true

Size: 799 Bytes

Versions: 6

Compression:

Stored size: 799 Bytes

Contents

# frozen_string_literal: true

module ThemeCheck
  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

6 entries across 6 versions & 1 rubygems

Version Path
theme-check-1.15.0 lib/theme_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
theme-check-1.14.0 lib/theme_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
theme-check-1.13.0 lib/theme_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
theme-check-1.12.1 lib/theme_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
theme-check-1.12.0 lib/theme_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
theme-check-1.11.0 lib/theme_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb