Function toCodeActionTriggerKind