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

update format ranges API proposal based on feedback #179166

Merged
merged 1 commit into from
Apr 4, 2023
Merged

Conversation

jrieken
Copy link
Member

@jrieken jrieken commented Apr 4, 2023

assertType(typeof this._provider.provideDocumentRangesFormattingEdits === 'function', 'INVALID invocation of `provideDocumentRangesFormattingEdits`');

const document = this._documents.getDocument(resource);
const _ranges = <Range[]>ranges.map(typeConvert.Range.to);
Copy link
Member

Choose a reason for hiding this comment

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

_ intentional?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, the argument is already called ranges and its being converted to API ranges

@jrieken jrieken merged commit ab6087f into main Apr 4, 2023
@jrieken jrieken deleted the joh/common-crawdad branch April 4, 2023 17:19
@github-actions github-actions bot locked and limited conversation to collaborators May 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants