Sha256: 783afef80efb6bc81181ffbab91584db90738e92d7f56f23bb21602d16c10378

Contents?: true

Size: 439 Bytes

Versions: 6

Compression:

Stored size: 439 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  class CLI
    module Command
      # Start Language Server Protocol of RuboCop.
      # @api private
      class LSP < Base
        self.command_name = :lsp

        def run
          # Load on demand, `languge-server-protocol` is heavy to require.
          require_relative '../../lsp/server'
          RuboCop::LSP::Server.new(@config_store).start
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rubocop-1.70.0 lib/rubocop/cli/command/lsp.rb
rubocop-1.69.2 lib/rubocop/cli/command/lsp.rb
rubocop-1.69.1 lib/rubocop/cli/command/lsp.rb
rubocop-1.69.0 lib/rubocop/cli/command/lsp.rb
rubocop-1.68.0 lib/rubocop/cli/command/lsp.rb
rubocop-1.67.0 lib/rubocop/cli/command/lsp.rb