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

Fix closing brackets #5

Closed
olegklimov opened this issue Feb 8, 2024 · 3 comments
Closed

Fix closing brackets #5

olegklimov opened this issue Feb 8, 2024 · 3 comments

Comments

@olegklimov
Copy link
Contributor

It's important to delete spaces before asking the model, because there should be a way for the model to suggest code with less indent. Typical example of this:

int main()
{
    printf("Hello world!\n");
    |

Now the completion is "}", but it will not work unless there are no spaces on that line. With spaces, the model is constrained to " }".

@olegklimov
Copy link
Contributor Author

(a similar issue is smallcloudai/refact-vs-classic#9)

@olegklimov
Copy link
Contributor Author

No, it doesn't work. Grey text looks like this:

image

And after Tab it accepts it like this:

image

@hazratisulton
Copy link

Checked #16 - working.

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

2 participants