-
Notifications
You must be signed in to change notification settings - Fork 4
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
Discussion: Comparison with typescript-plugin-css-modules #92
Comments
@strlns This plugin never came to my attention. The plugin does bring in most of the features supported by this extension. However It has the following problems.
I ran the above tests using the example folder in this repo which covers various use cases. Although some of them are not conventional but just to test the scenarios out. Things that are planned in this Extension.
I think the plugin is doing most of the job for best case scenarios pretty well, However I see some inconsistencies with SASS and LESS and also CSS in some places. if you come from Sass or Less world , nested rules become more prominent and thus intellisense to cover them would be useful at least for me. The goal of this extension when I started was to solve the problems I had been facing with other extension and to add useful features on top of existing known features. May be I'm speaking a bit naively , I also think that some of the work is redudant however it helps to solve the problems more effectively. Thanks for opening this issue. EDIT: I tried the plugin in one of my projects which is a bit huge SCSS project. Unfortunately I can't get the plugin to work with the said options , and using workspace typescript version. |
@Viijay-Kr Thank you for the explanation, indeed I did not try SCSS and the project that I tried was also quite small. Feel free to close this if you consider the approaches sufficiently different. So maybe there is potential to learn from the other TS language server plugin for implementing ideas in #88 and resolving #68 . I'm not a big fan of SCSS/LESS anymore but fact is there is a lot of existing code in it. Also I like to use nested selectors in PostCSS sometimes, I'll have to try and compare myself how both approaches work there. Hope you have a great week, thanks for taking time to answer! |
By accident (looking for a component library), I stumbled upon this TypeScript language service plugin:
https://www.npmjs.com/package/typescript-plugin-css-modules
It seems to cover very similar use cases.
https://www.npmjs.com/package/typescript-plugin-css-modules#visual-studio-code
Things that work when configuring VSCode to use the workspace TS version as described in the README above:
So there seems to be a lot of overlap and at the moment, the TS server language plugin seems to have all the features discussed here in place already.
This is a discussion issue, I hope it doesn't come across as dismissive or rude!
Are there unique advantages to this extension that
typescript-plugin-css-modules
can't offer?Otherwise, I'm afraid all the work has already been done. Performance of the TS language server plugin seems great as well.
The text was updated successfully, but these errors were encountered: