ruby-lsp 0.3.2 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/ruby_lsp/document.rb +12 -4
- data/lib/ruby_lsp/handler.rb +4 -4
- data/lib/ruby_lsp/queue.rb +11 -5
- data/lib/ruby_lsp/requests/base_request.rb +49 -0
- data/lib/ruby_lsp/requests/code_actions.rb +1 -1
- data/lib/ruby_lsp/requests/diagnostics.rb +1 -1
- data/lib/ruby_lsp/requests/document_highlight.rb +15 -20
- data/lib/ruby_lsp/requests/document_link.rb +4 -4
- data/lib/ruby_lsp/requests/document_symbol.rb +21 -21
- data/lib/ruby_lsp/requests/folding_ranges.rb +8 -5
- data/lib/ruby_lsp/requests/formatting.rb +2 -2
- data/lib/ruby_lsp/requests/hover.rb +74 -0
- data/lib/ruby_lsp/requests/inlay_hints.rb +56 -0
- data/lib/ruby_lsp/requests/on_type_formatting.rb +6 -6
- data/lib/ruby_lsp/requests/selection_ranges.rb +4 -4
- data/lib/ruby_lsp/requests/semantic_highlighting.rb +20 -30
- data/lib/ruby_lsp/requests/support/rails_document_client.rb +114 -0
- data/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb +10 -10
- data/lib/ruby_lsp/requests/support/rubocop_runner.rb +6 -0
- data/lib/ruby_lsp/requests/support/semantic_token_encoder.rb +1 -1
- data/lib/ruby_lsp/requests/support/source_uri.rb +1 -1
- data/lib/ruby_lsp/requests/support/syntax_error_diagnostic.rb +1 -1
- data/lib/ruby_lsp/requests.rb +5 -0
- data/lib/ruby_lsp/server.rb +34 -10
- data/lib/ruby_lsp/store.rb +3 -6
- metadata +7 -5
- data/CHANGELOG.md +0 -75
data/CHANGELOG.md
DELETED
@@ -1,75 +0,0 @@
|
|
1
|
-
# Change Log
|
2
|
-
|
3
|
-
All notable changes to the "ruby-lsp" extension will be documented in this file.
|
4
|
-
|
5
|
-
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
|
6
|
-
|
7
|
-
## [Unreleased]
|
8
|
-
|
9
|
-
## [0.3.2]
|
10
|
-
|
11
|
-
- Make the diagnostic request parallel (https://github.com/Shopify/ruby-lsp/pull/293)
|
12
|
-
- Improve worker stability (https://github.com/Shopify/ruby-lsp/pull/295)
|
13
|
-
|
14
|
-
## [0.3.1]
|
15
|
-
|
16
|
-
- Resolve TODO for LSP v3.17 (https://github.com/Shopify/ruby-lsp/pull/268)
|
17
|
-
- Add dependency constraint for LSP v3.17 (https://github.com/Shopify/ruby-lsp/pull/269)
|
18
|
-
- Handle class/module declarations as a class token with declaration modifier (https://github.com/Shopify/ruby-lsp/pull/260)
|
19
|
-
- Handle required parameters in semantic highlighting (https://github.com/Shopify/ruby-lsp/pull/271)
|
20
|
-
- Add comment continuation via on type on_type_formatting (https://github.com/Shopify/ruby-lsp/pull/274)
|
21
|
-
- Make RuboCop runner use composition instead of inheritance (https://github.com/Shopify/ruby-lsp/pull/278)
|
22
|
-
- Protect worker against cancellation during popping (https://github.com/Shopify/ruby-lsp/pull/280)
|
23
|
-
- Handle formatting errors in on_error block (https://github.com/Shopify/ruby-lsp/pull/279)
|
24
|
-
- Fix on type formatting pipe completion for regular or expressions (https://github.com/Shopify/ruby-lsp/pull/282)
|
25
|
-
- Do not fail on LoadError (https://github.com/Shopify/ruby-lsp/pull/292)
|
26
|
-
|
27
|
-
## [0.3.0]
|
28
|
-
- Add on type formatting completions (https://github.com/Shopify/ruby-lsp/pull/253)
|
29
|
-
- Upgrade syntax_tree requirement to >= 3.4 (https://github.com/Shopify/ruby-lsp/pull/254)
|
30
|
-
- Show error message when there's a InfiniteCorrectionLoop exception (https://github.com/Shopify/ruby-lsp/pull/252)
|
31
|
-
- Add request cancellation (https://github.com/Shopify/ruby-lsp/pull/243)
|
32
|
-
|
33
|
-
## [0.2.0]
|
34
|
-
|
35
|
-
- Add semantic token for keyword and keyword rest params (https://github.com/Shopify/ruby-lsp/pull/142)
|
36
|
-
- Return error responses on exceptions (https://github.com/Shopify/ruby-lsp/pull/160)
|
37
|
-
- Sanitize home directory for telemetry (https://github.com/Shopify/ruby-lsp/pull/171)
|
38
|
-
- Avoid adding semantic tokens for special methods (https://github.com/Shopify/ruby-lsp/pull/162)
|
39
|
-
- Properly respect excluded files in RuboCop requests (https://github.com/Shopify/ruby-lsp/pull/173)
|
40
|
-
- Clear diagnostics when closing files (https://github.com/Shopify/ruby-lsp/pull/174)
|
41
|
-
- Avoid pushing ranges for single line partial ranges (https://github.com/Shopify/ruby-lsp/pull/185)
|
42
|
-
- Change folding ranges to include closing tokens (https://github.com/Shopify/ruby-lsp/pull/181)
|
43
|
-
- Remove RuboCop dependency and fallback to SyntaxTree formatting (https://github.com/Shopify/ruby-lsp/pull/184)
|
44
|
-
|
45
|
-
## [0.1.0]
|
46
|
-
|
47
|
-
- Implement token modifiers in SemanticTokenEncoder ([#112](https://github.com/Shopify/ruby-lsp/pull/112))
|
48
|
-
- Add semantic token for name in a method definition ([#133](https://github.com/Shopify/ruby-lsp/pull/133))
|
49
|
-
- Add semantic highighting for def endless and singleton method names ([#134](https://github.com/Shopify/ruby-lsp/pull/134))
|
50
|
-
- Add semantic token for keyword self ([#137](https://github.com/Shopify/ruby-lsp/pull/137))
|
51
|
-
- Add semantic token for constants ([#138](https://github.com/Shopify/ruby-lsp/pull/138))
|
52
|
-
- Improve error handling + fix formatting hanging issue ([#149](https://github.com/Shopify/ruby-lsp/pull/149))
|
53
|
-
- Set the minimum syntax_tree version to 2.4 ([#151](https://github.com/Shopify/ruby-lsp/pull/151))
|
54
|
-
|
55
|
-
## [0.0.4]
|
56
|
-
|
57
|
-
- Add basic document highlight (https://github.com/Shopify/ruby-lsp/pull/91)
|
58
|
-
- Add error telemetry (https://github.com/Shopify/ruby-lsp/pull/100)
|
59
|
-
- Always push telemetry events from the server (https://github.com/Shopify/ruby-lsp/pull/109)
|
60
|
-
- Fix multibyte character handling (https://github.com/Shopify/ruby-lsp/pull/122)
|
61
|
-
- Add Sorbet to the Ruby LSP (https://github.com/Shopify/ruby-lsp/pull/119, https://github.com/Shopify/ruby-lsp/pull/123)
|
62
|
-
|
63
|
-
## [0.0.3]
|
64
|
-
|
65
|
-
- Fixed code actions return hanging
|
66
|
-
- Moved to incremental text synchronization
|
67
|
-
- Added syntax error resiliency
|
68
|
-
|
69
|
-
## [0.0.2]
|
70
|
-
|
71
|
-
- Alpha release including
|
72
|
-
- RuboCop formatting, diagnostics and quick fixes
|
73
|
-
- Folding ranges
|
74
|
-
- Initial semantic highlighting
|
75
|
-
- Document symbols
|