Skip to content

Commit

Permalink
Apache Camel Language LSP client compatible with Java files (#10262)
Browse files Browse the repository at this point in the history
- remove language declaration for Camel, Camel is not a language type
but just a provider on top of other languages

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
  • Loading branch information
apupier committed Oct 25, 2018
1 parent d7a678c commit 790270a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/** Launcher for Apache Camel Language Server */
@Singleton
public class CamelLanguageServerConfig implements LanguageServerConfig {
private static final String REGEX = ".*\\.(xml)";
private static final String REGEX = ".*\\.(xml|java)$";

private final Path launchScript;

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.eclipse.che.ide.api.filetypes.FileType;
import org.eclipse.che.ide.api.filetypes.FileTypeRegistry.FileTypeProvider;
import org.eclipse.che.ide.api.project.type.wizard.ProjectWizardRegistrar;
import org.eclipse.che.plugin.web.client.CamelLanguageDescriptionProvider;
import org.eclipse.che.plugin.web.client.JsonLanguageDescriptionProvider;
import org.eclipse.che.plugin.web.client.TypeScriptLanguageDescriptionProvider;
import org.eclipse.che.plugin.web.client.WebExtensionResource;
Expand All @@ -49,9 +48,6 @@ protected void configure() {
newSetBinder(binder(), LanguageDescription.class)
.addBinding()
.toProvider(JsonLanguageDescriptionProvider.class);
newSetBinder(binder(), LanguageDescription.class)
.addBinding()
.toProvider(CamelLanguageDescriptionProvider.class);
}

@Provides
Expand Down

0 comments on commit 790270a

Please sign in to comment.