remcohaszing / monaco-tailwindcss

Tailwindcss intellisense support in Monaco editor
https://monaco-tailwindcss.js.org
MIT License
87 stars 14 forks source link

Disable class hover #90

Open odb23 opened 3 months ago

odb23 commented 3 months ago

Is there an option to remove the tooltip that shows a class CSS rules whenever it is hovered?

remcohaszing commented 3 months ago

Can this be done in VSCode / Tailwind language server? It would be neat if we can make this configurable. That would mean all options supported in VSCode are supported here as well. If VSCode doesn’t have an option for this, we can’t support it either.

https://github.com/remcohaszing/monaco-tailwindcss/blob/dd0917fefb33f4a69c0bb943777dab9030cd6314/src/tailwindcss.worker.ts#L105-L143

odb23 commented 3 months ago

@remcohaszing This can be done in VSCode by disabling hints popup using "editor.parameterHints": false in settings.json

remcohaszing commented 3 months ago

Ok great!

I envision the MonacoTailwindcssOptions interface gets a new property editorConfig. (The name is up for debate, settings?) These settings need to be passed to the worker. Possibly also a function on the MonacoTailwindcss interface to reconfigure the settings.

I currently don’t have the time to implement this. I’ll get to it when I get to it. In the mean time: PR welcome.