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

Wrong shortcut expansion in CSS if TAB key or suggestion list are used #26

Open
VIPStephan opened this issue Jan 7, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@VIPStephan
Copy link

Describe the bug
If I type “cnt” and expand it using the TAB key or the entry in the code suggetion tooltip, it will produce content: '${0'}; – note the non-matching single quotes; the block will be highlighted until the second quote (the ending quote) and the curly bracket is excluded from the marker. I seem to remember that this used to work before; perhaps some update (either the plugin or Nova) broke it?

To Reproduce
Steps to reproduce the behavior:

  1. Open a CSS file
  2. Write a CSS rule, e. g. body:before {}
  3. Type “cnt” on a new line inside the rule; the code suggestion popup will show an Emmet option as first item; hit the TAB key or click on that option
  4. See error

Expected behavior
It should produce content: '${0}'; as output (i. e. correct nesting of quote/curly bracket).
By the way: this works correctly if Ctrl-E is used to expand the shortcut.

Screenshots
emmet-error-content-tooltip

emmet-error-content

Environment

  • Nova version: 3.1
  • Emmet extension version 1.3.1
@VIPStephan VIPStephan added the bug Something isn't working label Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant