monaco-tailwindcss icon indicating copy to clipboard operation
monaco-tailwindcss copied to clipboard

Disable class hover

Open odb23 opened this issue 1 year ago • 3 comments

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

odb23 avatar Aug 28 '24 15:08 odb23

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

remcohaszing avatar Aug 29 '24 10:08 remcohaszing

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

odb23 avatar Aug 30 '24 10:08 odb23

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.

remcohaszing avatar Aug 30 '24 12:08 remcohaszing