fix: resolve #576 — Auto-completion of function block parameters on instance declaration#813
Conversation
…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>
|
Warning Review limit reached
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 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 configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Summary
fix: resolve #576 — Auto-completion of function block parameters on instance declaration
Problem
Severity:
High| File:src/editor/completion-provider.tsAdd 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