Sha256: d4a901f86f27880eba69d4c8165200c0dcc75c4d6e86c8d3ab857feb8a4f5f4d

Contents?: true

Size: 898 Bytes

Versions: 7

Compression:

Stored size: 898 Bytes

Contents

module LanguageServer
  module Protocol
    module Constants
      #
      # 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

7 entries across 7 versions & 2 rubygems

Version Path
language_server-protocol-0.2.0 lib/language_server/protocol/constants/insert_text_format.rb
language_server-protocol-0.1.0 lib/language_server/protocol/constants/insert_text_format.rb
language_server-0.4.0 lib/language_server/protocol/constants/insert_text_format.rb
language_server-0.3.1 lib/language_server/protocol/constants/insert_text_format.rb
language_server-0.3.0 lib/language_server/protocol/constants/insert_text_format.rb
language_server-0.2.0 lib/language_server/protocol/constants/insert_text_format.rb
language_server-0.1.0 lib/language_server/protocol/constants/insert_text_format.rb