eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
20.11k stars 2.5k forks source link

Add Language Support(STL) #599

Closed akshaytaru2007 closed 5 years ago

akshaytaru2007 commented 7 years ago

Hi,

This is not an issue. I believe Theia currently supports TypeScript, C/C++, Java, Python and Go Languages. I want to support STL language to make Theia STL IDE. So my question is: Is there any way I can add support for STL language? If yes what changes I have to make? Or Do I have to create an extension in order to support STL?

marcdumais-work commented 7 years ago

Hi @akshaytaru2007,

Can you clarify which "STL" you are referring-to? ( https://en.wikipedia.org/wiki/STL ) image

In general, if there already exists a language server for a language, it's not hard to add support in Theia through an extension.

akosyakov commented 7 years ago

So my question is: Is there any way I can add support for STL language? If yes what changes I have to make? Or Do I have to create an extension in order to support STL?

Hi, developing a Theia extension is not much different from developing a npm package. You can build it as a node package and distribute via npm. Look at https://github.com/theia-ide/theia-extension-example. It demonstrates an extension developer setup.

For developing a language extension look at any language package in the repo.

akshaytaru2007 commented 7 years ago

@marcdumais-work Thanks for reply. I am referring to State Logic. Right now there is no Language server exists for this Language. Is it possible for you to provide any example for language extension for Theia?

akosyakov commented 7 years ago

Right now there is no Language server exists for this Language.

Do you already have a compiler capable to cover LSP? If yes, look for SDKs to wrap your compiler into a language server, like lsp4j or vscode-languageserver.

If not, have a look at Xtext. It is a framework to develop programming languages and it supports LSP. Here is a tutorial on building a language server with Xtext: http://typefox.io/tutorial-building-a-language-server-for-your-dsl.

Is it possible for you to provide any example for language extension for Theia?

Look at any language extension in this repo to learn how to connect with an existing language server.

Particularly for Xtext Language Server, there is an example: https://github.com/TypeFox/theia-xtext. But Theia integration part is outdated: https://github.com/TypeFox/theia-xtext/issues/4. You are welcome to update it to the latest Theia. It could be a good exercise to learn about Theia integration with a Xtext-based language server.

kittaakos commented 5 years ago

There were no updates on this in the last year, I am closing it.