language_server-protocol 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +31 -4
  3. data/circle.yml +23 -0
  4. data/docker-compose.yml +35 -0
  5. data/docker-sync.yml +9 -0
  6. data/language_server-protocol.gemspec +3 -0
  7. data/lib/language_server-protocol.rb +1 -0
  8. data/lib/language_server/protocol.rb +3 -6
  9. data/lib/language_server/protocol/constant.rb +11 -0
  10. data/lib/language_server/protocol/{constants → constant}/completion_item_kind.rb +1 -1
  11. data/lib/language_server/protocol/{constants → constant}/diagnostic_severity.rb +1 -1
  12. data/lib/language_server/protocol/{constants → constant}/document_highlight_kind.rb +1 -1
  13. data/lib/language_server/protocol/{constants → constant}/error_codes.rb +1 -1
  14. data/lib/language_server/protocol/{constants → constant}/file_change_type.rb +1 -1
  15. data/lib/language_server/protocol/{constants → constant}/initialize_error.rb +1 -1
  16. data/lib/language_server/protocol/{constants → constant}/insert_text_format.rb +1 -1
  17. data/lib/language_server/protocol/{constants → constant}/message_type.rb +1 -1
  18. data/lib/language_server/protocol/{constants → constant}/symbol_kind.rb +1 -1
  19. data/lib/language_server/protocol/{constants → constant}/text_document_save_reason.rb +1 -1
  20. data/lib/language_server/protocol/{constants → constant}/text_document_sync_kind.rb +1 -1
  21. data/lib/language_server/protocol/interface.rb +87 -0
  22. data/lib/language_server/protocol/{interfaces → interface}/apply_workspace_edit_params.rb +1 -1
  23. data/lib/language_server/protocol/{interfaces → interface}/apply_workspace_edit_response.rb +1 -1
  24. data/lib/language_server/protocol/{interfaces → interface}/cancel_params.rb +1 -1
  25. data/lib/language_server/protocol/{interfaces → interface}/client_capabilities.rb +1 -1
  26. data/lib/language_server/protocol/{interfaces → interface}/code_action_context.rb +1 -1
  27. data/lib/language_server/protocol/{interfaces → interface}/code_action_params.rb +1 -1
  28. data/lib/language_server/protocol/{interfaces → interface}/code_lens.rb +1 -1
  29. data/lib/language_server/protocol/{interfaces → interface}/code_lens_options.rb +1 -1
  30. data/lib/language_server/protocol/{interfaces → interface}/code_lens_params.rb +1 -1
  31. data/lib/language_server/protocol/{interfaces → interface}/code_lens_registration_options.rb +1 -1
  32. data/lib/language_server/protocol/{interfaces → interface}/command.rb +1 -1
  33. data/lib/language_server/protocol/{interfaces → interface}/completion_item.rb +1 -1
  34. data/lib/language_server/protocol/{interfaces → interface}/completion_list.rb +1 -1
  35. data/lib/language_server/protocol/{interfaces → interface}/completion_options.rb +1 -1
  36. data/lib/language_server/protocol/{interfaces → interface}/completion_registration_options.rb +1 -1
  37. data/lib/language_server/protocol/{interfaces → interface}/diagnostic.rb +1 -1
  38. data/lib/language_server/protocol/{interfaces → interface}/did_change_configuration_params.rb +1 -1
  39. data/lib/language_server/protocol/{interfaces → interface}/did_change_text_document_params.rb +1 -1
  40. data/lib/language_server/protocol/{interfaces → interface}/did_change_watched_files_params.rb +1 -1
  41. data/lib/language_server/protocol/{interfaces → interface}/did_close_text_document_params.rb +1 -1
  42. data/lib/language_server/protocol/{interfaces → interface}/did_open_text_document_params.rb +1 -1
  43. data/lib/language_server/protocol/{interfaces → interface}/did_save_text_document_params.rb +1 -1
  44. data/lib/language_server/protocol/{interfaces → interface}/document_filter.rb +1 -1
  45. data/lib/language_server/protocol/{interfaces → interface}/document_formatting_params.rb +1 -1
  46. data/lib/language_server/protocol/{interfaces → interface}/document_highlight.rb +1 -1
  47. data/lib/language_server/protocol/{interfaces → interface}/document_link.rb +1 -1
  48. data/lib/language_server/protocol/{interfaces → interface}/document_link_options.rb +1 -1
  49. data/lib/language_server/protocol/{interfaces → interface}/document_link_params.rb +1 -1
  50. data/lib/language_server/protocol/{interfaces → interface}/document_link_registration_options.rb +1 -1
  51. data/lib/language_server/protocol/{interfaces → interface}/document_on_type_formatting_options.rb +1 -1
  52. data/lib/language_server/protocol/{interfaces → interface}/document_on_type_formatting_params.rb +1 -1
  53. data/lib/language_server/protocol/{interfaces → interface}/document_on_type_formatting_registration_options.rb +1 -1
  54. data/lib/language_server/protocol/{interfaces → interface}/document_range_formatting_params.rb +1 -1
  55. data/lib/language_server/protocol/{interfaces → interface}/document_symbol_params.rb +1 -1
  56. data/lib/language_server/protocol/{interfaces → interface}/execute_command_options.rb +1 -1
  57. data/lib/language_server/protocol/{interfaces → interface}/execute_command_params.rb +1 -1
  58. data/lib/language_server/protocol/{interfaces → interface}/execute_command_registration_options.rb +1 -1
  59. data/lib/language_server/protocol/{interfaces → interface}/file_event.rb +1 -1
  60. data/lib/language_server/protocol/{interfaces → interface}/formatting_options.rb +1 -1
  61. data/lib/language_server/protocol/{interfaces → interface}/hover.rb +1 -1
  62. data/lib/language_server/protocol/{interfaces → interface}/initialize_error.rb +1 -1
  63. data/lib/language_server/protocol/{interfaces → interface}/initialize_params.rb +1 -1
  64. data/lib/language_server/protocol/{interfaces → interface}/initialize_result.rb +1 -1
  65. data/lib/language_server/protocol/{interfaces → interface}/location.rb +1 -1
  66. data/lib/language_server/protocol/{interfaces → interface}/log_message_params.rb +1 -1
  67. data/lib/language_server/protocol/{interfaces → interface}/message.rb +1 -1
  68. data/lib/language_server/protocol/{interfaces → interface}/message_action_item.rb +1 -1
  69. data/lib/language_server/protocol/{interfaces → interface}/notification_message.rb +1 -1
  70. data/lib/language_server/protocol/{interfaces → interface}/parameter_information.rb +1 -1
  71. data/lib/language_server/protocol/{interfaces → interface}/position.rb +1 -1
  72. data/lib/language_server/protocol/{interfaces → interface}/publish_diagnostics_params.rb +1 -1
  73. data/lib/language_server/protocol/{interfaces → interface}/range.rb +1 -1
  74. data/lib/language_server/protocol/{interfaces → interface}/reference_context.rb +1 -1
  75. data/lib/language_server/protocol/{interfaces → interface}/reference_params.rb +1 -1
  76. data/lib/language_server/protocol/{interfaces → interface}/registration.rb +1 -1
  77. data/lib/language_server/protocol/{interfaces → interface}/registration_params.rb +1 -1
  78. data/lib/language_server/protocol/{interfaces → interface}/rename_params.rb +1 -1
  79. data/lib/language_server/protocol/{interfaces → interface}/request_message.rb +1 -1
  80. data/lib/language_server/protocol/{interfaces → interface}/response_error.rb +1 -1
  81. data/lib/language_server/protocol/{interfaces → interface}/response_message.rb +1 -1
  82. data/lib/language_server/protocol/{interfaces → interface}/save_options.rb +1 -1
  83. data/lib/language_server/protocol/{interfaces → interface}/server_capabilities.rb +1 -1
  84. data/lib/language_server/protocol/{interfaces → interface}/show_message_params.rb +1 -1
  85. data/lib/language_server/protocol/{interfaces → interface}/show_message_request_params.rb +1 -1
  86. data/lib/language_server/protocol/{interfaces → interface}/signature_help.rb +1 -1
  87. data/lib/language_server/protocol/{interfaces → interface}/signature_help_options.rb +1 -1
  88. data/lib/language_server/protocol/{interfaces → interface}/signature_help_registration_options.rb +1 -1
  89. data/lib/language_server/protocol/{interfaces → interface}/signature_information.rb +1 -1
  90. data/lib/language_server/protocol/{interfaces → interface}/symbol_information.rb +1 -1
  91. data/lib/language_server/protocol/{interfaces → interface}/text_document_change_registration_options.rb +1 -1
  92. data/lib/language_server/protocol/{interfaces → interface}/text_document_client_capabilities.rb +1 -1
  93. data/lib/language_server/protocol/{interfaces → interface}/text_document_content_change_event.rb +1 -1
  94. data/lib/language_server/protocol/{interfaces → interface}/text_document_edit.rb +1 -1
  95. data/lib/language_server/protocol/{interfaces → interface}/text_document_identifier.rb +1 -1
  96. data/lib/language_server/protocol/{interfaces → interface}/text_document_item.rb +1 -1
  97. data/lib/language_server/protocol/{interfaces → interface}/text_document_position_params.rb +1 -1
  98. data/lib/language_server/protocol/{interfaces → interface}/text_document_registration_options.rb +1 -1
  99. data/lib/language_server/protocol/{interfaces → interface}/text_document_save_registration_options.rb +1 -1
  100. data/lib/language_server/protocol/{interfaces → interface}/text_document_sync_options.rb +1 -1
  101. data/lib/language_server/protocol/{interfaces → interface}/text_edit.rb +1 -1
  102. data/lib/language_server/protocol/{interfaces → interface}/unregistration.rb +1 -1
  103. data/lib/language_server/protocol/{interfaces → interface}/unregistration_params.rb +1 -1
  104. data/lib/language_server/protocol/{interfaces → interface}/versioned_text_document_identifier.rb +1 -1
  105. data/lib/language_server/protocol/{interfaces → interface}/will_save_text_document_params.rb +1 -1
  106. data/lib/language_server/protocol/{interfaces → interface}/workspace_client_capabilites.rb +1 -1
  107. data/lib/language_server/protocol/{interfaces → interface}/workspace_edit.rb +1 -1
  108. data/lib/language_server/protocol/{interfaces → interface}/workspace_symbol_params.rb +1 -1
  109. data/lib/language_server/protocol/transport.rb +1 -0
  110. data/lib/language_server/protocol/version.rb +1 -1
  111. data/scripts/generateFiles.ts +8 -8
  112. metadata +149 -102
  113. data/lib/language_server/protocol/constants.rb +0 -11
  114. data/lib/language_server/protocol/interfaces.rb +0 -87
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class Command
5
5
  def initialize(title:, command:, arguments: nil)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class CompletionItem
5
5
  def initialize(label:, kind: nil, detail: nil, documentation: nil, sort_text: nil, filter_text: nil, insert_text: nil, insert_text_format: nil, text_edit: nil, additional_text_edits: nil, command: nil, data: nil)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  #
5
5
  # Represents a collection of [completion items](#CompletionItem) to be presented
6
6
  # in the editor.
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  #
5
5
  # Completion options.
6
6
  #
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class CompletionRegistrationOptions
5
5
  def initialize(trigger_characters: nil, resolve_provider: nil)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class Diagnostic
5
5
  def initialize(range:, severity: nil, code: nil, source: nil, message:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class DidChangeConfigurationParams
5
5
  def initialize(settings:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class DidChangeTextDocumentParams
5
5
  def initialize(text_document:, content_changes:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class DidChangeWatchedFilesParams
5
5
  def initialize(changes:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class DidCloseTextDocumentParams
5
5
  def initialize(text_document:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class DidOpenTextDocumentParams
5
5
  def initialize(text_document:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class DidSaveTextDocumentParams
5
5
  def initialize(text_document:, text: nil)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class DocumentFilter
5
5
  def initialize(language: nil, scheme: nil, pattern: nil)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class DocumentFormattingParams
5
5
  def initialize(text_document:, options:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  #
5
5
  # A document highlight is a range inside a text document which deserves
6
6
  # special attention. Usually a document highlight is visualized by changing
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  #
5
5
  # A document link is a range in a text document that links to an internal or external resource, like another
6
6
  # text document or a web site.
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  #
5
5
  # Document link options
6
6
  #
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class DocumentLinkParams
5
5
  def initialize(text_document:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class DocumentLinkRegistrationOptions
5
5
  def initialize(resolve_provider: nil)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  #
5
5
  # Format document on type options
6
6
  #
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class DocumentOnTypeFormattingParams
5
5
  def initialize(text_document:, position:, ch:, options:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class DocumentOnTypeFormattingRegistrationOptions
5
5
  def initialize(first_trigger_character:, more_trigger_character: nil)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class DocumentRangeFormattingParams
5
5
  def initialize(text_document:, range:, options:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class DocumentSymbolParams
5
5
  def initialize(text_document:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  #
5
5
  # Execute command options.
6
6
  #
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class ExecuteCommandParams
5
5
  def initialize(command:, arguments: nil)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  #
5
5
  # Execute command registration options.
6
6
  #
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  #
5
5
  # An event describing a file change.
6
6
  #
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  #
5
5
  # Value-object describing what options formatting should use.
6
6
  #
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  #
5
5
  # The result of a hover request.
6
6
  #
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  #
5
5
  # Known error codes for an `InitializeError`;
6
6
  #
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class InitializeParams
5
5
  def initialize(process_id:, root_path: nil, root_uri:, initialization_options: nil, capabilities:, trace: nil)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class InitializeResult
5
5
  def initialize(capabilities:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class Location
5
5
  def initialize(uri:, range:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class LogMessageParams
5
5
  def initialize(type:, message:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class Message
5
5
  def initialize(jsonrpc:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class MessageActionItem
5
5
  def initialize(title:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class NotificationMessage
5
5
  def initialize(method:, params: nil)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  #
5
5
  # Represents a parameter of a callable-signature. A parameter can
6
6
  # have a label and a doc-comment.
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class Position
5
5
  def initialize(line:, character:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class PublishDiagnosticsParams
5
5
  def initialize(uri:, diagnostics:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class Range
5
5
  def initialize(start:, end:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class ReferenceContext
5
5
  def initialize(include_declaration:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class ReferenceParams
5
5
  def initialize(context:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  #
5
5
  # General paramters to to regsiter for a capability.
6
6
  #
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class RegistrationParams
5
5
  def initialize(registrations:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class RenameParams
5
5
  def initialize(text_document:, position:, new_name:)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class RequestMessage
5
5
  def initialize(id:, method:, params: nil)
6
6
  @attributes = {}
@@ -1,6 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
- module Interfaces
3
+ module Interface
4
4
  class ResponseError
5
5
  def initialize(code:, message:, data: nil)
6
6
  @attributes = {}