palantir / language-servers

[Deprecated and No longer supported] A collection of implementations for the Microsoft Language Server Protocol
Apache License 2.0
47 stars 25 forks source link

What is rootUri? And what value does it expect #179

Open sanketbajoria opened 6 years ago

sanketbajoria commented 6 years ago

Sorry, for asking this naive question. I am trying to integrate monacco-languageclient with groovy language server. I am getting below exception. Either rootUri or rootPath must be set

I have tried setting up the rootUri to a dummy folder path MonacoServices.install(editor, {rootUri: "file:///D:/git/monaco-languageclient/example/var"});

But still i am getting same error.

Please help me with this

jiahuijiang commented 6 years ago

rootUri should be the root of the code project you want the language server to work on :) You can find more details in the rootUri section of the initialParam part https://github.com/Microsoft/language-server-protocol/blob/gh-pages/specification.md#initialize