standard 1.24.1 → 1.24.2

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: 69342b56c2cb5d98f491d5c02cb7d787c667954fe4422654ddc434d0f34384b4
4
- data.tar.gz: 7945846b4e2a92e4543752ccd7034a8ce5e441d126f5604d72333cd3b2ec1966
3
+ metadata.gz: 13d481f6982b619853ac364ffa223ddb6c010ea68cd57248c759786119f991a7
4
+ data.tar.gz: 3ee49b870ff3d1ffe12bca06c1d0c80ec41e815fe056f476b91f2bb766293196
5
5
  SHA512:
6
- metadata.gz: 49e59dc51822c205910db0f1dc318e26012875ae727c00d1f358779b7292799e1d6ce4df36d321fd4a1633471afc86a218697bfd9dc7b00b73e62efc2bdbe7c8
7
- data.tar.gz: 29dfd9bb60acb15d038be99e338e6376894237e8fe1fac78915b9c8f76040a17e6b3fcd7f14a072b9c6e712f256e8ef51445099993604a57c3b14d9675bb4285
6
+ metadata.gz: e1e0ad0ae158c7659b253f1062693f82cd1691babf12e65237521d005f9c4ce148b53e2905dfa1d1029082133e4852ef0f8c9a46e6917d6860342cf602c0fc64
7
+ data.tar.gz: 0d4ad3d30a9652e3536129f0f4733e5b7efb8ccefb699333e83f18a47e4259c2917b7f4507806aa79f4de15b0e7a73f5cf4961fafe86be88cb6c3c97a00a2d6f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.24.2
4
+
5
+ * _Further_ _further_ improve `--lsp` server to always respond to requests
6
+
3
7
  ## 1.24.1
4
8
 
5
9
  * _Further_ improve `--lsp` server to better support commands used by VS Code
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- standard (1.24.1)
4
+ standard (1.24.2)
5
5
  language_server-protocol (~> 3.17.0.2)
6
6
  rubocop (= 1.44.1)
7
7
  rubocop-performance (= 1.15.2)
@@ -122,6 +122,12 @@ module Standard
122
122
  @logger.puts "Unsupported Method: #{method}"
123
123
  end
124
124
 
125
+ def handle_method_missing(request)
126
+ if request.key?(:id)
127
+ @writer.write({id: request[:id], result: nil})
128
+ end
129
+ end
130
+
125
131
  private
126
132
 
127
133
  def format_file(file_uri)
@@ -23,10 +23,9 @@ module Standard
23
23
 
24
24
  def start
25
25
  @reader.read do |request|
26
- next unless request.key?(:method) # ignore responses without methods
27
-
28
- method = request[:method]
29
- if (route = @routes.for(method))
26
+ if !request.key?(:method)
27
+ @routes.handle_method_missing(request)
28
+ elsif (route = @routes.for(request[:method]))
30
29
  route.call(request)
31
30
  else
32
31
  @routes.handle_unsupported_method(request)
@@ -1,3 +1,3 @@
1
1
  module Standard
2
- VERSION = Gem::Version.new("1.24.1")
2
+ VERSION = Gem::Version.new("1.24.2")
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.24.1
4
+ version: 1.24.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Searls