Skip to content
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

Tighten Phoenix code completion scope #1590

Open
cartermak opened this issue Jan 6, 2025 · 0 comments
Open

Tighten Phoenix code completion scope #1590

cartermak opened this issue Jan 6, 2025 · 0 comments
Labels
feature New feature or request

Comments

@cartermak
Copy link
Member

Checked for duplicates

No - I haven't checked

Alternatives considered

No - I haven't considered

Related problems

The Phoenix code completion options sometimes include options that don't make sense in the current context.

For example, when writing a directive at the beginning of a sequence, I would expect starting with @ to limit my code completion options to only directives, but I'm still offered command stems that include whatever I've typed after @. This means that, when filling out @IMMEDIATE, I also get code completion offered for flight software command stems that include "IMMEDIATE".

image

If I type "IMMEDIATE" entirely, the directive disappears from the code completion list. This means that, when I hit "Enter", I end up selecting the first code completion option, which has now become the first flight software command stem to include "IMMEDIATE".

image

Describe the feature request

The code completion would ideally be better scoped to the current context. It already does this in some ways (e.g., when I have the @HARDWARE directive and start typing on a new line, I get hardware command stems), but there are a lot of scenarios where the code completion offers inappropriate suggestions based on the context.

@cartermak cartermak added the feature New feature or request label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant