MCPcopy Create free account
hub / github.com/codeaashu/claude-code / isValidLSPOperation

Function isValidLSPOperation

src/tools/LSPTool/schemas.ts:201–215  ·  view source on GitHub ↗
(
  operation: string,
)

Source from the content-addressed store, hash-verified

199 * Type guard to check if an operation is a valid LSP operation
200 */
201export 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected