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