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

php: Emmet abbreviations with class operator dont show up in suggestions unless php.suggest.basic is disabled #32423

Closed
ramya-rao-a opened this issue Aug 13, 2017 · 6 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) emmet Emmet related issues php PHP support issues

Comments

@ramya-rao-a
Copy link
Contributor

In a php file, below abbreviations that have the class operator dont show up in suggestions unless php.suggest.basic is disabled

  • .hello
  • ul.hello
@vscodebot vscodebot bot added the php PHP support issues label Aug 13, 2017
@ramya-rao-a ramya-rao-a added the emmet Emmet related issues label Aug 13, 2017
@ramya-rao-a ramya-rao-a added this to the August 2017 milestone Aug 13, 2017
@ramya-rao-a ramya-rao-a self-assigned this Aug 13, 2017
@jens1o
Copy link
Contributor

jens1o commented Aug 13, 2017

Well, most of the time the users have disabled this option, because there are extensions which provide better language support. So this doesn't affect that many users.

@ramya-rao-a
Copy link
Contributor Author

@jens1o That's good to know, but I'd still like to get to the root cause of this issue.

@roblourens
Copy link
Member

roblourens commented Aug 28, 2017

@jrieken We debugged a little and this looks like an issue with suggestions in general -

There are two suggestion providers registered, PHP and Emmet. Both are triggered on .. When . is pressed, Emmet returns nothing, and PHP returns a complete list. When more characters are typed, the completion providers aren't called again, because the completion model is only looking at existing completion items to determine whether the full list is complete. Emmet returned an incomplete result, but since the list was empty, that isn't taken into account by CompletionModel._createCachedState.

If we change Emmet to always return a dummy result, this doesn't repro. Maybe it's unexpected for a completion provider to return more suggestions once more characters have been typed - that's the situation here because it returns nothing for . but results for .foo

@jrieken
Copy link
Member

jrieken commented Aug 29, 2017

Yeah, I'd say this is a dupe of #13735. I am not decided one what to do because an empty, but incomplete result set sound wrong to me. With that an extension can hijack the whole completion logic...

@jrieken
Copy link
Member

jrieken commented Sep 1, 2017

closing as dupe of #13735. @ramya-rao-a let me know if you need this for September

@jrieken jrieken closed this as completed Sep 1, 2017
@jrieken jrieken added the *duplicate Issue identified as a duplicate of another issue(s) label Sep 1, 2017
@ramya-rao-a
Copy link
Contributor Author

@jrieken Can we do something about this for the October release?

@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
*duplicate Issue identified as a duplicate of another issue(s) emmet Emmet related issues php PHP support issues
Projects
None yet
Development

No branches or pull requests

4 participants