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

Add variable and type autocomplete #2497

Merged
merged 3 commits into from
Nov 27, 2022
Merged

Add variable and type autocomplete #2497

merged 3 commits into from
Nov 27, 2022

Conversation

Vurv78
Copy link
Contributor

@Vurv78 Vurv78 commented Nov 27, 2022

Now not just directive variables, but any local or global variables in your script will autocomplete. Additionally, types will autocomplete after a colon for function/event definitions, and after the function keyword.

This doesn't come with user defined function autocomplete, since I don't want to have the parser running all the time, bogging down your client. This just uses the tokenizer internally, since variables are uppercase, and because I rewrote it to be fast.

Since I made #2495, I'll consider it complete. Fixes #2495

2022-11-27.01-21-51.mp4

Now not just directive variables, but any local or global variables in your script will autocomplete. Additionally, types will autocomplete after a colon for function/event definitions, and after the `function` keyword.
Shouldn't be a part of this PR, and I don't want to potentially cause issues with the optimizer.
@Vurv78 Vurv78 merged commit bf945a6 into wiremod:master Nov 27, 2022
@Vurv78 Vurv78 deleted the more-ac branch November 27, 2022 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

More E2 Autocompletion
1 participant