-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1789 respect language server capability
- Loading branch information
Evgen Vidolob
committed
Jul 27, 2016
1 parent
b6eea6f
commit 965c474
Showing
19 changed files
with
403 additions
and
65 deletions.
There are no files selected for viewing
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
35 changes: 35 additions & 0 deletions
35
ide/che-core-ide-api/src/main/java/org/eclipse/che/ide/api/editor/AsyncEditorProvider.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,35 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2012-2016 Codenvy, S.A. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Codenvy, S.A. - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.che.ide.api.editor; | ||
|
||
import org.eclipse.che.api.promises.client.Promise; | ||
import org.eclipse.che.ide.api.resources.VirtualFile; | ||
|
||
/** | ||
* Extension interface for {@link EditorProvider} | ||
* Add ability to create editor asynchronously. | ||
* {@link EditorAgent} should use this interface to crate editor instance | ||
* | ||
* @author Evgen Vidolob | ||
*/ | ||
public interface AsyncEditorProvider { | ||
|
||
/** | ||
* Create promise for creating new editor instance. | ||
* | ||
* @param file | ||
* the file for which editor should crated | ||
* @return | ||
* promise | ||
* | ||
*/ | ||
Promise<EditorPartPresenter> createEditor(VirtualFile file); | ||
} |
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
23 changes: 23 additions & 0 deletions
23
...clipse/che/plugin/languageserver/ide/editor/LanguageServerCodeassistProcessorFactory.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,23 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2012-2016 Codenvy, S.A. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Codenvy, S.A. - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.che.plugin.languageserver.ide.editor; | ||
|
||
import io.typefox.lsapi.ServerCapabilities; | ||
|
||
import org.eclipse.che.plugin.languageserver.ide.editor.codeassist.LanguageServerCodeAssistProcessor; | ||
|
||
/** | ||
* @author Evgen Vidolob | ||
*/ | ||
public interface LanguageServerCodeassistProcessorFactory { | ||
|
||
LanguageServerCodeAssistProcessor create(ServerCapabilities capabilities); | ||
} |
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
21 changes: 21 additions & 0 deletions
21
...clipse/che/plugin/languageserver/ide/editor/LanguageServerEditorConfigurationFactory.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,21 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2012-2016 Codenvy, S.A. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Codenvy, S.A. - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.che.plugin.languageserver.ide.editor; | ||
|
||
import io.typefox.lsapi.ServerCapabilities; | ||
|
||
/** | ||
* @author Evgen Vidolob | ||
*/ | ||
public interface LanguageServerEditorConfigurationFactory { | ||
|
||
LanguageServerEditorConfiguration build(ServerCapabilities capabilities); | ||
} |
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
Oops, something went wrong.