solargraph 0.23.0 → 0.23.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/solargraph +0 -0
- data/bin/solargraph-runtime +0 -0
- data/lib/solargraph.rb +0 -0
- data/lib/solargraph/api_map.rb +0 -0
- data/lib/solargraph/diagnostics/rubocop.rb +5 -5
- data/lib/solargraph/language_server/host.rb +1 -1
- data/lib/solargraph/language_server/message/initialize.rb +5 -3
- data/lib/solargraph/shell.rb +0 -0
- data/lib/solargraph/version.rb +1 -1
- data/lib/solargraph/yard_map.rb +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d187a64660b1ee9c012163ae7d46c76c4d693f7a5559024cfbfb7a2e935ff946
|
4
|
+
data.tar.gz: 0a399c708b6123c8a5ea4592b13ad9e93facb710a057328f7e909b2f5e36de1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f39a57b1a4c0e3606972305cfab712eab503c742743c0cf88b701db0c9aabd0f2c3cafa79ca29dad5f8661184698ab6818be48be9ee514a7d17fb48cba5e4af
|
7
|
+
data.tar.gz: 00db80b46d3183fc2e6390b37d3b2b1bf9c0673489d837e71295b87faab8b3075409cf43261420b94cad710cd35fa01e8498418c8e3d183d4c0fea917b146f0c
|
data/bin/solargraph
CHANGED
File without changes
|
data/bin/solargraph-runtime
CHANGED
File without changes
|
data/lib/solargraph.rb
CHANGED
File without changes
|
data/lib/solargraph/api_map.rb
CHANGED
File without changes
|
@@ -8,11 +8,11 @@ module Solargraph
|
|
8
8
|
class Rubocop < Base
|
9
9
|
# Conversion of RuboCop severity names to LSP constants
|
10
10
|
SEVERITIES = {
|
11
|
-
'refactor' =>
|
12
|
-
'convention' =>
|
13
|
-
'warning' =>
|
14
|
-
'error' =>
|
15
|
-
'fatal' =>
|
11
|
+
'refactor' => Severities::HINT,
|
12
|
+
'convention' => Severities::INFORMATION,
|
13
|
+
'warning' => Severities::WARNING,
|
14
|
+
'error' => Severities::ERROR,
|
15
|
+
'fatal' => Severities::ERROR
|
16
16
|
}
|
17
17
|
|
18
18
|
# The rubocop command
|
@@ -252,7 +252,7 @@ module Solargraph
|
|
252
252
|
def register_capabilities methods
|
253
253
|
@register_semaphore.synchronize do
|
254
254
|
send_request 'client/registerCapability', {
|
255
|
-
registrations: methods.
|
255
|
+
registrations: methods.select{|m| @dynamic_capabilities.include?(m) and !@registered_capabilities.include?(m)}.map { |m|
|
256
256
|
@registered_capabilities.push m
|
257
257
|
{
|
258
258
|
id: m,
|
@@ -101,11 +101,13 @@ module Solargraph
|
|
101
101
|
|
102
102
|
# @return [Boolean]
|
103
103
|
def dynamic_registration_for? section, capability
|
104
|
-
result = params['capabilities'] and
|
104
|
+
result = (params['capabilities'] and
|
105
105
|
params['capabilities'][section] and
|
106
106
|
params['capabilities'][section][capability] and
|
107
|
-
params['capabilities'][section][capability]['dynamicRegistration']
|
108
|
-
|
107
|
+
params['capabilities'][section][capability]['dynamicRegistration'])
|
108
|
+
# HACK: Capability for workspace/workspaceSymbol is workspace/symbol
|
109
|
+
adjcap = (section == 'workspace' and capability == 'symbol') ? 'workspaceSymbol' : capability
|
110
|
+
host.allow_registration("#{section}/#{adjcap}") if result
|
109
111
|
result
|
110
112
|
end
|
111
113
|
end
|
data/lib/solargraph/shell.rb
CHANGED
File without changes
|
data/lib/solargraph/version.rb
CHANGED
data/lib/solargraph/yard_map.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solargraph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.23.
|
4
|
+
version: 0.23.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fred Snyder
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parser
|
@@ -376,7 +376,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
376
376
|
version: '0'
|
377
377
|
requirements: []
|
378
378
|
rubyforge_project:
|
379
|
-
rubygems_version: 2.7.
|
379
|
+
rubygems_version: 2.7.7
|
380
380
|
signing_key:
|
381
381
|
specification_version: 4
|
382
382
|
summary: Solargraph for Ruby
|