File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
lib/solargraph/language_server Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -67,11 +67,8 @@ def send host
67
67
68
68
message = build
69
69
70
- if created?
71
- host . send_notification '$/progress' , message
72
- else
73
- create ( host ) { host . send_notification '$/progress' , message }
74
- end
70
+ create ( host ) unless created?
71
+ host . send_notification '$/progress' , message
75
72
@status = FINISHED if kind == 'end'
76
73
end
77
74
@@ -86,10 +83,11 @@ def finished?
86
83
private
87
84
88
85
# @param host [Solargraph::LanguageServer::Host]
89
- def create host , &block
90
- return false if created?
86
+ # @return [void]
87
+ def create host
88
+ return if created?
91
89
92
- host . send_request 'window/workDoneProgress/create' , { token : uuid } , & block
90
+ host . send_request 'window/workDoneProgress/create' , { token : uuid }
93
91
@status = CREATED
94
92
end
95
93
You can’t perform that action at this time.
0 commit comments