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

Code Completion: Allow for suggestion of types and procedures in other packages #43

Open
obiwan87 opened this issue May 23, 2024 · 1 comment
Assignees

Comments

@obiwan87
Copy link
Owner

In large projects it is very useful to have completion of types, procedures and constants that are not in the same package as the file being edited.

Example:

packageB/fileB1.odin:

MyExternalStruct :: struct {}

packageA/fileA1.odin:

MyEx<request suggestions here, either implicitly by just typing or explicitly with ctrl+space>

Suggested types:

...
packageB.MyExternalStruct
...

Upon accepting the completion packageB is automatically imported (assuming it is not in the list of imports, yet)

@obiwan87 obiwan87 self-assigned this May 23, 2024
@obiwan87
Copy link
Owner Author

obiwan87 commented May 24, 2024

This is best released when Indices and Stub Indices are done as well. Searching for symbols across all visible files, without a word index, is very slow

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

No branches or pull requests

1 participant