Replies: 1 comment
-
At the moment I only see that I need to call the langauge server of tailwind css by my own, that means I need to add new code completion items for HTML files like other plugins does this and call the language server manually. But afaik, all the logic is already there and just needs to be a bit refactored or better rethinked. Now we mixed up the Language servers with textmate which seems wrong in my perspective. Both are different stuff, can coexist but working independent from each other. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
At the moment it is just possible to add whole new filetypes via the LSP via Options -> Editors -> Language Server/Textmate language. So if I hit add I can add a new extension like vbs VBS and then I need to add the textmate grammer file and also optional the LS for this language. This will register a new filetype "x-ext-a". This is great, if I add a whole new filetype for NetBeans and we got simple syntax highlighting.
In the real world, there are LS out there, to add to already supported filetypes in NetBeans like the Angular Language Server (https://github.com/angular/vscode-ng-language-service) or the Tailwind CSS language server (https://github.com/tailwindlabs/tailwindcss-intellisense/tree/master/packages/tailwindcss-language-server) to HTML and also to different filetypes like CSS. So when I now add via the Language Servers, html as a new extension to NetBeans, NetBeans loses the whole syntax highlighting for *.html files, because it adds a new mimetype (x-ext-a) and this is not registered.
So I don't want to do this, I just want to add language servers to already existing filetypes that are already registered and this is atm not possible. I think we should not mix Language Servers with textemate because both are working independent from each other.
It should still be possible to add whole new filetype via textmate and add a new language server to it and it should also be possible to add one or multiple language services to one existing filetype or corresponding mimetype, depends on my needs.
Beta Was this translation helpful? Give feedback.
All reactions