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

[Editor] Autocomplete does not insert a semicolon #246

Open
Mitcheljager opened this issue Feb 4, 2023 · 0 comments
Open

[Editor] Autocomplete does not insert a semicolon #246

Mitcheljager opened this issue Feb 4, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Mitcheljager
Copy link
Owner

When autocompleting something no semicolon is inserted, requiring to type it yourself. In cases where the results go offscreen (for example using Create HUD Text it can be easy to miss. The editor will tell you the semicolon is missing, but it's still easy to ignore. It would be nice if it inserted it automatically.

One difficulty here is that it doesn't need to insert semicolons if the when autocompleting something nested. One solution could be to check if it's inside of brackets ([,(,),],{,}), or perhaps doing it just for actions and not for values might be good enough?

@Mitcheljager Mitcheljager added the enhancement New feature or request label Feb 4, 2023
Loottoo added a commit to Loottoo/workshop.codes that referenced this issue Feb 20, 2024
…ocomplete

The default values inserted when using autocomplete and parameter objects were not correct. for example, when you expect to get the number 0 you would instead get the string "Number".
i changed the code to handle the name and default separately before adding the newlines which did the trick.

Also added semicolons to autocomplete according to issue Mitcheljager#246
The semicolons are inserted only when autocompleting actions. having it add semicolons for other type of values could probably get annoying
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