Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Refactor tasks.depends completion contributor #125

Merged
merged 4 commits into from
Jan 5, 2025

Conversation

134130
Copy link
Owner

@134130 134130 commented Jan 4, 2025

WIP

@134130 134130 self-assigned this Jan 4, 2025
@134130 134130 force-pushed the cooper/refactor-completion-contributor branch from 6a88e1b to 5cb3be6 Compare January 4, 2025 21:13
Comment on lines 22 to 30
// [tasks]
// <task-name> = { ... }
header.isTaskListHeader -> {
table.entries
.asSequence()
.filter { (it.value as? TomlInlineTable) != null }
.mapNotNull { it.key.segments.singleOrNull() }
.filter { it.name !in explicitTasks }
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drop

Comment on lines 55 to 56
val TomlTableHeader.isTaskListHeader: Boolean
get() = key?.segments?.lastOrNull()?.name == "tasks"
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

drop

@134130 134130 marked this pull request as ready for review January 5, 2025 08:30
@134130 134130 merged commit 6dd9615 into main Jan 5, 2025
1 check failed
@134130 134130 deleted the cooper/refactor-completion-contributor branch January 5, 2025 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant