lsp4intellij icon indicating copy to clipboard operation
lsp4intellij copied to clipboard

Opening up the ServerDefinition to all languages

Open payne911 opened this issue 2 years ago • 4 comments
trafficstars

It would be great if we wouldn't have to exhaustively declare all supported file types in the ServerDefinition.

payne911 avatar Sep 26 '23 18:09 payne911

You can add a property in your plugin and make it configurable by end user

nixel2007 avatar Sep 27 '23 07:09 nixel2007

But then the end user would themselves have to list every single individual extension they want to support ?

payne911 avatar Sep 28 '23 00:09 payne911

Yes. Also there are file watches created for files with this extensions so plugin can handle file modifications and send events to the language server. Why do you need to register all extensions? Is your language server a generic one, which eally can handle any file, and not tied to any programming language?

nixel2007 avatar Sep 28 '23 07:09 nixel2007

Is your language server a generic one, which eally can handle any file, and not tied to any programming language?

No, but it's annoying to have to maintain a list of the 50+ extensions we support. The extensions we don't support are somewhat rare and usually wouldn't exist within our company's repository so it's safe to assume that it would indeed handle pretty much any file opened.

... but yes, obviously the better thing to do is indeed to list each extension.

payne911 avatar Oct 08 '23 16:10 payne911