Skip to content

(4) Wire up the production SourceHandler in the LSP#1301

Open
DavisVaughan wants to merge 3 commits into
feature/sources-3-oak-srcreffrom
feature/sources-4-ark-handler
Open

(4) Wire up the production SourceHandler in the LSP#1301
DavisVaughan wants to merge 3 commits into
feature/sources-3-oak-srcreffrom
feature/sources-4-ark-handler

Conversation

@DavisVaughan

Copy link
Copy Markdown
Contributor

Part of #1234
Branched from #1300

This PR is most of the point of this series

The main point is that the source downloading is still off by default in release builds, but is on in debug builds (including unit and integration tests).

@DavisVaughan DavisVaughan requested a review from lionel- June 29, 2026 13:43

@lionel- lionel- left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎉

Comment on lines +614 to +617
if !cfg!(debug_assertions) {
// TODO!: Remove this to activate in release builds as well.
// Currently only active in debug builds (including unit and integration tests).
return None;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since we're now at the start of the release cycle I think we can remove this, so that daily build users get exposed to this new feature?

Comment on lines +67 to +69
.get_r(version)
.or_else(|| self.source.insert_r(version))
.map(|root| SourceResponse::Success(r_dir_for_base(&root, name)))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nicely ergonomic

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.

2 participants