Sha256: cc6e85f89dcdcc9fd50431ef29b4214cc57d0aa8523f6ff2866de2a812970f03

Contents?: true

Size: 616 Bytes

Versions: 4

Compression:

Stored size: 616 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,
          only_single_file: false,
          force: true
        )
        nil
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
theme-check-1.10.3 lib/theme_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
theme-check-1.10.2 lib/theme_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
theme-check-1.10.1 lib/theme_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
theme-check-1.10.0 lib/theme_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb