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

Implement auto-completion with valid entries from solver errors #3

Open
FoamScience opened this issue Jan 2, 2022 · 0 comments
Open
Assignees
Labels
enhancement New feature or request

Comments

@FoamScience
Copy link
Owner

Valid entries returned in Fatal Error as completion candidates

  • Press "space/tab" after a keyword
  • The language server inserts a dummy value; runs the solver and collects "Valid entries/models"
  • Return valid entries as completion candidates

Additional context

  • As diagnostics coming from OpenFOAM errors are not document-wise, the code has to check the document URI and cursor position before providing any candidates
  • What to add as dummy value is tricky. Particularly, deciding when to add ";" will be problematic.
  • Including valid entries shipped in custom shared libraries ($FOAM_USER_LIBBIN) can also be considered
    • With (possibly) automatic adding of the correct library to controlDict
@FoamScience FoamScience added the enhancement New feature or request label Jan 2, 2022
@FoamScience FoamScience self-assigned this Jan 2, 2022
@FoamScience FoamScience changed the title Implement auto-completion with valid entries from solver erros Implement auto-completion with valid entries from solver errors Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant