Sha256: a66914d9cc3a4031b0b76e4408e58c495fcee16873c6a63554061fef14eec053

Contents?: true

Size: 541 Bytes

Versions: 3

Compression:

Stored size: 541 Bytes

Contents

# frozen_string_literal: true

module ThemeCheck
  module LanguageServer
    class RunChecksExecuteCommandProvider < ExecuteCommandProvider
      include URIHelper

      command "runChecks"

      def initialize(diagnostics_engine, root_path, root_config)
        @diagnostics_engine = diagnostics_engine
        @root_path = root_path
        @root_config = root_config
      end

      def execute(_args)
        @diagnostics_engine.analyze_and_send_offenses(@root_path, @root_config, force: true)
        nil
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
theme-check-1.9.2 lib/theme_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
theme-check-1.9.1 lib/theme_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
theme-check-1.9.0 lib/theme_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb