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.38.0 lib/standard/lsp/logger.rb
standard-1.37.0 lib/standard/lsp/logger.rb
harbr-2.8.1 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
standard-1.35.0.1 lib/standard/lsp/logger.rb
standard-1.34.0.1 lib/standard/lsp/logger.rb
standard-1.35.1 lib/standard/lsp/logger.rb
standard-1.35.0 lib/standard/lsp/logger.rb
standard-1.34.0 lib/standard/lsp/logger.rb
harbr-0.2.10 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.2.9 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.2.8 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.2.7 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.2.6 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.2.5 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.2.4 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.2.3 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.2.2 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.2.1 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.2.0 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.99 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb