remcohaszing / monaco-tailwindcss

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

Destroy Method #84

Closed mattboon closed 1 year ago

mattboon commented 1 year ago

First up, thanks loads for making this library!

A wondering if there's a way to de-initialize the lib somehow after calling configureMonacoTailwindcss()?

I see the MonacoTailwindcss type for the created instance has setTailwindConfig and generateStylesFromContent methods, but no destroy or similar.

Is there any way to achieve this, for example on unmount or to toggle the Intellisense on/off conditionally?

mattboon commented 1 year ago

Actually, just seen there is a .dispose() method returned from configureMonacoTailwindcss()

This is what I am after 👍