Skip to content

fix: resolve #631 — autocomplete for variables inside structs#811

Open
andoan16 wants to merge 3 commits into
Autonomy-Logic:developmentfrom
andoan16:contribai/feat/enhance-autocomplete-for-struct-variable
Open

fix: resolve #631 — autocomplete for variables inside structs#811
andoan16 wants to merge 3 commits into
Autonomy-Logic:developmentfrom
andoan16:contribai/feat/enhance-autocomplete-for-struct-variable

Conversation

@andoan16

Copy link
Copy Markdown

Summary

fix: resolve #631 — autocomplete for variables inside structs

Problem

Severity: High | File: src/renderer/components/editor/fbd/FBDEditor.tsx

The FBD editor needs to be modified to provide autocomplete suggestions for variables inside structs and properly color them. The autocomplete system currently only suggests top-level variables but doesn't traverse into struct members. The syntax highlighting also incorrectly marks struct member variables as orange instead of white.

Solution

Changes

  • src/renderer/components/editor/fbd/FBDEditor.tsx (new)
  • src/renderer/components/editor/autocomplete/AutocompleteProvider.ts (new)
  • src/renderer/components/editor/syntax/SyntaxHighlighter.ts (new)

Testing

  • Existing tests pass
  • Manual review completed
  • No new warnings/errors introduced

andoan16 added 3 commits May 31, 2026 09:34
…tructs

Fixes Autonomy-Logic#631

Signed-off-by: Ân Đoàn <33853760+andoan16@users.noreply.github.com>
…tructs

Fixes Autonomy-Logic#631

Signed-off-by: Ân Đoàn <33853760+andoan16@users.noreply.github.com>
…tructs

Fixes Autonomy-Logic#631

Signed-off-by: Ân Đoàn <33853760+andoan16@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented May 31, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@andoan16, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 19 minutes and 32 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 52e2dec7-aff7-489d-b879-82447e684d91

📥 Commits

Reviewing files that changed from the base of the PR and between 456c08a and 2668e66.

📒 Files selected for processing (3)
  • src/renderer/components/editor/autocomplete/AutocompleteProvider.ts
  • src/renderer/components/editor/fbd/FBDEditor.tsx
  • src/renderer/components/editor/syntax/SyntaxHighlighter.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

autocomplete for variables inside structs

1 participant