()
| 238 | } |
| 239 | |
| 240 | function getServerCapabilities(): Promise<ServerCapabilities | null> { |
| 241 | return jsonRequest<ServerCapabilities>('/capabilities').catch((err) => { |
| 242 | if (err instanceof HttpRequestError && err.status === 404) return null |
| 243 | throw err |
| 244 | }) |
| 245 | } |
| 246 | |
| 247 | function getServerSession(): Promise<ServerSessionStatus> { |
| 248 | return jsonRequest<ServerSessionStatus>('/session') |
nothing calls this directly
no test coverage detected