Skip to content

Make DocumentManager.latestSnapshot throw if no snapshot exists for the URI #943

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

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Oct 27, 2023

This simplifies most calls that would log an error + return an empty response if no document was found.

@ahoppen
Copy link
Member Author

ahoppen commented Oct 27, 2023

@swift-ci Please test

… the URI

This simplifies most calls that would log an error + return an empty response if no document was found.
@ahoppen ahoppen force-pushed the ahoppen/latest-snapshot-throw branch from b320e7b to 96e0e48 Compare October 27, 2023 19:59
@ahoppen
Copy link
Member Author

ahoppen commented Oct 27, 2023

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Oct 27, 2023

@swift-ci Please test Windows

Copy link
Contributor

@bnbarham bnbarham left a comment

Choose a reason for hiding this comment

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

Ah, much nicer. Thanks!

@ahoppen ahoppen merged commit f4a07df into swiftlang:main Oct 30, 2023
@ahoppen ahoppen deleted the ahoppen/latest-snapshot-throw branch October 30, 2023 20:57
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.

3 participants