move_function
Relocate a function from one file to another using Language Server Protocol refactoring to organize code structure and improve maintainability.
Instructions
Move a function to a different file using LSP refactoring
Input Schema
Name | Required | Description | Default |
---|---|---|---|
character | No | Character position where the function starts | |
functionName | Yes | Name of the function to move | |
language | No | Programming language | typescript |
line | Yes | Line number where the function is located | |
sourceFile | Yes | Source file containing the function | |
targetFile | Yes | Target file to move the function to |