Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [lsp4e-dev] Is the contract of lsp4e to tie the rootURI of the language server to each Eclipse project instead of the Eclipse workspace?

On 02/24/2017 03:18 AM, Nick Chen wrote:
Looking at http://git.eclipse.org/c/lsp4e/lsp4e.git/tree/org.eclipse.lsp4e/src/org/eclipse/lsp4e/ProjectSpecificLanguageServerWrapper.java it seems that if there is a viable Language Server, it will create one server for that particular project.
More concretely, it sets the rootUri to the location of the project, and not the workspace.

initParams.setRootUri(project.getLocation().toFile().toURI().toString());

Simple question: Is the use of project (vs workspace) the contract for lsp4e moving forward? Just need to know so that I can handle things properly on my end.
It's indeed the current implementation.
Let's keep discussion on the topic of changing this at https://bugs.eclipse.org/bugs/show_bug.cgi?id=510433

Cheers,
--
Mickael Istria
Eclipse developer for Red Hat Developers
My blog - My Tweets

Back to the top