gtache / intellij-lsp

Plugin adding Language Server Protocol support for IntelliJ
Apache License 2.0
397 stars 48 forks source link

Output of lsp #29

Open nojaf opened 6 years ago

nojaf commented 6 years ago

I'm trying to use a lsp for F# in Rider. It appears not to be working, however I was wondering if there are logs or output in Rider I could check to see if it is at least trying to reach the lsp?

cspotcode commented 6 years ago

Ditto; I'd like to see this too, if possible. I'm trying to set up TypeScript's language service, and I think it's being overridden by WebStorm's built-in JS language features, but I'm not sure.

nixel2007 commented 6 years ago

+1 to question. Also i can't figure out how to get logs from lsp-plugin itself. Managing of Help -> Debug log configuration doesn't help :(

nixel2007 commented 6 years ago

Found the "tracer" parameter in createLauncher method. You can log messages of client and server with it (at least).


    LanguageServer server = new YourLanguageServer();
    PrintWriter tracer = new PrintWriter(new File("path/to/log/tracer.log"));
    Launcher<LanguageClient> launcher = LSPLauncher.createServerLauncher(server, in, out, false, tracer);