Class: ThemeCheck::LanguageServer::RunChecksExecuteCommandProvider
- Inherits:
-
ExecuteCommandProvider
- Object
- ExecuteCommandProvider
- ThemeCheck::LanguageServer::RunChecksExecuteCommandProvider
- Includes:
- URIHelper
- Defined in:
- lib/theme_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb
Instance Method Summary collapse
- #execute(_args) ⇒ Object
-
#initialize(diagnostics_engine, root_path, root_config) ⇒ RunChecksExecuteCommandProvider
constructor
A new instance of RunChecksExecuteCommandProvider.
Methods included from URIHelper
Methods inherited from ExecuteCommandProvider
all, command, #command, inherited
Constructor Details
#initialize(diagnostics_engine, root_path, root_config) ⇒ RunChecksExecuteCommandProvider
Returns a new instance of RunChecksExecuteCommandProvider.
10 11 12 13 14 |
# File 'lib/theme_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb', line 10 def initialize(diagnostics_engine, root_path, root_config) @diagnostics_engine = diagnostics_engine @root_path = root_path @root_config = root_config end |
Instance Method Details
#execute(_args) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/theme_check/language_server/execute_command_providers/run_checks_execute_command_provider.rb', line 16 def execute(_args) @diagnostics_engine.analyze_and_send_offenses( @root_path, @root_config, only_single_file: false, force: true ) nil end |