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

Enums and Settings #29

Merged
merged 4 commits into from
Oct 1, 2024
Merged

Enums and Settings #29

merged 4 commits into from
Oct 1, 2024

Conversation

h0tk3y
Copy link
Member

@h0tk3y h0tk3y commented Sep 30, 2024

  • Update Gradle dependencies
  • Add the missing bits to view the enums in DCL
  • Add a sketchy implementation of viewing settings.gradle.dcl as a document

@h0tk3y h0tk3y requested a review from eskatos September 30, 2024 19:58
@h0tk3y h0tk3y self-assigned this Sep 30, 2024
Comment on lines 147 to 148
if (softwareTypeNode == null) {
Text("No software type")
SettingsModelContent(highlightedSourceRangeByFileId, selectedDocumentResult)
Copy link
Member

Choose a reason for hiding this comment

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

❓ Wouldn't softwareTypeNode be null also for an empty build.gradle.dcl file?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, you're right.

It would make some sense to show the top level model for empty projects, too, as that would list the available software types, but that would not be so pretty (it would also say "Step: project" and for each software type, list its top level model's properties). Let's bring back the stub and maybe improve the empty project view at some point later.

I've fixed it in 23d946a (#29)

@h0tk3y h0tk3y merged commit 16495d7 into main Oct 1, 2024
7 checks passed
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