Sha256: 23494d301451136d41347a965454ed49e5c2e391d378b7623e876b88c58a3d6d

Contents?: true

Size: 897 Bytes

Versions: 3

Compression:

Stored size: 897 Bytes

Contents

module LanguageServer
  module Protocol
    module Constant
      #
      # Defines whether the insert text in a completion item should be interpreted as
      # plain text or a snippet.
      #
      module InsertTextFormat
        #
        # The primary text to be inserted is treated as a plain string.
        #
        PLAIN_TEXT = 1
        #
        # The primary text to be inserted is treated as a snippet.
        #
        # A snippet can define tab stops and placeholders with `$1`, `$2`
        # and `${3:foo}`. `$0` defines the final tab stop, it defaults to
        # the end of the snippet. Placeholders with equal identifiers are linked,
        # that is typing in one will update others too.
        #
        # See also: https://github.com/Microsoft/vscode/blob/master/src/vs/editor/contrib/snippet/common/snippet.md
        #
        SNIPPET = 2
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
language_server-protocol-0.5.0 lib/language_server/protocol/constant/insert_text_format.rb
language_server-protocol-0.4.0 lib/language_server/protocol/constant/insert_text_format.rb
language_server-protocol-0.3.0 lib/language_server/protocol/constant/insert_text_format.rb