ruby-lsp 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +21 -2
- data/VERSION +1 -1
- data/lib/ruby_lsp/document.rb +12 -40
- data/lib/ruby_lsp/handler.rb +2 -2
- data/lib/ruby_lsp/requests/base_request.rb +35 -20
- data/lib/ruby_lsp/requests/code_actions.rb +1 -1
- data/lib/ruby_lsp/requests/diagnostics.rb +1 -8
- data/lib/ruby_lsp/requests/document_highlight.rb +13 -9
- data/lib/ruby_lsp/requests/document_link.rb +30 -25
- data/lib/ruby_lsp/requests/document_symbol.rb +43 -83
- data/lib/ruby_lsp/requests/folding_ranges.rb +58 -38
- data/lib/ruby_lsp/requests/formatting.rb +2 -0
- data/lib/ruby_lsp/requests/hover.rb +15 -6
- data/lib/ruby_lsp/requests/on_type_formatting.rb +16 -19
- data/lib/ruby_lsp/requests/selection_ranges.rb +40 -38
- data/lib/ruby_lsp/requests/semantic_highlighting.rb +62 -78
- data/lib/ruby_lsp/requests/support/highlight_target.rb +8 -9
- data/lib/ruby_lsp/requests/support/rails_document_client.rb +13 -6
- data/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb +15 -10
- data/lib/ruby_lsp/requests/support/rubocop_diagnostics_runner.rb +1 -1
- data/lib/ruby_lsp/requests/support/rubocop_formatting_runner.rb +1 -1
- data/lib/ruby_lsp/requests/support/rubocop_runner.rb +9 -6
- data/lib/ruby_lsp/requests/support/source_uri.rb +10 -7
- metadata +6 -6
@@ -25,12 +25,15 @@ module RubyLsp
|
|
25
25
|
sig { returns(T::Array[RuboCop::Cop::Offense]) }
|
26
26
|
attr_reader :offenses
|
27
27
|
|
28
|
-
DEFAULT_ARGS = T.let(
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
28
|
+
DEFAULT_ARGS = T.let(
|
29
|
+
[
|
30
|
+
"--stderr", # Print any output to stderr so that our stdout does not get polluted
|
31
|
+
"--force-exclusion",
|
32
|
+
"--format",
|
33
|
+
"RuboCop::Formatter::BaseFormatter", # Suppress any output by using the base formatter
|
34
|
+
].freeze,
|
35
|
+
T::Array[String],
|
36
|
+
)
|
34
37
|
|
35
38
|
sig { params(args: String).void }
|
36
39
|
def initialize(*args)
|
@@ -8,13 +8,16 @@ module URI
|
|
8
8
|
class Source < URI::File
|
9
9
|
extend T::Sig
|
10
10
|
|
11
|
-
COMPONENT = T.let(
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
11
|
+
COMPONENT = T.let(
|
12
|
+
[
|
13
|
+
:scheme,
|
14
|
+
:gem_name,
|
15
|
+
:gem_version,
|
16
|
+
:path,
|
17
|
+
:line_number,
|
18
|
+
].freeze,
|
19
|
+
T::Array[Symbol],
|
20
|
+
)
|
18
21
|
|
19
22
|
T.unsafe(self).alias_method(:gem_name, :host)
|
20
23
|
T.unsafe(self).alias_method(:line_number, :fragment)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-lsp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: language_server-protocol
|
@@ -44,20 +44,20 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 5.0.0
|
48
48
|
- - "<"
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
50
|
+
version: '6'
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
55
|
- - ">="
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
57
|
+
version: 5.0.0
|
58
58
|
- - "<"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
60
|
+
version: '6'
|
61
61
|
description: An opinionated language server for Ruby
|
62
62
|
email:
|
63
63
|
- ruby@shopify.com
|