ruby-lsp 0.18.2 → 0.18.3
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/global_state.rb +1 -2
- data/lib/ruby_lsp/internal.rb +0 -1
- data/lib/ruby_lsp/requests/support/rubocop_formatter.rb +2 -0
- data/lib/ruby_lsp/type_inferrer.rb +2 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 399abe97e6c7a69238a01464936c1c8e9365462e142a1175fdccc37b8ee32882
|
4
|
+
data.tar.gz: 97fe2193dd4569a78e1e2a55911adfd833ba7c791955953385152d0fd930b685
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd5960a18a96e3f5c40aa768f47977097e74c68b470adba70903436ffeef6e4e0038e4ea6bcd8d19f9dc1d4b23e0c36b11d9f5b4fd61e75346dda28b98582620
|
7
|
+
data.tar.gz: d021ddfd3850a4a5378232ecc6788f5c335d56d6093211ce4fb968738ce38c8d53bddca6f0a820af13e7a240d7c157bf07263960593128d7e2c48e5a798b5cfc
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.18.
|
1
|
+
0.18.3
|
@@ -39,7 +39,7 @@ module RubyLsp
|
|
39
39
|
@supported_formatters = T.let({}, T::Hash[String, Requests::Support::Formatter])
|
40
40
|
@supports_watching_files = T.let(false, T::Boolean)
|
41
41
|
@experimental_features = T.let(false, T::Boolean)
|
42
|
-
@type_inferrer = T.let(TypeInferrer.new(@index
|
42
|
+
@type_inferrer = T.let(TypeInferrer.new(@index), TypeInferrer)
|
43
43
|
@addon_settings = T.let({}, T::Hash[String, T.untyped])
|
44
44
|
@supports_request_delegation = T.let(false, T::Boolean)
|
45
45
|
end
|
@@ -124,7 +124,6 @@ module RubyLsp
|
|
124
124
|
end
|
125
125
|
|
126
126
|
@experimental_features = options.dig(:initializationOptions, :experimentalFeaturesEnabled) || false
|
127
|
-
@type_inferrer.experimental_features = @experimental_features
|
128
127
|
|
129
128
|
addon_settings = options.dig(:initializationOptions, :addonSettings)
|
130
129
|
if addon_settings
|
data/lib/ruby_lsp/internal.rb
CHANGED
@@ -47,7 +47,6 @@ require "ruby_lsp/response_builders/semantic_highlighting"
|
|
47
47
|
require "ruby_lsp/response_builders/signature_help"
|
48
48
|
|
49
49
|
# Request support
|
50
|
-
require "ruby_lsp/requests/support/rubocop_diagnostic"
|
51
50
|
require "ruby_lsp/requests/support/selection_range"
|
52
51
|
require "ruby_lsp/requests/support/annotation"
|
53
52
|
require "ruby_lsp/requests/support/sorbet"
|
@@ -7,13 +7,9 @@ module RubyLsp
|
|
7
7
|
class TypeInferrer
|
8
8
|
extend T::Sig
|
9
9
|
|
10
|
-
sig { params(
|
11
|
-
|
12
|
-
|
13
|
-
sig { params(index: RubyIndexer::Index, experimental_features: T::Boolean).void }
|
14
|
-
def initialize(index, experimental_features = true)
|
10
|
+
sig { params(index: RubyIndexer::Index).void }
|
11
|
+
def initialize(index)
|
15
12
|
@index = index
|
16
|
-
@experimental_features = experimental_features
|
17
13
|
end
|
18
14
|
|
19
15
|
sig { params(node_context: NodeContext).returns(T.nilable(Type)) }
|
@@ -93,8 +89,6 @@ module RubyLsp
|
|
93
89
|
|
94
90
|
Type.new("#{parts.join("::")}::#{last}::<Class:#{last}>")
|
95
91
|
else
|
96
|
-
return unless @experimental_features
|
97
|
-
|
98
92
|
raw_receiver = node.receiver&.slice
|
99
93
|
|
100
94
|
if raw_receiver
|
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.18.
|
4
|
+
version: 0.18.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: language_server-protocol
|