(
server: LspServerDefinition,
context: LspRuntimeContext = {},
)
| 77 | } |
| 78 | |
| 79 | function withDerivedContext( |
| 80 | server: LspServerDefinition, |
| 81 | context: LspRuntimeContext = {}, |
| 82 | ): LspRuntimeContext { |
| 83 | return { |
| 84 | ...context, |
| 85 | serverId: context.serverId || server.id, |
| 86 | workspaceKind: context.workspaceKind || inferWorkspaceKind(context), |
| 87 | }; |
| 88 | } |
| 89 | |
| 90 | export function registerRuntimeProvider( |
| 91 | provider: LspRuntimeProvider, |
no test coverage detected