vieiro opened a new pull request #3655:
URL: https://github.com/apache/netbeans/pull/3655


   Some LSP servers can handle files with different mime-types within the same 
project. 
   
   For instance, "clangd", "ccls" and "apple/source-kit" are able to handle 
"text/x-c", "text/x-cpp" and others. C++ projects may include simple C files 
within the same project. 
   
   This adds a new SPI interface "MultiMimeLanguageServerProvider" that returns 
a set of mime-types handled by the LSP server. 
   
   The commit registers/deregisters all these mime-types at once. Otherwise the 
same LSP server may be started (restarted?)  several times for different mime 
types ( [in this 
loop](https://github.com/apache/netbeans/blob/76be2da4de40da05cd9f6c978d1e29bc16f99c1f/ide/lsp.client/src/org/netbeans/modules/lsp/client/LSPBindings.java#L270))
 possibly losing some previous state or causing multiple `initialize` requests 
to be sent (as reported in #3559).
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to