( operation: string, )
| 199 | * Type guard to check if an operation is a valid LSP operation |
| 200 | */ |
| 201 | export function isValidLSPOperation( |
| 202 | operation: string, |
| 203 | ): operation is LSPToolInput['operation'] { |
| 204 | return [ |
| 205 | 'goToDefinition', |
| 206 | 'findReferences', |
| 207 | 'hover', |
| 208 | 'documentSymbol', |
| 209 | 'workspaceSymbol', |
| 210 | 'goToImplementation', |
| 211 | 'prepareCallHierarchy', |
| 212 | 'incomingCalls', |
| 213 | 'outgoingCalls', |
| 214 | ].includes(operation) |
| 215 | } |
| 216 |
nothing calls this directly
no outgoing calls
no test coverage detected