Sha256: 2487c588dfdad3630a32269ef4eb867021fb9104ab78fb47e8e2e0ebf6c19b32

Contents?: true

Size: 332 Bytes

Versions: 104

Compression:

Stored size: 332 Bytes

Contents

module Standard
  module Lsp
    class Logger
      def initialize
        @puts_onces = []
      end

      def puts(message)
        warn("[server] #{message}")
      end

      def puts_once(message)
        return if @puts_onces.include?(message)
        @puts_onces << message
        puts(message)
      end
    end
  end
end

Version data entries

104 entries across 104 versions & 3 rubygems

Version Path
standard-1.33.0 lib/standard/lsp/logger.rb
standard-1.32.1 lib/standard/lsp/logger.rb
standard-1.32.0 lib/standard/lsp/logger.rb
standard-1.31.2 lib/standard/lsp/logger.rb
standard-1.31.1 lib/standard/lsp/logger.rb
standard-1.31.0 lib/standard/lsp/logger.rb
standard-1.30.1 lib/standard/lsp/logger.rb
standard-1.30.0 lib/standard/lsp/logger.rb
standard-1.29.0 lib/standard/lsp/logger.rb
standard-1.28.5 lib/standard/lsp/logger.rb
standard-1.28.4 lib/standard/lsp/logger.rb
standard-1.28.3 lib/standard/lsp/logger.rb
standard-1.28.2 lib/standard/lsp/logger.rb
standard-1.28.1 lib/standard/lsp/logger.rb
standard-1.28.0 lib/standard/lsp/logger.rb
standard-1.27.0 lib/standard/lsp/logger.rb
standard-1.26.0 lib/standard/lsp/logger.rb
standard-1.25.5 lib/standard/lsp/logger.rb
standard-1.25.4 lib/standard/lsp/logger.rb
standard-1.25.3 lib/standard/lsp/logger.rb