Add compatibility with LSP Support plugin (CLion, IntelliJ and other)
Zymlex opened this issue · 5 comments
Other editors aside from VSCode will be supported right after the basic features have been implemented.
Not really a priority ATM but I just want to check it out how it goes in the latest update. So far it is now working with the warning message appearing:
Unfortunately, the client immediately shutdown the communication for some reason (maybe it didn't like the response from the server
[Trace - 11:55:41] Sending notification 'window/showMessage'.
Params: {"jsonrpc":"2.0","method":"window/showMessage","params":{"type":2,"message":"VLS is a work-in-progress, pre-alpha language server. It may not be guaranteed to work reliably due to memory issues and other related factors. We encourage you to submit an issue if you encounter any problems."}}
[Trace - 11:55:41] Received request 'initialize - (0)'.
Params: {"jsonrpc":"2.0","id":"1","method":"initialize","params":{"processId":null,"rootUri":"file:///<home>/vlang/v-scope-inspector/","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true},"didChangeConfiguration":{},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{},"executeCommand":{},"workspaceFolders":false,"configuration":true},"textDocument":{"synchronization":{"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"completionItem":{"snippetSupport":true}},"hover":{},"signatureHelp":{},"references":{},"documentHighlight":{},"formatting":{},"rangeFormatting":{},"onTypeFormatting":{},"definition":{},"codeAction":{},"rename":{"prepareSupport":true,"dynamicRegistration":false},"semanticHighlightingCapabilities":{"semanticHighlighting":false}}}}}
[Trace - 11:55:41] Sending notification 'window/logMessage'.
Params: {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"VLS Version: 0.0.1, OS: linux 64"}}
[Trace - 11:55:41] Sending notification 'window/logMessage'.
Params: {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Client / Editor: Unknown"}}
[Trace - 11:55:41] Sending notification 'window/logMessage'.
Params: {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"Using V path (VROOT): /home/ned/Downloads/v"}}
[Trace - 11:55:42] Sending response 'initialize - (0)' took 174ms
Result: {"jsonrpc":"2.0","id":"1","result":{"capabilities":{"textDocumentSync":2,"hoverProvider":true,"completionProvider":{"resolveProvider":false,"triggerCharacters":["=",".",":","{",",","("," "]},"signatureHelpProvider":{"triggerCharacters":["("],"retriggerCharacters":[","," "]},"definitionProvider":true,"typeDefinitionProvider":false,"implementationProvider":true,"referencesProvider":false,"documentHightlightProvider":false,"documentSymbolProvider":true,"workspaceSymbolProvider":true,"codeActionProvider":false,"codeLensProvider":{"resolveProvider":false},"documentFormattingProvider":true,"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"","moreTriggerCharacter":[]},"renameProvider":false,"documentLinkProvider":false,"colorProvider":false,"declarationProvider":false,"executeCommandProvider":"","foldingRangeProvider":true,"experimental":{}}}}
[Trace - 11:55:42] Received request 'shutdown - (0)'.
Params: {"jsonrpc":"2.0","id":"2","method":"shutdown","params":null}
Anyways, we are now one step closer to making it compatible with Jetbrains.
Good news. Need a bigger compatibility with the IDE, not just notepads.
June 2022 update: still the same lol we'll just need to wait for Jetbrain Fleet then
Intellij has had a plugin for a little while now, and JetBrain announced they are adding LSP support to Intellij in the next release.