Skip to content

fix(intellij): use transformed generator schema to match VSCode filte… #2539

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 4 commits into from
Jun 17, 2025

Conversation

MaxKless
Copy link
Collaborator

@MaxKless MaxKless commented May 31, 2025

Both editors now use the proper transformed generator schema to power the UI

Fixes #2517

🤖 Generated with Claude Code

Copy link

nx-cloud bot commented May 31, 2025

View your CI Pipeline Execution ↗ for commit d7debab.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e-ci,ty... ✅ Succeeded 23m 41s View ↗
nx-cloud record -- yarn nx sync:check ✅ Succeeded 3s View ↗
nx-cloud record -- ./gradlew :intellij:ktfmtCheck ✅ Succeeded 5s View ↗
nx-cloud record -- ./gradlew projectReportAll ✅ Succeeded 37s View ↗

☁️ Nx Cloud last updated this comment at 2025-06-17 10:20:55 UTC

@MaxKless
Copy link
Collaborator Author

MaxKless commented May 31, 2025

@claude the current implementations diverge, as far as I can tell. In the vscode implementation, we make the options request and then we make a followup nxls request. Do the same in the intellij implementation. Also adopt the graphite review comment

Copy link
Contributor

claude bot commented May 31, 2025

Claude finished @MaxKless's task —— View job


✅ Changes Complete

  • Read repository guidelines
  • Analyze VSCode implementation pattern
  • Review current IntelliJ implementation
  • Update IntelliJ to match VSCode's two-step approach
  • Address graphite review comment about fallback behavior
  • Commit changes

Changes Made

  1. Fixed fallback behavior in NxlsService.kt:121 - restored ?: generatorSchema fallback as suggested by graphite review
  2. Updated NxGenerateService.kt to follow VSCode pattern:
    • First call generatorOptions() to get raw options
    • Then call transformedGeneratorSchema() on the raw options
    • Use raw options as fallback if transformation fails
  3. Updated NxGenerateRunAnythingProvider.kt with same two-step pattern
  4. Added missing imports for NxGeneratorOptionsRequestOptions

Both IntelliJ implementations now match VSCode's approach: getGeneratorOptions()getTransformedGeneratorSchema(). This ensures both IDEs show identical filtered generator options.

Commit: 2bc0619

Note: Please run yarn nx format --fix and yarn nx ktfmtFormat intellij to apply formatting as specified in CLAUDE.md.

claude bot and others added 3 commits June 16, 2025 16:43
…ring

- Add NxTransformedGeneratorSchemaRequest support to IntelliJ
- Update NxGenerateService to use transformed schema instead of raw options
- Update NxGenerateRunAnythingProvider to use transformed schema
- Both IDEs now show identical filtered generator options
- Internal/deprecated options (buildable, compiler) are consistently filtered out
- Add regression test to verify schema transformation behavior

Fixes #2517

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: MaxKless <[email protected]>
- Implement two-step pattern: getGeneratorOptions() then getTransformedGeneratorSchema()
- Restore fallback behavior in transformedGeneratorSchema() as suggested by review
- Both IntelliJ implementations now match VSCode's approach for consistent filtering

Co-authored-by: MaxKless <[email protected]>
@MaxKless MaxKless force-pushed the claude/issue-2517-20250531_110746 branch from 2bc0619 to 3319de8 Compare June 16, 2025 15:19
@MaxKless MaxKless force-pushed the claude/issue-2517-20250531_110746 branch from 60bae06 to d7debab Compare June 17, 2025 08:45
@MaxKless MaxKless merged commit ae781e3 into master Jun 17, 2025
7 of 8 checks passed
@MaxKless MaxKless deleted the claude/issue-2517-20250531_110746 branch June 17, 2025 11:36
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.

Inconsistent options between IntelliJ and VSCode
2 participants