lsp.txt 1.0 KB

12345678910111213141516171819
  1. Interact with Language Server Protocol (LSP) servers to get code intelligence features.
  2. Supported operations:
  3. - goToDefinition: Find where a symbol is defined
  4. - findReferences: Find all references to a symbol
  5. - hover: Get hover information (documentation, type info) for a symbol
  6. - documentSymbol: Get all symbols (functions, classes, variables) in a document
  7. - workspaceSymbol: Search for symbols across the entire workspace
  8. - goToImplementation: Find implementations of an interface or abstract method
  9. - prepareCallHierarchy: Get call hierarchy item at a position (functions/methods)
  10. - incomingCalls: Find all functions/methods that call the function at a position
  11. - outgoingCalls: Find all functions/methods called by the function at a position
  12. All operations require:
  13. - filePath: The file to operate on
  14. - line: The line number (1-based, as shown in editors)
  15. - character: The character offset (1-based, as shown in editors)
  16. Note: LSP servers must be configured for the file type. If no server is available, an error will be returned.