-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
80 additions
and
8 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
src/main/java/com/redhat/devtools/intellij/quarkus/lsp/QuarkusLanguageServerFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2023 Red Hat, Inc. | ||
* Distributed under license by Red Hat, Inc. All rights reserved. | ||
* This program is made available under the terms of the | ||
* Eclipse Public License v2.0 which accompanies this distribution, | ||
* and is available at https://www.eclipse.org/legal/epl-v20.html | ||
* | ||
* Contributors: | ||
* Red Hat, Inc. - initial API and implementation | ||
******************************************************************************/ | ||
package com.redhat.devtools.intellij.quarkus.lsp; | ||
|
||
import com.intellij.openapi.project.Project; | ||
import com.redhat.devtools.lsp4ij.LanguageServerFactory; | ||
import com.redhat.devtools.lsp4ij.client.LanguageClientImpl; | ||
import com.redhat.devtools.lsp4ij.server.StreamConnectionProvider; | ||
import org.eclipse.lsp4j.services.LanguageServer; | ||
import org.eclipse.lsp4mp.ls.api.MicroProfileLanguageServerAPI; | ||
|
||
/** | ||
* Quarkus language server factory. | ||
*/ | ||
public class QuarkusLanguageServerFactory implements LanguageServerFactory { | ||
|
||
@Override | ||
public StreamConnectionProvider createConnectionProvider(Project project) { | ||
return new QuarkusServer(project); | ||
} | ||
|
||
@Override | ||
public LanguageClientImpl createLanguageClient(Project project) { | ||
return new QuarkusLanguageClient(project); | ||
} | ||
|
||
@Override | ||
public Class<? extends LanguageServer> getServerInterface() { | ||
return MicroProfileLanguageServerAPI.class; | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
src/main/java/com/redhat/devtools/intellij/qute/lsp/QuteLanguageServerFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2023 Red Hat, Inc. | ||
* Distributed under license by Red Hat, Inc. All rights reserved. | ||
* This program is made available under the terms of the | ||
* Eclipse Public License v2.0 which accompanies this distribution, | ||
* and is available at https://www.eclipse.org/legal/epl-v20.html | ||
* | ||
* Contributors: | ||
* Red Hat, Inc. - initial API and implementation | ||
******************************************************************************/ | ||
package com.redhat.devtools.intellij.qute.lsp; | ||
|
||
import com.intellij.openapi.project.Project; | ||
import com.redhat.devtools.lsp4ij.LanguageServerFactory; | ||
import com.redhat.devtools.lsp4ij.client.LanguageClientImpl; | ||
import com.redhat.devtools.lsp4ij.server.StreamConnectionProvider; | ||
import com.redhat.qute.ls.api.QuteLanguageServerAPI; | ||
import org.eclipse.lsp4j.services.LanguageServer; | ||
|
||
/** | ||
* Qute language server factory. | ||
*/ | ||
public class QuteLanguageServerFactory implements LanguageServerFactory { | ||
|
||
@Override | ||
public StreamConnectionProvider createConnectionProvider(Project project) { | ||
return new QuteServer(project); | ||
} | ||
|
||
@Override | ||
public LanguageClientImpl createLanguageClient(Project project) { | ||
return new QuteLanguageClient(project); | ||
} | ||
|
||
@Override | ||
public Class<? extends LanguageServer> getServerInterface() { | ||
return QuteLanguageServerAPI.class; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters