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

snippet too invasive #121

Closed
f4n0 opened this issue Jun 6, 2019 · 5 comments
Closed

snippet too invasive #121

f4n0 opened this issue Jun 6, 2019 · 5 comments

Comments

@f4n0
Copy link

f4n0 commented Jun 6, 2019

Hi,
I've found this bug that appears any time I write down the "then" keyword with space after it and every time I press enter in order to create a new line after the if statement it will execute the snippet as you can see in the screenshot.
Thanks
Stefano Primo
image

@waldo1001
Copy link
Owner

That's default snippet functionality, I'm afraid. Not a bug.

Can I ask - it's a "then" from which statement"? Can you share some more code?

You can try to play with these settings:
image

@f4n0
Copy link
Author

f4n0 commented Jun 6, 2019

image

usually happens with the IF statement.
adding this setting:
"editor.suggest.filterGraceful": false,
it seems to solve a little bit the problem

@waldo1001
Copy link
Owner

hm, the problem is the space - because of the space in the snippetprefix, it actually is still valid for the current suggestion list.

I agree - doesn't make sense - will change! :-)

@f4n0
Copy link
Author

f4n0 commented Jun 6, 2019

thanks a lot,
If you want I could beta test it!
let me know!

@waldo1001
Copy link
Owner

Update is online now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants