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 suggestions stop in scss when there is an @include line below #32703

Closed
dimondevs opened this issue Aug 17, 2017 · 4 comments
Closed

Emmet suggestions stop in scss when there is an @include line below #32703

dimondevs opened this issue Aug 17, 2017 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug emmet Emmet related issues verified Verification succeeded
Milestone

Comments

@dimondevs
Copy link

  • VSCode Version: 1.15.1
  • OS Version: MacOS Siera 10.12.6

Hello! I use mixins to write styles the BEM method. And I get such 2 bugs with emmet. The first is that if @include emmet is below the input line, it stops showing matches. The second when I write ovh I press tab, and then cmd + z then also the match will not seem any more. In other editors, I did not observe this.

Steps to Reproduce:
1

@vscodebot vscodebot bot added new release emmet Emmet related issues labels Aug 17, 2017
@anyclub
Copy link

anyclub commented Aug 17, 2017

the same problem
bdn, bd:n, fl:n, fln ...
and many more

@ramya-rao-a
Copy link
Contributor

ramya-rao-a commented Aug 17, 2017

@include emmet is below the input line, it stops showing matches

We have some validations in place to ensure emmet doesn't get suggested in every location in the file. For eg. it should be suggested inside the rule selector. In this case, for some reason the emmet parser thinks that the cursor is insider the rule selector (of the @include below) and so doesn't suggest emmet. I will look into this.

Until, then enable expanding of emmet abbreviations with tab by setting emmet.triggerExpansionOnTab to true. This way when you tab in the absence of the suggestion list emmet will get triggered

I write ovh I press tab, and then cmd + z then also the match will not seem any more

Here when you press tab, the suggestion list is open and the first choice gets selected.
When you do a cmd+z, the suggestion list disappears because it follows the same quick suggestion model as the rest of VS Code. Which is, they show up as you type and not otherwise.

You have 2 options here

  • Enable expanding of emmet abbreviations with tab by setting emmet.triggerExpansionOnTab to true. This way when you tab in the absence of the suggestion list emmet will get triggered
  • OR, hit Ctrl+Space to trigger suggestions manually after doing a Cmd+z

@ramya-rao-a ramya-rao-a added this to the August 2017 milestone Aug 17, 2017
@ramya-rao-a ramya-rao-a changed the title Emmet bugs Emmet suggestions stop in scss when there is an @include line below Aug 17, 2017
@ramya-rao-a
Copy link
Contributor

@dimondevs @anyclub The fix will be available in tomorrow's Insiders build.

Please give it a try.

You should now be able to get emmet suggestions everywhere except inside the selectors.

@ramya-rao-a ramya-rao-a added the bug Issue identified by VS Code Team member as probable bug label Aug 21, 2017
@roblourens
Copy link
Member

Seems the same in Insiders? I don't get Emmet above a @include

@roblourens roblourens reopened this Aug 31, 2017
@roblourens roblourens added the verified Verification succeeded label Aug 31, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
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 verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants