(&self)
| 48 | } |
| 49 | |
| 50 | fn parameters(&self) -> serde_json::Value { |
| 51 | serde_json::json!({ |
| 52 | "type": "object", |
| 53 | "properties": { |
| 54 | "operation": { |
| 55 | "type": "string", |
| 56 | "enum": ["goToDefinition", "findReferences", "hover", "documentSymbol", "workspaceSymbol", "goToImplementation", "typeDefinition", "rename", "diagnostics", "prepareCallHierarchy", "incomingCalls", "outgoingCalls"], |
| 57 | "description": "The LSP operation to perform" |
| 58 | }, |
| 59 | "filePath": { |
| 60 | "type": "string", |
| 61 | "description": "The absolute or relative path to the file" |
| 62 | }, |
| 63 | "line": { |
| 64 | "type": "integer", |
| 65 | "minimum": 1, |
| 66 | "description": "The line number (1-based, as shown in editors)" |
| 67 | }, |
| 68 | "character": { |
| 69 | "type": "integer", |
| 70 | "minimum": 1, |
| 71 | "description": "The character offset (1-based, as shown in editors)" |
| 72 | }, |
| 73 | "query": { |
| 74 | "type": "string", |
| 75 | "description": "Query string for workspaceSymbol operation" |
| 76 | }, |
| 77 | "newName": { |
| 78 | "type": "string", |
| 79 | "description": "New name for rename operation" |
| 80 | } |
| 81 | }, |
| 82 | "required": ["operation", "filePath"] |
| 83 | }) |
| 84 | } |
| 85 | |
| 86 | async fn execute( |
| 87 | &self, |
nothing calls this directly
no outgoing calls
no test coverage detected