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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d78954c10106529d35716e266769c1ddf6bf8235d7441c881aaa2f06cb757956
4
- data.tar.gz: 14a40cc3212ce2c90ad23f099b44b0a8aa75a0cf40445b6b2a9b74048cb18794
3
+ metadata.gz: 399abe97e6c7a69238a01464936c1c8e9365462e142a1175fdccc37b8ee32882
4
+ data.tar.gz: 97fe2193dd4569a78e1e2a55911adfd833ba7c791955953385152d0fd930b685
5
5
  SHA512:
6
- metadata.gz: 2320f897c2895afa3cd710c10f5bc5bf238c9a53eb39a38071887cd475198fd4c6f60020d71d62405579ff3ebe5ea0bd9b1d8e02599d5107b35ca6fe17789397
7
- data.tar.gz: 8e31ed714b473b46791dda5c3e83e68d4e0756dc2980f0e6c34b8652337278a928e104566be12a933ffae1525533b8935651c45580b07f95cab4ac732965a348
6
+ metadata.gz: dd5960a18a96e3f5c40aa768f47977097e74c68b470adba70903436ffeef6e4e0038e4ea6bcd8d19f9dc1d4b23e0c36b11d9f5b4fd61e75346dda28b98582620
7
+ data.tar.gz: d021ddfd3850a4a5378232ecc6788f5c335d56d6093211ce4fb968738ce38c8d53bddca6f0a820af13e7a240d7c157bf07263960593128d7e2c48e5a798b5cfc
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.18.2
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, @experimental_features), TypeInferrer)
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
@@ -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"
@@ -3,6 +3,8 @@
3
3
 
4
4
  return unless defined?(RubyLsp::Requests::Support::RuboCopRunner)
5
5
 
6
+ require "ruby_lsp/requests/support/rubocop_diagnostic"
7
+
6
8
  module RubyLsp
7
9
  module Requests
8
10
  module Support
@@ -7,13 +7,9 @@ module RubyLsp
7
7
  class TypeInferrer
8
8
  extend T::Sig
9
9
 
10
- sig { params(experimental_features: T::Boolean).returns(T::Boolean) }
11
- attr_writer :experimental_features
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.2
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-23 00:00:00.000000000 Z
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