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

Problems related to LSP/Monaco integration #95

Closed MarkZ3 closed 7 years ago

MarkZ3 commented 7 years ago

I have looked a bit at the LSP/Monaco integration. Here are my observations so far. I tested with the Java and C/C++ servers.

svenefftinge commented 7 years ago

re: semantic coloring There is no server nor client speaking such an extension, so there is no point in implementing it atm. But Anton put everything in place in order to enable arbitrary extensions.

re: signature information It usually pops up when you type the opening bracket in a method call.

akosyakov commented 7 years ago

https://code.visualstudio.com/docs/extensionAPI/language-support#_help-with-function-and-method-signatures - Method Signatures in VS code

MarkZ3 commented 7 years ago

https://code.visualstudio.com/docs/extensionAPI/language-support#_help-with-function-and-method-signatures - Method Signatures in VS code

Nice! I didn't know about that page, it's quite useful! Thanks!

MarkZ3 commented 7 years ago

It usually pops up when you type the opening bracket in a method call.

It doesn't seem to work with the Java server, I don't see the request from the client either (perhaps the server doesn't have the capability??). Does it work for you? For example:

    public static void main(String[] args) {
        main   // <--- type the opening parenthesis here
    }
akosyakov commented 7 years ago

It is not implemented: https://github.com/eclipse/eclipse.jdt.ls/blob/f58ad76f7f258926a3579dd6c6ea4eb008d44d88/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/handlers/JDTLanguageServer.java#L220

The list of features supported by jdt.ls: https://github.com/eclipse/eclipse.jdt.ls#features

svenefftinge commented 7 years ago

But the python LS has it and it works in Theia.

MarkZ3 commented 7 years ago

But the python LS has it and it works in Theia.

Perfect, I'll try that!

MarkZ3 commented 7 years ago

Yup, it's working with "pyls", thanks!

akosyakov commented 7 years ago
akosyakov commented 7 years ago

Go To Declaration: Doesn't seem to select the full range correctly, the cursor is placed at the beginning of the range. Is this a Monaco bug/by-design-behavior?

It's by design behavior.

akosyakov commented 7 years ago

I've filed an issue for bogus hover ranges: https://github.com/Microsoft/vscode/issues/26747

svenefftinge commented 7 years ago

The outstanding bug has been fixed by the vs code team.

MarkZ3 commented 7 years ago

@svenefftinge Do you know if the "quick fixes" work now? I haven't had the chance to test them.

svenefftinge commented 7 years ago

Yes, I added that while working on yangster. https://github.com/theia-ide/theia/pull/327

MarkZ3 commented 7 years ago

Thanks!