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

Add settings.gradle.dcl code assistance #7

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

h0tk3y
Copy link
Member

@h0tk3y h0tk3y commented Nov 14, 2024

No description provided.

@h0tk3y h0tk3y requested a review from hegyibalint November 14, 2024 10:55
@h0tk3y h0tk3y self-assigned this Nov 14, 2024
* Copy and reuse utilities from `gradle-client` for merging
  analysis results from multiple interpretation sequence
  steps.

* Produce an approximate union schema for type lookup in
  `settings.gradle.dcl` where there is more than one schema
  from the multiple interpretation sequence steps.

* Track the analysis schemas along with the documents in the
  language server state.

* Use the schema's top-level receiver type for completion
  at the top-level when outside any matching element.

* Simplify the `DeclarativeResourcesModel`, as the schemas
  and files are actually tracked by the DCL analysis
  utilities.
@h0tk3y h0tk3y force-pushed the sigushkin/settings-gradle-dcl branch from ae3766b to 38739e3 Compare November 14, 2024 11:05
Copy link
Member

@hegyibalint hegyibalint left a comment

Choose a reason for hiding this comment

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

I see where you are going with this, and I'm happy for the model fetching simplification.

OTOH, I have this reservation against declarative, where... almost all of the code I'm seeing is considered magic, including the code added now. This is not a concern at the EAP stage, and I trust your code, but please keep this as a reminder that (at least I) have trouble understanding concepts below the surface of declarative gradle.

@h0tk3y h0tk3y merged commit d304792 into main Nov 14, 2024
5 checks passed
@h0tk3y h0tk3y deleted the sigushkin/settings-gradle-dcl branch November 14, 2024 18:07
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