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

Emmet: Wrap with abbreviation doesnt work when abbr contains {} #45724

Closed
ramya-rao-a opened this issue Mar 14, 2018 · 7 comments
Closed

Emmet: Wrap with abbreviation doesnt work when abbr contains {} #45724

ramya-rao-a opened this issue Mar 14, 2018 · 7 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug emmet Emmet related issues insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Milestone

Comments

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Mar 14, 2018

  • VSCode Version: 1.21
  • OS Version: Any

Steps to Reproduce:

Use ul>li{hello} to wrap some text using the Emmet: Wrap with Abbreviation command

Expected:

<ul>
    	<li>
    		helloHello world
    	</li>
</ul>

Actual:

<ul>
    	<li>
    		Hello world
    	</li>
</ul>

This gets worse during live preview that's available in the Insiders.
By the time {he is typed, the text is wrapped inside <he>Hello world</he>

Also try ul>li{hello}+li.bye

@vscodebot vscodebot bot added the emmet Emmet related issues label Mar 14, 2018
@ramya-rao-a ramya-rao-a added the bug Issue identified by VS Code Team member as probable bug label Mar 14, 2018
@ramya-rao-a ramya-rao-a added this to the March 2018 milestone Mar 14, 2018
@ramya-rao-a
Copy link
Contributor Author

Upstream issue: emmetio/expand-abbreviation#20

@ramya-rao-a ramya-rao-a added the upstream Issue identified as 'upstream' component related (exists outside of VS Code) label Mar 20, 2018
@ramya-rao-a ramya-rao-a removed their assignment Mar 20, 2018
@ramya-rao-a ramya-rao-a modified the milestones: March 2018, Backlog Mar 26, 2018
@ramya-rao-a ramya-rao-a added the help wanted Issues identified as good community contribution opportunities label Mar 28, 2018
@ramya-rao-a ramya-rao-a added feature-request Request for new features or functionality and removed bug Issue identified by VS Code Team member as probable bug labels Mar 28, 2018
@vedranjaic
Copy link

Also, abbreviation cannot be expanded with TAB if it contains {} or [], only with enter

@ramya-rao-a
Copy link
Contributor Author

@vedranjaic Please provide an example

@vedranjaic
Copy link

Ahh sorry, it is actually a problem with the way or the order of typing, for example:
I would usually move my cursor throughout the abbreviation to edit something
And then putting the cursor back at the end of the line (either by pressing "Home" or "Cmd+ArrowRight" or clicking the mouse at the end)
And then pressing Tab to expand the abbreviation, but this way I get the usual "Tab" space instead of the expanding.

I have to delete what ever the last character is and re-type it... Because this way you jump-start the Emmet recommendation tooltip and the ability to expand the abbreviation either by "Tab" or "Enter"

@ramya-rao-a
Copy link
Contributor Author

@vedranjaic If you want emmet expansion to be triggered on tab in the absence of the suggestion widget, see https://code.visualstudio.com/docs/editor/emmet#_using-tab-for-emmet-expansions

@vedranjaic
Copy link

@ramya-rao-a working, thanks!

@octref octref self-assigned this Oct 28, 2019
@rzhao271 rzhao271 added bug Issue identified by VS Code Team member as probable bug emmet-revamp and removed help wanted Issues identified as good community contribution opportunities feature-request Request for new features or functionality upstream Issue identified as 'upstream' component related (exists outside of VS Code) labels Oct 22, 2020
@rzhao271 rzhao271 removed this from the Backlog milestone Nov 16, 2020
@rzhao271 rzhao271 added this to the November 2020 milestone Nov 16, 2020
@rzhao271
Copy link
Contributor

rzhao271 commented Jan 6, 2021

\closedWith dc5a3da

@meganrogge meganrogge added the verified Verification succeeded label Jan 26, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Feb 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug emmet Emmet related issues insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants
@vedranjaic @octref @gushuro @rzhao271 @ramya-rao-a @meganrogge and others