(self, uri, options)
| 185 | self._notify_option_changed(uri, self.optionsForFile(uri)) |
| 186 | |
| 187 | def _notify_option_changed(self, uri, options): |
| 188 | # empty options is nouse and lsp will stop working.., at least there should has a infer flags.. |
| 189 | if options is None: |
| 190 | return |
| 191 | notification = { |
| 192 | "jsonrpc": "2.0", |
| 193 | "method": "build/sourceKitOptionsChanged", |
| 194 | "params": { |
| 195 | "uri": uri, |
| 196 | "updatedOptions": options, |
| 197 | }, |
| 198 | } |
| 199 | send(notification) |
| 200 | |
| 201 | def shutdown(self): |
| 202 | self.observed_thread = None # release to end in subthread |
no test coverage detected