applyCodeAction method

Future<TextEdit?> applyCodeAction({
  1. required String filePath,
  2. required CodeAction action,
})

Applies a code action edit to the document.

Returns the edited content or null if the action cannot be applied.

Implementation

Future<TextEdit?> applyCodeAction({
  required String filePath,
  required CodeAction action,
}) async {
  // For now, return null as edits require more complex AST manipulation
  // This will be enhanced in future iterations
  return null;
}