ruby-lsp 0.14.2 → 0.14.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: 293c03761c9b7d497045546e3bf7ca88a08ed5556ad0ba52c205a9798e820ce5
4
- data.tar.gz: 38157f012f3f1dc944186ac1530dc660d8662cb59ca7b12ad3b117655e0c1709
3
+ metadata.gz: e762c728055d0a7ee471dd6455cb0b8ed5f1a2ed1137a71c70f4238e18d7b8bd
4
+ data.tar.gz: 61636e671131322ffd9792c1e23f70e54ebea9f9dd15401abac8ec0c91bf4131
5
5
  SHA512:
6
- metadata.gz: c4996e277088f015004df0f82e2cc47dc2f979f6658f9dfac19fe495c8c4deced3028b021e330ac0681dbfd79048e9033037c7ce93e6cc044c8ae6d91087e0df
7
- data.tar.gz: 67c5c31c97c279f192b0b3d6c729c97a19f7aac4581eca037c0e5355cc0f3d3ed69fb4007a5f32985e046980324575e2e35a92ce81e8078b41ee5b6db711ac88
6
+ metadata.gz: dd8712a89c31f1a43bed4744537a08997acf927e7dad6cd3e64aa31f8c2beb08bfdf2867b66a7c302cf11f7c803a52e2a4dfe46930bcb17f7f57c6cf196140ee
7
+ data.tar.gz: 7bd900943556a4e5e54d46894ca855740de8effb0f2675ec4b01efd9a08f3b2517a516e38ab99abf3266a3984dcbcc4ec5b2de5c976a0eabd08dfdd0ce38516f
data/README.md CHANGED
@@ -54,7 +54,7 @@ default gems, except for
54
54
  - Gems that only appear under the `:development` group
55
55
  - All Ruby files under `test/**/*.rb`
56
56
 
57
- By creating a `.index.yml` file, these configurations can be overridden and tuned.
57
+ By creating a `.index.yml` file, these configurations can be overridden and tuned. Note that indexing dependent behavior, such as definition, hover, completion or workspace symbol will be impacted by the configurations placed here.
58
58
 
59
59
  ```yaml
60
60
  # Exclude files based on a given pattern. Often used to exclude test files or fixtures
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.14.2
1
+ 0.14.3
data/exe/ruby-lsp CHANGED
@@ -94,13 +94,6 @@ if options[:debug]
94
94
  exit 1
95
95
  end
96
96
 
97
- sockets_dir = "/tmp/ruby-lsp-debug-sockets"
98
- Dir.mkdir(sockets_dir) unless Dir.exist?(sockets_dir)
99
- # ruby-debug-ENV["USER"] is an implicit naming pattern in ruby/debug
100
- # if it's not present, rdbg will not find the socket
101
- socket_identifier = "ruby-debug-#{ENV["USER"]}-#{File.basename(Dir.pwd)}.sock"
102
- ENV["RUBY_DEBUG_SOCK_PATH"] = "#{sockets_dir}/#{socket_identifier}"
103
-
104
97
  begin
105
98
  require "debug/open_nonstop"
106
99
  rescue LoadError
@@ -139,7 +139,7 @@ module RubyLsp
139
139
  Interface::CompletionItem.new(
140
140
  label: name,
141
141
  filter_text: name,
142
- text_edit: Interface::TextEdit.new(range: range_from_node(node), new_text: name),
142
+ text_edit: Interface::TextEdit.new(range: range_from_location(T.must(node.message_loc)), new_text: name),
143
143
  kind: Constant::CompletionItemKind::METHOD,
144
144
  label_details: Interface::CompletionItemLabelDetails.new(
145
145
  detail: "(#{entry.parameters.map(&:decorated_name).join(", ")})",
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.14.2
4
+ version: 0.14.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-02-22 00:00:00.000000000 Z
11
+ date: 2024-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: language_server-protocol