-
Notifications
You must be signed in to change notification settings - Fork 11
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
Intellisense/autocompletion #2
Comments
Shouldn't this extension support everything that the built-in CSS extension supports? Ie. it extends the CSS functionality of VS Code? |
Might be worth checking out the custom data format (https://code.visualstudio.com/blogs/2020/02/24/custom-data-format) for this. |
Deal-breaker for this plugin |
Yes, @joelmoss. You are correct. My understanding is that I need to write my own Intellisense integration. I intend to, as there are some guides. It does not necessarily appear to be easy or straight forward. If it were easy to do so, I would have probably seen this in the form of a PR. However, this is ultimately my responsibility. I was unaware of this need when I first wrote this language extension. I’m sorry about that.
I totally understand, @marcofugaro. I wrote this language extension because I could not find another one that correctly handled the syntax liberality of https://www.w3.org/TR/css-syntax-3/. However, I failed to see how the Intellisense integration was not a separate process.
I do not know the cause of this, but is it safe to say that it’s a result of the missing Intellisense integration? |
I think it is. As far as I understand, emmet and the other properties of the intellisense are a different thing, the emmet ones are provided by the emmet plugin. |
First, very glad there is a maintained postcss for VSCode around. The others seem to have stopped. I have been using postcss-sugarss-language, and it has been working pretty well, some gotcha on mixins, but other than that IntelliSense works, which is the air-conditioning of CSS. The problem with postcss-sugarss-language is that it now gets some This one looks promising, but coding CSS without IntelliSense is like driving through death valley without air conditioning. I wished I could help, but I not well versed with VSCode IntelliSense, language server, and syntax highlighting ... Perhaps something from postcss-sugarss-language can be borrowed. EDIT: 2020-10-06 Btw, I found a workaround with VSCode, can't believe it was that easy. , but no plugin and get full auto-complete. But in "files.associations": {
"*.pcss": "scss",
... Anyway, I am sure this approach has some gotchas, but for now since we use css var, we use pcss mostly for autoprefix, import, and nested, which is the same in sass. |
@jonathantneal I wonder if this is what you need: https://code.visualstudio.com/api/references/vscode-api#languages.registerCompletionItemProvider. This looks like you could tell your plugin to use the css code intel built into vs code. |
I would also like to use postcss in vscode but yeah like others says autocomplete not working is bit annoying. So actually I would just go back to vanilla css. |
Same here, great plugin but unfortunately autocomplete has more value. |
I faced the same problem, and replacing postcss-language with this plugin solved it perfectly! |
Are there plans to add any form of intellisense or autocompletion for this extension? I've been using https://marketplace.visualstudio.com/items?itemName=mhmadhamster.postcss-language for a while now as it's the only thing I could find with proper support for those, but it hasn't been updated in a couple of years.
The highlighting and everything else looks great, so figured I'd ask about any planned support. Thanks for all the work!
The text was updated successfully, but these errors were encountered: