language_server-protocol 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -1
  3. data/README.md +2 -0
  4. data/bin/m +17 -0
  5. data/language_server-protocol.gemspec +1 -0
  6. data/lib/language_server/protocol/interface/apply_workspace_edit_params.rb +5 -1
  7. data/lib/language_server/protocol/interface/apply_workspace_edit_response.rb +5 -1
  8. data/lib/language_server/protocol/interface/cancel_params.rb +5 -1
  9. data/lib/language_server/protocol/interface/client_capabilities.rb +5 -1
  10. data/lib/language_server/protocol/interface/code_action_context.rb +5 -1
  11. data/lib/language_server/protocol/interface/code_action_params.rb +5 -1
  12. data/lib/language_server/protocol/interface/code_lens.rb +5 -1
  13. data/lib/language_server/protocol/interface/code_lens_options.rb +5 -1
  14. data/lib/language_server/protocol/interface/code_lens_params.rb +5 -1
  15. data/lib/language_server/protocol/interface/code_lens_registration_options.rb +5 -1
  16. data/lib/language_server/protocol/interface/command.rb +5 -1
  17. data/lib/language_server/protocol/interface/completion_item.rb +5 -1
  18. data/lib/language_server/protocol/interface/completion_list.rb +5 -1
  19. data/lib/language_server/protocol/interface/completion_options.rb +5 -1
  20. data/lib/language_server/protocol/interface/completion_registration_options.rb +5 -1
  21. data/lib/language_server/protocol/interface/diagnostic.rb +5 -1
  22. data/lib/language_server/protocol/interface/did_change_configuration_params.rb +5 -1
  23. data/lib/language_server/protocol/interface/did_change_text_document_params.rb +5 -1
  24. data/lib/language_server/protocol/interface/did_change_watched_files_params.rb +5 -1
  25. data/lib/language_server/protocol/interface/did_close_text_document_params.rb +5 -1
  26. data/lib/language_server/protocol/interface/did_open_text_document_params.rb +5 -1
  27. data/lib/language_server/protocol/interface/did_save_text_document_params.rb +5 -1
  28. data/lib/language_server/protocol/interface/document_filter.rb +5 -1
  29. data/lib/language_server/protocol/interface/document_formatting_params.rb +5 -1
  30. data/lib/language_server/protocol/interface/document_highlight.rb +5 -1
  31. data/lib/language_server/protocol/interface/document_link.rb +5 -1
  32. data/lib/language_server/protocol/interface/document_link_options.rb +5 -1
  33. data/lib/language_server/protocol/interface/document_link_params.rb +5 -1
  34. data/lib/language_server/protocol/interface/document_link_registration_options.rb +5 -1
  35. data/lib/language_server/protocol/interface/document_on_type_formatting_options.rb +5 -1
  36. data/lib/language_server/protocol/interface/document_on_type_formatting_params.rb +5 -1
  37. data/lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb +5 -1
  38. data/lib/language_server/protocol/interface/document_range_formatting_params.rb +5 -1
  39. data/lib/language_server/protocol/interface/document_symbol_params.rb +5 -1
  40. data/lib/language_server/protocol/interface/execute_command_options.rb +5 -1
  41. data/lib/language_server/protocol/interface/execute_command_params.rb +5 -1
  42. data/lib/language_server/protocol/interface/execute_command_registration_options.rb +5 -1
  43. data/lib/language_server/protocol/interface/file_event.rb +5 -1
  44. data/lib/language_server/protocol/interface/formatting_options.rb +5 -1
  45. data/lib/language_server/protocol/interface/hover.rb +5 -1
  46. data/lib/language_server/protocol/interface/initialize_error.rb +5 -1
  47. data/lib/language_server/protocol/interface/initialize_params.rb +5 -1
  48. data/lib/language_server/protocol/interface/initialize_result.rb +5 -1
  49. data/lib/language_server/protocol/interface/location.rb +5 -1
  50. data/lib/language_server/protocol/interface/log_message_params.rb +5 -1
  51. data/lib/language_server/protocol/interface/message.rb +5 -1
  52. data/lib/language_server/protocol/interface/message_action_item.rb +5 -1
  53. data/lib/language_server/protocol/interface/notification_message.rb +5 -1
  54. data/lib/language_server/protocol/interface/parameter_information.rb +5 -1
  55. data/lib/language_server/protocol/interface/position.rb +5 -1
  56. data/lib/language_server/protocol/interface/publish_diagnostics_params.rb +5 -1
  57. data/lib/language_server/protocol/interface/range.rb +5 -1
  58. data/lib/language_server/protocol/interface/reference_context.rb +5 -1
  59. data/lib/language_server/protocol/interface/reference_params.rb +5 -1
  60. data/lib/language_server/protocol/interface/registration.rb +5 -1
  61. data/lib/language_server/protocol/interface/registration_params.rb +5 -1
  62. data/lib/language_server/protocol/interface/rename_params.rb +5 -1
  63. data/lib/language_server/protocol/interface/request_message.rb +5 -1
  64. data/lib/language_server/protocol/interface/response_error.rb +5 -1
  65. data/lib/language_server/protocol/interface/response_message.rb +5 -1
  66. data/lib/language_server/protocol/interface/save_options.rb +5 -1
  67. data/lib/language_server/protocol/interface/server_capabilities.rb +5 -1
  68. data/lib/language_server/protocol/interface/show_message_params.rb +5 -1
  69. data/lib/language_server/protocol/interface/show_message_request_params.rb +5 -1
  70. data/lib/language_server/protocol/interface/signature_help.rb +5 -1
  71. data/lib/language_server/protocol/interface/signature_help_options.rb +5 -1
  72. data/lib/language_server/protocol/interface/signature_help_registration_options.rb +5 -1
  73. data/lib/language_server/protocol/interface/signature_information.rb +5 -1
  74. data/lib/language_server/protocol/interface/symbol_information.rb +5 -1
  75. data/lib/language_server/protocol/interface/text_document_change_registration_options.rb +5 -1
  76. data/lib/language_server/protocol/interface/text_document_client_capabilities.rb +5 -1
  77. data/lib/language_server/protocol/interface/text_document_content_change_event.rb +5 -1
  78. data/lib/language_server/protocol/interface/text_document_edit.rb +5 -1
  79. data/lib/language_server/protocol/interface/text_document_identifier.rb +5 -1
  80. data/lib/language_server/protocol/interface/text_document_item.rb +5 -1
  81. data/lib/language_server/protocol/interface/text_document_position_params.rb +5 -1
  82. data/lib/language_server/protocol/interface/text_document_registration_options.rb +5 -1
  83. data/lib/language_server/protocol/interface/text_document_save_registration_options.rb +5 -1
  84. data/lib/language_server/protocol/interface/text_document_sync_options.rb +5 -1
  85. data/lib/language_server/protocol/interface/text_edit.rb +5 -1
  86. data/lib/language_server/protocol/interface/unregistration.rb +5 -1
  87. data/lib/language_server/protocol/interface/unregistration_params.rb +5 -1
  88. data/lib/language_server/protocol/interface/versioned_text_document_identifier.rb +5 -1
  89. data/lib/language_server/protocol/interface/will_save_text_document_params.rb +5 -1
  90. data/lib/language_server/protocol/interface/workspace_client_capabilites.rb +5 -1
  91. data/lib/language_server/protocol/interface/workspace_edit.rb +5 -1
  92. data/lib/language_server/protocol/interface/workspace_symbol_params.rb +5 -1
  93. data/lib/language_server/protocol/version.rb +1 -1
  94. data/scripts/generateFiles.ts +5 -1
  95. metadata +17 -2
@@ -26,8 +26,12 @@ module LanguageServer
26
26
 
27
27
  attr_reader :attributes
28
28
 
29
+ def to_hash
30
+ attributes
31
+ end
32
+
29
33
  def to_json(*args)
30
- attributes.to_json(*args)
34
+ to_hash.to_json(*args)
31
35
  end
32
36
  end
33
37
  end
@@ -70,8 +70,12 @@ module LanguageServer
70
70
 
71
71
  attr_reader :attributes
72
72
 
73
+ def to_hash
74
+ attributes
75
+ end
76
+
73
77
  def to_json(*args)
74
- attributes.to_json(*args)
78
+ to_hash.to_json(*args)
75
79
  end
76
80
  end
77
81
  end
@@ -20,8 +20,12 @@ module LanguageServer
20
20
 
21
21
  attr_reader :attributes
22
22
 
23
+ def to_hash
24
+ attributes
25
+ end
26
+
23
27
  def to_json(*args)
24
- attributes.to_json(*args)
28
+ to_hash.to_json(*args)
25
29
  end
26
30
  end
27
31
  end
@@ -23,8 +23,12 @@ module LanguageServer
23
23
 
24
24
  attr_reader :attributes
25
25
 
26
+ def to_hash
27
+ attributes
28
+ end
29
+
26
30
  def to_json(*args)
27
- attributes.to_json(*args)
31
+ to_hash.to_json(*args)
28
32
  end
29
33
  end
30
34
  end
@@ -29,8 +29,12 @@ module LanguageServer
29
29
 
30
30
  attr_reader :attributes
31
31
 
32
+ def to_hash
33
+ attributes
34
+ end
35
+
32
36
  def to_json(*args)
33
- attributes.to_json(*args)
37
+ to_hash.to_json(*args)
34
38
  end
35
39
  end
36
40
  end
@@ -17,8 +17,12 @@ module LanguageServer
17
17
 
18
18
  attr_reader :attributes
19
19
 
20
+ def to_hash
21
+ attributes
22
+ end
23
+
20
24
  def to_json(*args)
21
- attributes.to_json(*args)
25
+ to_hash.to_json(*args)
22
26
  end
23
27
  end
24
28
  end
@@ -20,8 +20,12 @@ module LanguageServer
20
20
 
21
21
  attr_reader :attributes
22
22
 
23
+ def to_hash
24
+ attributes
25
+ end
26
+
23
27
  def to_json(*args)
24
- attributes.to_json(*args)
28
+ to_hash.to_json(*args)
25
29
  end
26
30
  end
27
31
  end
@@ -29,8 +29,12 @@ module LanguageServer
29
29
 
30
30
  attr_reader :attributes
31
31
 
32
+ def to_hash
33
+ attributes
34
+ end
35
+
32
36
  def to_json(*args)
33
- attributes.to_json(*args)
37
+ to_hash.to_json(*args)
34
38
  end
35
39
  end
36
40
  end
@@ -35,8 +35,12 @@ module LanguageServer
35
35
 
36
36
  attr_reader :attributes
37
37
 
38
+ def to_hash
39
+ attributes
40
+ end
41
+
38
42
  def to_json(*args)
39
- attributes.to_json(*args)
43
+ to_hash.to_json(*args)
40
44
  end
41
45
  end
42
46
  end
@@ -29,8 +29,12 @@ module LanguageServer
29
29
 
30
30
  attr_reader :attributes
31
31
 
32
+ def to_hash
33
+ attributes
34
+ end
35
+
32
36
  def to_json(*args)
33
- attributes.to_json(*args)
37
+ to_hash.to_json(*args)
34
38
  end
35
39
  end
36
40
  end
@@ -29,8 +29,12 @@ module LanguageServer
29
29
 
30
30
  attr_reader :attributes
31
31
 
32
+ def to_hash
33
+ attributes
34
+ end
35
+
32
36
  def to_json(*args)
33
- attributes.to_json(*args)
37
+ to_hash.to_json(*args)
34
38
  end
35
39
  end
36
40
  end
@@ -29,8 +29,12 @@ module LanguageServer
29
29
 
30
30
  attr_reader :attributes
31
31
 
32
+ def to_hash
33
+ attributes
34
+ end
35
+
32
36
  def to_json(*args)
33
- attributes.to_json(*args)
37
+ to_hash.to_json(*args)
34
38
  end
35
39
  end
36
40
  end
@@ -20,8 +20,12 @@ module LanguageServer
20
20
 
21
21
  attr_reader :attributes
22
22
 
23
+ def to_hash
24
+ attributes
25
+ end
26
+
23
27
  def to_json(*args)
24
- attributes.to_json(*args)
28
+ to_hash.to_json(*args)
25
29
  end
26
30
  end
27
31
  end
@@ -17,8 +17,12 @@ module LanguageServer
17
17
 
18
18
  attr_reader :attributes
19
19
 
20
+ def to_hash
21
+ attributes
22
+ end
23
+
20
24
  def to_json(*args)
21
- attributes.to_json(*args)
25
+ to_hash.to_json(*args)
22
26
  end
23
27
  end
24
28
  end
@@ -42,8 +42,12 @@ module LanguageServer
42
42
 
43
43
  attr_reader :attributes
44
44
 
45
+ def to_hash
46
+ attributes
47
+ end
48
+
45
49
  def to_json(*args)
46
- attributes.to_json(*args)
50
+ to_hash.to_json(*args)
47
51
  end
48
52
  end
49
53
  end
@@ -17,8 +17,12 @@ module LanguageServer
17
17
 
18
18
  attr_reader :attributes
19
19
 
20
+ def to_hash
21
+ attributes
22
+ end
23
+
20
24
  def to_json(*args)
21
- attributes.to_json(*args)
25
+ to_hash.to_json(*args)
22
26
  end
23
27
  end
24
28
  end
@@ -40,8 +40,12 @@ module LanguageServer
40
40
 
41
41
  attr_reader :attributes
42
42
 
43
+ def to_hash
44
+ attributes
45
+ end
46
+
43
47
  def to_json(*args)
44
- attributes.to_json(*args)
48
+ to_hash.to_json(*args)
45
49
  end
46
50
  end
47
51
  end
@@ -38,8 +38,12 @@ module LanguageServer
38
38
 
39
39
  attr_reader :attributes
40
40
 
41
+ def to_hash
42
+ attributes
43
+ end
44
+
41
45
  def to_json(*args)
42
- attributes.to_json(*args)
46
+ to_hash.to_json(*args)
43
47
  end
44
48
  end
45
49
  end
@@ -39,8 +39,12 @@ module LanguageServer
39
39
 
40
40
  attr_reader :attributes
41
41
 
42
+ def to_hash
43
+ attributes
44
+ end
45
+
42
46
  def to_json(*args)
43
- attributes.to_json(*args)
47
+ to_hash.to_json(*args)
44
48
  end
45
49
  end
46
50
  end
@@ -39,8 +39,12 @@ module LanguageServer
39
39
 
40
40
  attr_reader :attributes
41
41
 
42
+ def to_hash
43
+ attributes
44
+ end
45
+
42
46
  def to_json(*args)
43
- attributes.to_json(*args)
47
+ to_hash.to_json(*args)
44
48
  end
45
49
  end
46
50
  end
@@ -23,8 +23,12 @@ module LanguageServer
23
23
 
24
24
  attr_reader :attributes
25
25
 
26
+ def to_hash
27
+ attributes
28
+ end
29
+
26
30
  def to_json(*args)
27
- attributes.to_json(*args)
31
+ to_hash.to_json(*args)
28
32
  end
29
33
  end
30
34
  end
@@ -174,8 +174,12 @@ module LanguageServer
174
174
 
175
175
  attr_reader :attributes
176
176
 
177
+ def to_hash
178
+ attributes
179
+ end
180
+
177
181
  def to_json(*args)
178
- attributes.to_json(*args)
182
+ to_hash.to_json(*args)
179
183
  end
180
184
  end
181
185
  end
@@ -29,8 +29,12 @@ module LanguageServer
29
29
 
30
30
  attr_reader :attributes
31
31
 
32
+ def to_hash
33
+ attributes
34
+ end
35
+
32
36
  def to_json(*args)
33
- attributes.to_json(*args)
37
+ to_hash.to_json(*args)
34
38
  end
35
39
  end
36
40
  end
@@ -38,8 +38,12 @@ module LanguageServer
38
38
 
39
39
  attr_reader :attributes
40
40
 
41
+ def to_hash
42
+ attributes
43
+ end
44
+
41
45
  def to_json(*args)
42
- attributes.to_json(*args)
46
+ to_hash.to_json(*args)
43
47
  end
44
48
  end
45
49
  end
@@ -55,8 +55,12 @@ module LanguageServer
55
55
 
56
56
  attr_reader :attributes
57
57
 
58
+ def to_hash
59
+ attributes
60
+ end
61
+
58
62
  def to_json(*args)
59
- attributes.to_json(*args)
63
+ to_hash.to_json(*args)
60
64
  end
61
65
  end
62
66
  end
@@ -24,8 +24,12 @@ module LanguageServer
24
24
 
25
25
  attr_reader :attributes
26
26
 
27
+ def to_hash
28
+ attributes
29
+ end
30
+
27
31
  def to_json(*args)
28
- attributes.to_json(*args)
32
+ to_hash.to_json(*args)
29
33
  end
30
34
  end
31
35
  end
@@ -21,8 +21,12 @@ module LanguageServer
21
21
 
22
22
  attr_reader :attributes
23
23
 
24
+ def to_hash
25
+ attributes
26
+ end
27
+
24
28
  def to_json(*args)
25
- attributes.to_json(*args)
29
+ to_hash.to_json(*args)
26
30
  end
27
31
  end
28
32
  end
@@ -45,8 +45,12 @@ module LanguageServer
45
45
 
46
46
  attr_reader :attributes
47
47
 
48
+ def to_hash
49
+ attributes
50
+ end
51
+
48
52
  def to_json(*args)
49
- attributes.to_json(*args)
53
+ to_hash.to_json(*args)
50
54
  end
51
55
  end
52
56
  end
@@ -51,8 +51,12 @@ module LanguageServer
51
51
 
52
52
  attr_reader :attributes
53
53
 
54
+ def to_hash
55
+ attributes
56
+ end
57
+
54
58
  def to_json(*args)
55
- attributes.to_json(*args)
59
+ to_hash.to_json(*args)
56
60
  end
57
61
  end
58
62
  end
@@ -24,8 +24,12 @@ module LanguageServer
24
24
 
25
25
  attr_reader :attributes
26
26
 
27
+ def to_hash
28
+ attributes
29
+ end
30
+
27
31
  def to_json(*args)
28
- attributes.to_json(*args)
32
+ to_hash.to_json(*args)
29
33
  end
30
34
  end
31
35
  end
@@ -146,8 +146,12 @@ module LanguageServer
146
146
 
147
147
  attr_reader :attributes
148
148
 
149
+ def to_hash
150
+ attributes
151
+ end
152
+
149
153
  def to_json(*args)
150
- attributes.to_json(*args)
154
+ to_hash.to_json(*args)
151
155
  end
152
156
  end
153
157
  end
@@ -42,8 +42,12 @@ module LanguageServer
42
42
 
43
43
  attr_reader :attributes
44
44
 
45
+ def to_hash
46
+ attributes
47
+ end
48
+
45
49
  def to_json(*args)
46
- attributes.to_json(*args)
50
+ to_hash.to_json(*args)
47
51
  end
48
52
  end
49
53
  end
@@ -29,8 +29,12 @@ module LanguageServer
29
29
 
30
30
  attr_reader :attributes
31
31
 
32
+ def to_hash
33
+ attributes
34
+ end
35
+
32
36
  def to_json(*args)
33
- attributes.to_json(*args)
37
+ to_hash.to_json(*args)
34
38
  end
35
39
  end
36
40
  end
@@ -20,8 +20,12 @@ module LanguageServer
20
20
 
21
21
  attr_reader :attributes
22
22
 
23
+ def to_hash
24
+ attributes
25
+ end
26
+
23
27
  def to_json(*args)
24
- attributes.to_json(*args)
28
+ to_hash.to_json(*args)
25
29
  end
26
30
  end
27
31
  end
@@ -48,8 +48,12 @@ module LanguageServer
48
48
 
49
49
  attr_reader :attributes
50
50
 
51
+ def to_hash
52
+ attributes
53
+ end
54
+
51
55
  def to_json(*args)
52
- attributes.to_json(*args)
56
+ to_hash.to_json(*args)
53
57
  end
54
58
  end
55
59
  end
@@ -29,8 +29,12 @@ module LanguageServer
29
29
 
30
30
  attr_reader :attributes
31
31
 
32
+ def to_hash
33
+ attributes
34
+ end
35
+
32
36
  def to_json(*args)
33
- attributes.to_json(*args)
37
+ to_hash.to_json(*args)
34
38
  end
35
39
  end
36
40
  end
@@ -21,8 +21,12 @@ module LanguageServer
21
21
 
22
22
  attr_reader :attributes
23
23
 
24
+ def to_hash
25
+ attributes
26
+ end
27
+
24
28
  def to_json(*args)
25
- attributes.to_json(*args)
29
+ to_hash.to_json(*args)
26
30
  end
27
31
  end
28
32
  end
@@ -20,8 +20,12 @@ module LanguageServer
20
20
 
21
21
  attr_reader :attributes
22
22
 
23
+ def to_hash
24
+ attributes
25
+ end
26
+
23
27
  def to_json(*args)
24
- attributes.to_json(*args)
28
+ to_hash.to_json(*args)
25
29
  end
26
30
  end
27
31
  end
@@ -57,8 +57,12 @@ module LanguageServer
57
57
 
58
58
  attr_reader :attributes
59
59
 
60
+ def to_hash
61
+ attributes
62
+ end
63
+
60
64
  def to_json(*args)
61
- attributes.to_json(*args)
65
+ to_hash.to_json(*args)
62
66
  end
63
67
  end
64
68
  end
@@ -31,8 +31,12 @@ module LanguageServer
31
31
 
32
32
  attr_reader :attributes
33
33
 
34
+ def to_hash
35
+ attributes
36
+ end
37
+
34
38
  def to_json(*args)
35
- attributes.to_json(*args)
39
+ to_hash.to_json(*args)
36
40
  end
37
41
  end
38
42
  end
@@ -33,8 +33,12 @@ module LanguageServer
33
33
 
34
34
  attr_reader :attributes
35
35
 
36
+ def to_hash
37
+ attributes
38
+ end
39
+
36
40
  def to_json(*args)
37
- attributes.to_json(*args)
41
+ to_hash.to_json(*args)
38
42
  end
39
43
  end
40
44
  end
@@ -17,8 +17,12 @@ module LanguageServer
17
17
 
18
18
  attr_reader :attributes
19
19
 
20
+ def to_hash
21
+ attributes
22
+ end
23
+
20
24
  def to_json(*args)
21
- attributes.to_json(*args)
25
+ to_hash.to_json(*args)
22
26
  end
23
27
  end
24
28
  end
@@ -20,8 +20,12 @@ module LanguageServer
20
20
 
21
21
  attr_reader :attributes
22
22
 
23
+ def to_hash
24
+ attributes
25
+ end
26
+
23
27
  def to_json(*args)
24
- attributes.to_json(*args)
28
+ to_hash.to_json(*args)
25
29
  end
26
30
  end
27
31
  end
@@ -32,8 +32,12 @@ module LanguageServer
32
32
 
33
33
  attr_reader :attributes
34
34
 
35
+ def to_hash
36
+ attributes
37
+ end
38
+
35
39
  def to_json(*args)
36
- attributes.to_json(*args)
40
+ to_hash.to_json(*args)
37
41
  end
38
42
  end
39
43
  end
@@ -69,8 +69,12 @@ module LanguageServer
69
69
 
70
70
  attr_reader :attributes
71
71
 
72
+ def to_hash
73
+ attributes
74
+ end
75
+
72
76
  def to_json(*args)
73
- attributes.to_json(*args)
77
+ to_hash.to_json(*args)
74
78
  end
75
79
  end
76
80
  end