(context: RuntimeHandlerContext)
| 471 | } |
| 472 | |
| 473 | private serverStatus(context: RuntimeHandlerContext): RuntimeInitializeResult & { connectionCount: number } { |
| 474 | return { |
| 475 | protocolVersion: this.protocolVersion, |
| 476 | serverName: this.serverName, |
| 477 | ...(this.serverVersion ? { serverVersion: this.serverVersion } : {}), |
| 478 | capabilities: this.capabilitiesFor(context.connection), |
| 479 | connectionCount: this.connections.size, |
| 480 | } |
| 481 | } |
| 482 | |
| 483 | private canInvoke(method: string, connection: RuntimeConnection): boolean { |
| 484 | if (!connection.permissions || connection.permissions.length === 0) return true |
no test coverage detected