Sha256: 6c04d1d6d4f4d39e94562b5348d1ff99d59626c8d37524441e1f4be8bd6b2f2a

Contents?: true

Size: 286 Bytes

Versions: 2

Compression:

Stored size: 286 Bytes

Contents

module Byebug::DAP
  class Command::Source < Command
    # "The request retrieves the source code for a given source reference.

    register!

    def execute
      return unless path = can_read_file!(args.source.path)
      respond! body: { content: IO.read(path) }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
byebug-dap-0.1.4 lib/byebug/dap/commands/source.rb
byebug-dap-0.1.3 lib/byebug/dap/commands/source.rb