Description
When there are syntax errors in the code, such as unclosed parentheses () or curly braces {}, some function names do not get auto-completed. This can be quite inconvenient during the coding process as it slows down the development workflow. It would be great if the auto-completion feature could still work properly even in the presence of such syntax errors or at least provide a warning or indication that the syntax error might be affecting the auto-completion.
Steps to Reproduce:
Start a mission where some functions are imported from other modules (e.g. consecutively from sound).
Start typing a function name in the code editor.
Introduce a syntax error by intentionally leaving a parenthesis or curly brace unclosed.
Observe that the function name auto-completion does not work.