Commit Graph

666 Commits (0fcfb6ccb008dc833dc1a5e2aa4c66eb41a6f2a8)

Author SHA1 Message Date
Igor Vinokur ee00967029 Merge branch 'master' of github.com:eclipse/che into CHE-1661 2016-11-07 18:20:51 +02:00
Evgen Vidolob 2798e7087c #2987 do not open part if it's already opened, handle exceptions on stare state, add @DynaObject for history pahel presenter (#3005) 2016-11-07 17:55:34 +02:00
Igor Vinokur ccca32e513 CHE-1661: Fix deletion of ssh key by name with slash 2016-11-07 12:59:14 +02:00
Vitalii Parfonov 1f59d5d2fd Fix load commands (#2986)
Signed-off-by: Vitalii Parfonov <vparfonov@codenvy.com>
2016-11-04 17:45:39 +02:00
Florent BENOIT 4a86b5eae7 CHE-2059 : Each time a workspace is created, register/associate ssh key (#2949)
* CHE-2059 : Each time a workspace is created, register/associate ssh key

Change-Id: Ifddfe5398cffd1af31aa93beb5d0674b29270f4f
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-11-04 03:31:17 -06:00
Igor Vinokur 1bbb902e19 CHE-1297: Git service refactoring (#1515)
The goal of this refactoring is to set correct type of HTTP methods in GitService. Now almost all HTTP methods in this service are POST methods, but there are methods that are used to get some content, so they should be marked as GET method. Also I had to change such methods to receive query parameters instead of body.
Implemented parameter objects to use them instead of using DTO as parameter in GitConnection methods.
2016-11-03 16:32:50 +02:00
Vladyslav Zhukovskyi c7b4623b61 Get projects after workspace has been already initialized (#2867)
* Get projects after workspace has been already initialized

This commit also includes API reorganization. Move client service implementations from the core-api to the core-app. Code cleanup. Removed dependency to the javax.inject from the core-api to avoid duplicate using @Inject annotation from the com.google.inject and javax.inject. (Client side uses only com.google.inject.Inject annotation)

Created two components:
WsAgentInitializer - which is responsible to initialize workspace component on the client side. Component consumes developer machine object at startup stage.
WsAgentMessageBusProvider - which is responsible to initialize message bus after workspace has been initialized.

API movements:
OAuthServiceClient was moved from the org.eclipse.che.ide.api.auth to the org.eclipse.ide.api.oauth

* Move WsAgentInitizalizer to the core-app

* Add @Override annotation

* Add @Override annotation

* Remove @Singleton annotation

* Remove @Singleton annotation

* Revert javax.inject.Inject annotation

* Update codebase due to changes in the master branch
2016-11-03 15:29:08 +02:00
Vitalii Parfonov 5c11cb4f09 Set Log level to warn (#2961)
Signed-off-by: Vitalii Parfonov <vparfonov@codenvy.com>
2016-11-02 16:19:16 +02:00
Aleksandr Andrienko 2a0081e174 CHE-2927: Add logs for active containers checked by DockerContainerCleaner. (#2950)
Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
2016-11-01 17:53:08 +02:00
Valeriy Svydenko ba7c0bbcaf ARTIK-152: Show all machines in the Processes panel (#2909)
ARTIK-152: show machines which aren't in ws runtime
2016-10-31 19:02:06 +02:00
Florent BENOIT 7a1aeea2a5 #2059 SSH improvement : whenever as a user I open up the SSH panel, it scrolls to the bottom in the IDE. It should scroll to the top
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-10-31 10:36:13 -06:00
Mykola Morhun d74b24fb07 Fix broken links section in docker-compose recipe (#2850) 2016-10-31 16:22:48 +02:00
Anatoliy Bazko eb03a17917 CHE-2832: Add servers to Agent description and propagate them to Workspace Runtime (#2868) 2016-10-31 09:17:15 +02:00
Anatoliy Bazko 5f1913dcbd CHE-2564: Fix build (#2929) 2016-10-28 14:51:44 +03:00
Vitaliy Guliy 0eb25d29f7 CODENVY-932 Stopped IDE should provide clear state and options to the user (#2914)
* CODENVY-932 Stopped IDE should provide clear state and options to the user

Signed-off-by: Vitaliy Guliy <vguliy@codenvy.com>

* CODENVY-932 Stopped IDE should provide clear state and options to the user

* CODENVY-932 Stopped IDE should provide clear state and options to the user

* CODENVY-932 Stopped IDE should provide clear state and options to the user
2016-10-27 17:48:03 +03:00
Mihail Kuznyetsov 494442e11a CHE-2015 Rename configuration properties 2016-10-27 17:29:46 +03:00
Evgen Vidolob 9f96c77836 #2459 store and restore IDE state: opened files, opened part and their size (#2880)
* #2459 store IDE state (opened files, opened part and size) and restore IDE state
2016-10-27 11:57:10 +03:00
Vitalii Parfonov a45ca7cef5 Fix code after mergeing eclipse/che#1571 (#2906)
Signed-off-by: Vitalii Parfonov <vparfonov@codenvy.com>
2016-10-27 00:17:41 +03:00
Alex Tugarev 0c9edb68a4 Aligning interface 'Action' to return true, if the action was executed successfully; also extending 'OrionKeyStrokeOverlay' and 'KeyBinding' to be able to create character based key bindings. (#1571)
Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
2016-10-26 23:08:05 +03:00
Kaloyan Raev cc5fe6e62f Render hover messages according to LSP specification. (#2856)
If the hover message consists of multiple MarkedStrings then they should
be joined via double newline, so they are rendered as seperate Markdown
paragraphs.

If a MarkedString has the `language` property provided then it should be
rendered as a Markdown code block.

Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>
2016-10-26 22:09:17 +03:00
Roman Iuvshin 825af31a5d [maven-release-plugin] prepare for next development iteration 2016-10-26 09:37:49 +00:00
Roman Iuvshin 7da1d4a910 [maven-release-plugin] prepare release 5.0.0-M6 2016-10-26 09:37:45 +00:00
Vitaliy Guliy 511553ca06 Revert "CHE-2775 Amount of machines is not correctly displayed in process tree" (#2886) 2016-10-25 17:03:22 +03:00
Vitaliy Guliy d4ea175aab CHE-2775 Amount of machines is not correctly displayed in process tree (#2885)
Signed-off-by: Vitaliy Guliy <vguliy@codenvy.com>
2016-10-25 16:57:48 +03:00
Evgen Vidolob e053e1a778 #2695 add checks for null value for some LS capabuilities (#2884) 2016-10-25 16:10:41 +03:00
Evgen Vidolob 31df15d159 #2729 do not send file operation messages if LS doesn't exist (#2881) 2016-10-25 16:10:28 +03:00
Vitalii Parfonov 9951639518 CHE-2098:fix generation Project with Maven Archetype. (#2872)
Archetype Plugin parameters transfer to the REST Project API via query parameters

Signed-off-by: Vitalii Parfonov <vparfonov@codenvy.com>
2016-10-25 13:36:19 +03:00
Florent BENOIT 2dcbb23521 CHE-2811 Launch all user commands by using bash if not defined. (#2838)
For example now that sh is default one, previous user commands may fail. If the commands are launched on sh, then /bin/sh will need to be defined as shell invoker

Change-Id: I19e2065bfd9e6ee93a5d899cb67cd5b9ece76f62
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-10-20 18:27:50 +02:00
RomanNikitenko 93bdd31205 CHE-2794. Provide machine node to run new terminal (#2823)
Signed-off-by: Roman Nikitenko <rnikitenko@codenvy.com>
2016-10-20 18:40:07 +03:00
Aleksandr Andrienko f2661c97f4 Fix test which periodically failed. (#2835)
Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
2016-10-20 11:32:49 +03:00
Mario Loriedo a33fdf142b Add build args support in compose files (CHE-2661)
Signed-off-by: Mario Loriedo <mloriedo@redhat.com>
2016-10-18 22:14:55 -06:00
Aleksandr Andrienko 291dbb89ba CHE-2435: Clean up workspace files after remove workspace. (#2544)
Signed-off-by: Aleksandr Andrienko <aandrienko@codenvy.com>
2016-10-18 23:05:24 +03:00
Artem Zatsarynnyi 66e2d89095 Fix failing Closure Compiling in case GWT JavaScript compiler output style set to DETAILED mode (#2796)
When I enable Closure Compiler and set GWT JavaScript compiler output style to DETAILED mode
by providing the following configuration of gwt-maven-plugin:
<configuration>
    <modules>
        <module>org.eclipse.che.ide.IDE</module>
    </modules>
    <style>DETAILED</style>
    <enableClosureCompiler>true</enableClosureCompiler>
</configuration>

I get the following compilation error:
[INFO]    Compiling 4 permutations
[INFO]       Compiling permutation 0...
[ERROR] error optimizing:JSC_VAR_ARGUMENTS_SHADOWED_ERROR. Shadowing "arguments" is not allowed at org/eclipse/che/plugin/maven/client/command/MavenCommandModel.java line 25 : 0
[INFO]       [ERROR] Unexpected internal compiler error
[INFO] java.lang.RuntimeException: Shadowing "arguments" is not allowed
[INFO] 	at com.google.gwt.dev.js.ClosureJsRunner.compile(ClosureJsRunner.java:207)
[INFO] 	at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$PermutationCompiler.generateJavaScriptCode(JavaToJavaScriptCompiler.java:524)
[INFO] 	at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$PermutationCompiler.compilePermutation(JavaToJavaScriptCompiler.java:347)
[INFO] 	at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.compilePermutation(MonolithicJavaToJavaScriptCompiler.java:296)
[INFO] 	at com.google.gwt.dev.jjs.UnifiedAst.compilePermutation(UnifiedAst.java:143)
[INFO] 	at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:197)
[INFO] 	at com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:50)
[INFO] 	at com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:74)
[INFO] 	at java.lang.Thread.run(Thread.java:745)
[INFO]       [ERROR] Unrecoverable exception, shutting down
[INFO] com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
[INFO] 	at com.google.gwt.dev.javac.CompilationProblemReporter.logAndTranslateException(CompilationProblemReporter.java:112)
[INFO] 	at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$PermutationCompiler.compilePermutation(JavaToJavaScriptCompiler.java:363)
[INFO] 	at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.compilePermutation(MonolithicJavaToJavaScriptCompiler.java:296)
[INFO] 	at com.google.gwt.dev.jjs.UnifiedAst.compilePermutation(UnifiedAst.java:143)
[INFO] 	at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:197)
[INFO] 	at com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:50)
[INFO] 	at com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:74)
[INFO] 	at java.lang.Thread.run(Thread.java:745)
[INFO]       [ERROR] Not all permutation were compiled , completed (0/4)

It means that using 'arguments' as a name of a method parameter is forbidden by Google Closure Compiler because, it seems, that it's reserved for internal using here:
https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/SyntacticScopeCreator.java#L38
2016-10-17 12:51:56 +03:00
Anatoliy Bazko c3599d9c89 CHE-2456: Svn switch action (#2758) 2016-10-13 12:49:46 +03:00
Florent BENOIT a6c5a75fb1 Annotation used is not the expected one (#2757)
Change-Id: I9a55703457218022487025e2570864f661d005bf
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-10-11 17:44:22 +02:00
Florent BENOIT f2c8529792 Use of /bin/sh for script invocation
Allow to override /bin/sh by a "shell" attribute in commands

Change-Id: I19b95868c44f473552a153e29d1ba41abcc19aef
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
2016-10-11 15:00:46 +02:00
Artem Zatsarynnyi 2ba8cdfa42 Client command framework improvements (#2730)
Client command framework improvements

1. Introduced contextual commands.
2. Added ${explorer.current.file.parent.path} macro.
3. Cleaned up unused resources.
4. Refactored code in order to simplify it and made it more clear and understandable:

- simplified a way of providing new command types;
- command types api moved to ide-api to avoid unnecessary dependency on machine extension;
- command management extracted from EditCommandsPresenter to the separate facade - CommandManager. So EditCommandsPresenter now doesn't perform several http requests manipulating with commands but only one;
- refactored code related to the obsolete terminology CommandPropertyValueProvider -> Macro;
- macro can provide its description (it will be really useful for showing it in UI);
- macros processing separated from the command execution and extracted to the separate component MacroProcessor since it's used not only for the commands but in debug configurations for example.
2016-10-11 11:35:42 +03:00
Vitaliy Guliy 032104ab48 CHE-2472 Do not try to connect to terminal if terminal agent not found in machine config (#2744)
Signed-off-by: Vitaliy Guliy <vguliy@codenvy.com>
2016-10-10 12:31:42 +03:00
Kaloyan Raev fbac7eaacc Fix #2471: Send json/schemaAssociations notification (#2474)
The VS Code's JSON language server expects a 'json/schemaAssociations'
notification to associate JSON files to JSON schemas. This activates
capabilities like code completion, validation and hover without the need
to add a '$schema' key.

This change implements an extension of the JsonBasedLanguageServer that
registers as ServerInitializerObserver and sends the
'json/schemaAssociations' notification on the 'onServerInitialized'
event.

Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>
2016-10-10 11:41:32 +03:00
Roman Iuvshin b986091e4a [maven-release-plugin] prepare for next development iteration 2016-10-07 10:22:41 +00:00
Roman Iuvshin 8f799b4c28 [maven-release-plugin] prepare release 5.0.0-M5 2016-10-07 10:22:37 +00:00
RomanNikitenko f98b226faa Update machine node when we have all info about machine (#2723)
Signed-off-by: Roman Nikitenko <rnikitenko@codenvy.com>
2016-10-06 18:37:05 +03:00
Kaloyan Raev 902912b5b9 Fixes #2592: Filter code completion proposals from language server (#2658)
* Fixes #2592: Filter code completion proposals from language server

Implements filtering based on the existing FuzzyMatches used for the
GoToSymbolAction.

Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>

* Add empty line at end of file.
2016-10-06 14:39:53 +03:00
Kaloyan Raev 13a1a52f2e Fixes #2437: Apply multi-edit formatting without messing up the document (#2719)
* Fixes #2437: Shift remaining ranges when applying multi-edit formatting

A formatting request to a language server may result in a list of
multiple text edits. The ranges of all these text edits are based on the
yet unmodified document. Che applies the edits to the document one by
one. If the inserted text has a different length than the replaced text
then the ranges of the remaining edits become invalid and they must be
shifted appropriately.

This patch shifts the ranges as necessary. To achieve this, it first
converts the ranges based on lines and characters to linear ranges,
which are easier for shifting.

Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>

* Simplify the shifting logic

Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>

* Reworked: just applying the text edits backwards is enough
2016-10-06 14:29:14 +03:00
Kaloyan Raev 9530a6206b Fix default PHP content (#2721)
Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>
2016-10-06 14:22:20 +03:00
RomanNikitenko 045e32a564 CHE-2702. Fix displaying of terminal and ws agent logs at starting/re… (#2715)
* CHE-2702. Fix displaying of terminal and ws agent logs at starting/restarting workspace

Signed-off-by: Roman Nikitenko <rnikitenko@codenvy.com>
2016-10-05 21:40:03 +03:00
Vitalii Parfonov 0003b2324b che#2608: added vfs exlude filters, small vfs watcher fix, improved project tree changes detection algorithm (#2713)
Signed-off-by: Dmitry Kuleshov <dkuleshov@codenvy.com>
2016-10-05 18:41:00 +03:00
Vitalii Parfonov f29badd970 Add default content for PHP project (#2710)
* Add default content for PHP project

Signed-off-by: Vitalii Parfonov <vparfonov@codenvy.com>
2016-10-05 16:39:15 +03:00
Vitaliy Guliy 7e653b57c9 CHE-2477 Move Git and Subversion menus to the left (#2708)
Signed-off-by: Vitaliy Guliy <vguliy@codenvy.com>
2016-10-05 16:18:02 +03:00
Igor Vinokur 11036470a0 CODENVY-687: Сache svn credentials instead of storing them in credentials provider (#2672) 2016-10-05 14:06:35 +03:00