-
Notifications
You must be signed in to change notification settings - Fork 17
getCompletionsAtPosition not triggering after emmet modifiers #5
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
Comments
I have forked this repo and upon testing it seems that
|
Take a look at how the styled-plugin supports emmet: https://github.com/Microsoft/typescript-styled-plugin/blob/master/src/styled-template-language-service.ts#L244 . You can also set Also note that emmet requires that completions be recalculated when a new character is typed, which is not a normal TS behavior (see the note on https://github.com/Microsoft/typescript-styled-plugin#emmet-in-completion-list). My proposal is to make TypeScript allow plugins to pass some metadata through to VS Code so that we can support this. This is already tracked by microsoft/TypeScript#21999 but I decided not to add emmet to the lit-html plugin yet because the current user experience is so poor |
Closing as duplicate of microsoft/vscode#45028 |
I am trying to implement
emmet
functionality inside typescript template literals however there's a strange behavior regarding getCompletionsAtPosition. with the following code from the demo completions aren't triggered if the position is after the numberTo replicate, just use the demo EchoServer and test with emmet abbreviations above.
The text was updated successfully, but these errors were encountered: