Skip to content

Conversation

AndreasArvidsson
Copy link
Member

@AndreasArvidsson AndreasArvidsson commented Jan 27, 2025

Fixes #807

Checklist

  • I have added tests
  • [/] I have updated the docs and cheatsheet
  • [/] I have not broken the cheatsheet

@AndreasArvidsson AndreasArvidsson requested a review from a team as a code owner January 27, 2025 14:05
/**
* Returns true if the hints belong to the every scope modifier.
*/
export function isHintsEveryScope(hints: ScopeIteratorRequirements): boolean {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
export function isHintsEveryScope(hints: ScopeIteratorRequirements): boolean {
export function isEveryScope(hints: ScopeIteratorRequirements): boolean {

Comment on lines 5 to 14
export function getCollectionItemRemovalRange(
isEveryScope: boolean,
editor: TextEditor,
contentRange: Range,
leadingDelimiterRange: Range | undefined,
trailingDelimiterRange: Range | undefined,
): Range | undefined {
// We have both leading and trailing delimiter ranges
// If the leading one is longer/more specific, prefer to use that for removal;
// otherwise use undefined to fallback to the default behavior (often trailing)
Copy link
Member

Choose a reason for hiding this comment

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

Can we make this a docstring comment instead?

…andlers/util/getCollectionItemRemovalRange.ts
…andlers/util/getCollectionItemRemovalRange.ts
…andlers/util/getCollectionItemRemovalRange.ts
…andlers/util/getCollectionItemRemovalRange.ts
@phillco phillco enabled auto-merge January 28, 2025 20:37
@phillco phillco added this pull request to the merge queue Jan 28, 2025
Merged via the queue into main with commit 33e5368 Jan 28, 2025
15 checks passed
@phillco phillco deleted the pythonArguments branch January 28, 2025 21:11
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.

Chuck every arg leaves trailing comma

2 participants