Skip to content

intellij-plugin: address automated review feedback#474

Merged
philmillman merged 2 commits intoextension/intellijfrom
copilot/sub-pr-473
Mar 23, 2026
Merged

intellij-plugin: address automated review feedback#474
philmillman merged 2 commits intoextension/intellijfrom
copilot/sub-pr-473

Conversation

Copy link
Contributor

Copilot AI commented Mar 23, 2026

Several correctness and hygiene issues identified in the initial IntelliJ plugin pass.

Kotlin fixes

  • Decorator filteringEnvSpecDiagnosticsCore now restricts decorator parsing to actual # @... comment lines via new getDecoratorCommentText / getDecoratorCommentRange helpers, filtering out @todo:-style labels and prose like @see. Filter regexes extracted as precompiled constants.
  • Paren tokens – Added PAREN_OPEN / PAREN_CLOSE to EnvSpecTokenTypes; EnvSpecLexer no longer reuses EQUALS for ( and ). Syntax highlighter updated accordingly.
  • Key/assignment patternsENV_ASSIGNMENT (inspection) and ENV_KEY_PATTERN (completion) now match export KEY=... and keys containing . / -:
    (?:export\s+)?([A-Za-z_][A-Za-z0-9_.-]*)\s*=
    
  • Completion gatingEnvSpecCompletionContributor.getDecoratorCommentPrefix now delegates to EnvSpecDiagnosticsCore.getDecoratorCommentText, eliminating the duplicate filter logic and ensuring parity with diagnostics.

TypeScript fixes

  • getDecoratorCommentText exported from diagnostics-core.ts; completion-core.ts drops its duplicate implementation and wraps it via getDecoratorCommentPrefix for API compatibility.

Housekeeping

  • .idea/ removed from version control; .idea/ and *.iml added to root .gitignore.
  • README troubleshooting note no longer incorrectly references "Gradle 8.x".

⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.

@changeset-bot
Copy link

changeset-bot bot commented Mar 23, 2026

⚠️ No Changeset found

Latest commit: dbb108d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

… patterns, .idea gitignore

Co-authored-by: philmillman <3722211+philmillman@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/45f827c0-165e-457c-83dc-538993ffa1bd
Copilot AI changed the title [WIP] Add initial JetBrains/IntelliJ plugin for @env-spec language intellij-plugin: address automated review feedback Mar 23, 2026
Copilot AI requested a review from philmillman March 23, 2026 20:50
@philmillman philmillman marked this pull request as ready for review March 23, 2026 20:53
@philmillman philmillman merged commit dc6aadd into extension/intellij Mar 23, 2026
13 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants