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

Problem creating an extension from stackoveflow #570

Closed hexa00 closed 5 years ago

hexa00 commented 7 years ago

This is from: https://stackoverflow.com/questions/46425991/theia-how-to-write-an-extension

I am trying to write an extension and have the following problem

If i copy & paste the python extension, change python to python2 and the extension expression for files to py2 and include it in the browser example nothing happens (start never called)

Same if i simply edit the existing python extension and change the constants like
export const PYTHON_LANGUAGE_ID = 'python2';
export const PYTHON_LANGUAGE_NAME = 'Python2';

what do i need to do to get my extension running

cdietrich commented 7 years ago

you can find the code https://github.com/cdietrich/theia/tree/try2 and https://github.com/cdietrich/theia/tree/try1

kittaakos commented 7 years ago

@cdietrich, I will try to reproduce the issue. Meanwhile, could you please confirm that you have the Python LS installed locally?

cdietrich commented 7 years ago

i dont have it, but thats the point, i get an error in the default example. but with my changes nothing happens. (no exception please install python language server) the start method is not called at all

kittaakos commented 7 years ago

I see your point now. Thanks for the clarification!

cdietrich commented 7 years ago

any news on this issue?

cdietrich commented 7 years ago

problem found. python is a default language in monaco and thus a registration is not needed. i propose to add one anyway for sake of consitency