Skip to content

fix: resolve #576 — Auto-completion of function block parameters on instance declaration#813

Open
andoan16 wants to merge 4 commits into
Autonomy-Logic:developmentfrom
andoan16:contribai/feat/implement-function-block-parameter-compl
Open

fix: resolve #576 — Auto-completion of function block parameters on instance declaration#813
andoan16 wants to merge 4 commits into
Autonomy-Logic:developmentfrom
andoan16:contribai/feat/implement-function-block-parameter-compl

Conversation

@andoan16

Copy link
Copy Markdown

Summary

fix: resolve #576 — Auto-completion of function block parameters on instance declaration

Problem

Severity: High | File: src/editor/completion-provider.ts

Add a completion provider that detects when a user is declaring a function block instance and provides parameter name completions. This should analyze the current context to determine if we're within a function block instantiation and suggest the appropriate parameter names.

Solution

Create a completion provider that:

Changes

  • src/editor/completion-provider.ts (new)
  • src/editor/editor-keybindings.ts (new)
  • src/parser/function-block-parser.ts (new)
  • src/editor/completion-widget.ts (new)

Testing

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

andoan16 added 4 commits May 31, 2026 09:36
…arameters on instance declaration

Fixes Autonomy-Logic#576

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

Fixes Autonomy-Logic#576

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

Fixes Autonomy-Logic#576

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

Fixes Autonomy-Logic#576

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 16 minutes and 39 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: 82884b7c-cfa3-4175-ae98-5c01ea87384c

📥 Commits

Reviewing files that changed from the base of the PR and between 456c08a and 0530c51.

📒 Files selected for processing (4)
  • src/editor/completion-provider.ts
  • src/editor/completion-widget.ts
  • src/editor/editor-keybindings.ts
  • src/parser/function-block-parser.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.

Auto-completion of function block parameters on instance declaration

1 participant