10
10
******************************************************************************/
11
11
package com .redhat .devtools .intellij .quarkus .lsp ;
12
12
13
+ import com .intellij .execution .configurations .GeneralCommandLine ;
13
14
import com .intellij .ide .plugins .IdeaPluginDescriptor ;
14
15
import com .intellij .ide .plugins .PluginManagerCore ;
15
16
import com .intellij .openapi .extensions .PluginId ;
18
19
import com .redhat .devtools .intellij .quarkus .telemetry .TelemetryEventName ;
19
20
import com .redhat .devtools .intellij .quarkus .telemetry .TelemetryManager ;
20
21
import com .redhat .devtools .lsp4ij .server .JavaProcessCommandBuilder ;
22
+ import com .redhat .devtools .lsp4ij .server .OSProcessStreamConnectionProvider ;
21
23
import com .redhat .devtools .lsp4ij .server .ProcessStreamConnectionProvider ;
22
24
import com .redhat .devtools .intellij .lsp4mp4ij .settings .UserDefinedMicroProfileSettings ;
23
25
import org .slf4j .Logger ;
33
35
/**
34
36
* Start the MicroProfile language server process with the Quarkus extension.
35
37
*/
36
- public class QuarkusServer extends ProcessStreamConnectionProvider {
37
-
38
- private static final Logger LOGGER = LoggerFactory .getLogger (QuarkusServer .class );
38
+ public class QuarkusServer extends OSProcessStreamConnectionProvider {
39
39
40
40
private final Project project ;
41
41
@@ -54,7 +54,7 @@ public QuarkusServer(Project project) {
54
54
.create ();
55
55
commands .add ("org.eclipse.lsp4mp.ls.MicroProfileServerLauncher" );
56
56
commands .add ("-DrunAsync=true" );
57
- super .setCommands ( commands );
57
+ super .setCommandLine ( new GeneralCommandLine ( commands ) );
58
58
59
59
// Send "ls-start" telemetry event
60
60
TelemetryManager .instance ().send (TelemetryEventName .LSP_START_MICROPROFILE_SERVER );
0 commit comments