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
harbr-0.1.57 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.56 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.55 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.54 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.53 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.52 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.50 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.49 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.48 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.47 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.46 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.45 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.44 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.43 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.42 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.41 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.39 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.38 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
harbr-0.1.37 vendor/bundle/ruby/3.2.0/gems/standard-1.32.0/lib/standard/lsp/logger.rb
getargv-0.3.3-universal-darwin vendor/bundle/ruby/3.3.0/gems/standard-1.33.0/lib/standard/lsp/logger.rb