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

Allow to autocomplete html inline style on a file other than html. #84133

Closed
Fr3027 opened this issue Nov 7, 2019 · 3 comments
Closed

Allow to autocomplete html inline style on a file other than html. #84133

Fr3027 opened this issue Nov 7, 2019 · 3 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@Fr3027
Copy link

Fr3027 commented Nov 7, 2019

I want to use vscode built-in html inline style autocomplete in wxml file, which is similar to html, but i can't find a way to do this .I know i can do :
"files.associations": { "*.wxml": "html" }, .
But if i do this, then i can't use wxml file extensions, so , can you add a feature to do this better?
Thank you.

@vscodebot
Copy link

vscodebot bot commented Nov 7, 2019

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@aeschli
Copy link
Contributor

aeschli commented Nov 7, 2019

There's currently no better way.
The best way would be someone writes a real wxml language server that uses our html-language-service as backend.
But we are thinking of a good way to make the HTML support available for HTML-like languages: #49210

Do you have a pointer to more information about wxml?

@octref
Copy link
Contributor

octref commented Nov 7, 2019

wxml takes inspiration from Vue Single File Component:
https://developers.weixin.qq.com/miniprogram/dev/reference/wxml/

Duplicate of #49210. There's currently no way to easily "inherit" HTML features. The best you can do is to fork the HTML Language Server for your file type: https://github.com/microsoft/vscode/tree/master/extensions/html-language-features

@octref octref closed this as completed Nov 7, 2019
@octref octref added the *duplicate Issue identified as a duplicate of another issue(s) label Nov 7, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Dec 22, 2019
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)
Projects
None yet
Development

No branches or pull requests

3 participants