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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/standard/lsp/routes.rb +6 -0
- data/lib/standard/lsp/server.rb +3 -4
- data/lib/standard/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13d481f6982b619853ac364ffa223ddb6c010ea68cd57248c759786119f991a7
|
4
|
+
data.tar.gz: 3ee49b870ff3d1ffe12bca06c1d0c80ec41e815fe056f476b91f2bb766293196
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1e0ad0ae158c7659b253f1062693f82cd1691babf12e65237521d005f9c4ce148b53e2905dfa1d1029082133e4852ef0f8c9a46e6917d6860342cf602c0fc64
|
7
|
+
data.tar.gz: 0d4ad3d30a9652e3536129f0f4733e5b7efb8ccefb699333e83f18a47e4259c2917b7f4507806aa79f4de15b0e7a73f5cf4961fafe86be88cb6c3c97a00a2d6f
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/standard/lsp/routes.rb
CHANGED
@@ -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)
|
data/lib/standard/lsp/server.rb
CHANGED
@@ -23,10 +23,9 @@ module Standard
|
|
23
23
|
|
24
24
|
def start
|
25
25
|
@reader.read do |request|
|
26
|
-
|
27
|
-
|
28
|
-
|
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)
|
data/lib/standard/version.rb
CHANGED