manateelazycat / lsp-bridge

A blazingly fast LSP client for Emacs
GNU General Public License v3.0
1.35k stars 197 forks source link

react jsx 中不支持 tailwindcss #945

Closed apple115 closed 1 month ago

apple115 commented 1 month ago

你好 很少提issues 请多多指教 react jsx 不支持 tailwindcss lsp

jsx

我按照 lsp-bridge的说明写了 image image 经过查证, 应该是因为 这个language id 发送的问题 在 jsx中 发送 languageId 为 jsx 我将tailwindcss.json 跟改为 image 就可以使用了 image 我又看了看 lsp-bridge 应该是在这个 lspserver.py 的 get_language_id 这里添加一个对文件的判断 jsx 为 javascriptreact 应该就可以了

apple115 commented 1 month ago

我把这个lsp-bridge 中lspserver.py 的get_language_id 改成了这个 image

manateelazycat commented 1 month ago

可以给一个补丁吗? 谢谢

apple115 commented 1 month ago

是不是这样啊 我没有给过补丁 大佬