Commit Graph

261 Commits (b2b92b5463afa4fac9b018d9d00a3be3e90abb62)

Author SHA1 Message Date
Artem Zatsarynnyi b851196df5 Merge branch 'master' into spi 2017-07-20 12:30:15 +03:00
Artem Zatsarynnyi fdcb210bfb Remove obsolete IDE events (#5751) 2017-07-20 11:46:00 +03:00
Thomas Mäder 6e743678ea Fix LSP didChange parameters #4978 (#5002)
* Add document changing listener support

Signed-off-by: Thomas Mäder <tmader@redhat.com>

* Use document changin notification to compute correct didChange
parameters

Signed-off-by: Thomas Mäder <tmader@redhat.com>

* Make sure to use the proper document instance.

Signed-off-by: Thomas Mäder <tmader@redhat.com>

* Renamed DocumentChangeEvent->DocumentChangedEvent

Signed-off-by: Thomas Mäder <tmader@redhat.com>
2017-07-20 11:45:02 +03:00
Roman Iuvshyn 185273f8b9 RELEASE: Set next development version (#5734)
* RELEASE: Set next development version
2017-07-19 12:45:32 +03:00
Artem Zatsarynnyi 51cd595497 Merge branch 'master' into spi 2017-07-14 16:03:43 +03:00
Oleksandr Andriienko 7b9c2a189a Update lsp4J lib to newer version. (#5292)
* #5360 Upgrade LSP4J library version to 0.2.0
Signed-off-by: Yevhen Vydolob <evidolob@codenvy.com>
2017-07-14 11:05:20 +03:00
Yevhen Vydolob 91b543547e #5380 use Orion annotation model instead 'showProblems' method (#5518)
Signed-off-by: Yevhen Vydolob <evidolob@codenvy.com>
2017-07-14 09:09:57 +03:00
Artem Zatsarynnyi da2b92c66e Merge branch 'master' into spi 2017-07-12 11:37:57 +03:00
Artem Zatsarynnyi 14790b609c Move JSON-RPC endpoints ids to constants (#5612) 2017-07-12 10:21:19 +03:00
Thomas Mäder 9f88048572 Add support for using multiple language servers to be registered for the same files #4609 (#5442)
Add support for using multiple language servers for the same files.

Signed-off-by: Thomas Mäder <tmader@redhat.com>
2017-07-10 10:20:30 +02:00
Thomas Mäder 092505d915 Support for multiple highlights
Signed-off-by: Thomas Mäder <tmader@redhat.com>
2017-07-07 13:36:36 +02:00
Artem Zatsarynnyi 1a2eaaf180 Rework code dependent on deprecated WsAgentStateEvent 2017-07-04 17:22:06 +03:00
Artem Zatsarynnyi 72fd6d0b6e Merge branch 'master' into spi 2017-07-04 11:54:17 +03:00
Thomas Mäder 9027aa4780 Ability to register language servers for file names instead of extensions #5107 (#5156)
* Register languages by file name

Signed-off-by: Thomas Mäder <tmader@redhat.com>
2017-07-03 17:18:25 +02:00
Artem Zatsarynnyi 1ba5f63d8f Merge branch 'master' into spi 2017-06-29 17:45:59 +03:00
Roman Iuvshin eab04ddd6b RELEASE: Set next development version 2017-06-29 07:59:05 +00:00
Artem Zatsarynnyi ad2460999e Merge branch 'master' into spi 2017-06-22 08:27:59 +03:00
Roman Iuvshin 513aa19ebd RELEASE: Set next development version 2017-06-21 13:04:16 +00:00
Artem Zatsarynnyi cce79bf469 Merge branch 'master' into spi
# Conflicts:
#	assembly/assembly-wsmaster-war/pom.xml
#	infrastructures/docker/pom.xml
#	plugins/plugin-docker/che-plugin-docker-compose/pom.xml
#	plugins/plugin-github/che-plugin-github-pullrequest/src/main/java/org/eclipse/che/plugin/pullrequest/client/GitHubHostingService.java
#	plugins/plugin-testing-java/plugin-testing-junit/che-plugin-testing-junit-ide/src/main/java/org/eclipse/che/plugin/testing/junit/ide/action/RunAllTestAction.java
#	plugins/plugin-testing-java/plugin-testing-junit/che-plugin-testing-junit-ide/src/main/java/org/eclipse/che/plugin/testing/junit/ide/action/RunClassTestAction.java
#	plugins/plugin-testing-java/plugin-testing-testng/che-plugin-testing-testng-ide/src/main/java/org/eclipse/che/plugin/testing/testng/ide/action/RunAllTestAction.java
#	plugins/plugin-testing-java/plugin-testing-testng/che-plugin-testing-testng-ide/src/main/java/org/eclipse/che/plugin/testing/testng/ide/action/RunClassTestAction.java
#	plugins/plugin-testing-java/plugin-testing-testng/che-plugin-testing-testng-ide/src/main/java/org/eclipse/che/plugin/testing/testng/ide/action/RunTestXMLAction.java
#	pom.xml
#	wsmaster/che-core-api-machine/pom.xml
2017-06-15 10:35:47 +03:00
Roman Iuvshin eb2fa0eeed RELEASE: Set next development version 2017-06-14 07:13:04 +00:00
Dmitry Kuleshov 0fc83c5df9 Fixed freezing of IDE in case of LS initialization timeout or failure (#5341) 2017-06-13 17:45:24 +03:00
Artem Zatsarynnyi 1d5648fd6e Fix building project with maven (#5354) 2017-06-12 23:48:28 +03:00
Artem Zatsarynnyi 11abb61488 Merge branch 'master' into spi 2017-06-12 10:48:59 +03:00
Valeriy Svydenko 6a4e3831cd CHE-5154: use new implementation of the Language Server Protocol for python (#5267) 2017-06-07 10:07:04 +00:00
Artem Zatsarynnyi 212bbc7808 Merge branch 'master' into spi 2017-06-01 10:45:08 +03:00
Roman Nikitenko 1c7818f14e CHE-3570. Add ability to turn on/off autosave mode for editor content
Signed-off-by: Roman Nikitenko <rnikitenko@codenvy.com>
2017-05-31 13:29:01 +00:00
Artem Zatsarynnyi ad3bc4d739 Use Workdspace's and Factory's model objects in IDE (#5221) 2017-05-29 16:19:43 +03:00
Artem Zatsarynnyi fa91db1f4e Merge branch 'master' into spi 2017-05-29 11:25:30 +03:00
Vitalii Parfonov a2174799df Wait and check LS process (#5176)
Signed-off-by: Vitalii Parfonov <vparfonov@codenvy.com>
2017-05-25 17:46:56 +03:00
Dmitry Kuleshov cc8fd2473a Switch TestDocument (LSP) service to the websocket JSON-RPC (#5186) 2017-05-25 16:44:42 +03:00
Artem Zatsarynnyi 993e8df52e Merge branch 'master' into spi 2017-05-24 12:16:17 +03:00
Roman Iuvshin 9fbf173eb9 RELEASE: Set next development version 2017-05-24 07:30:41 +00:00
Artem Zatsarynnyi d44a2a87a9 Repair of Processes panel (#5153) 2017-05-22 14:53:53 +03:00
Artem Zatsarynnyi e914a59c3e Merge branch 'master' into spi 2017-05-17 11:03:00 +03:00
Vitalii Parfonov c6792a9f27 CHE-3721: Show Find Project Symbol only if capability exist (#4925)
Signed-off-by: Vitalii Parfonov <vparfonov@codenvy.com>
2017-05-16 13:35:39 +03:00
Alexander Garagatyi 21c4589086 Merge branch 'master' into spi
Signed-off-by: Alexander Garagatyi <agaragatyi@codenvy.com>
2017-05-15 12:27:23 +03:00
Artem Zatsarynnyi 1ae101d7ab clean-up IDE code 2017-05-14 17:45:49 +03:00
Artem Zatsarynnyi 73c9cc46e1 rework client start-up components 2017-05-13 12:11:11 +03:00
Roman Iuvshin b3ae33acf5 RELEASE: Set next development version 2017-05-10 10:54:42 +00:00
Roman Iuvshin 6d88cf8c73 [maven-release-plugin] prepare for next development iteration 2017-04-25 18:19:17 +00:00
Roman Iuvshin d7f023fd89 [maven-release-plugin] prepare release 5.9.0 2017-04-25 18:19:10 +00:00
Vitalii Parfonov f57a4f2cf0 Fixing failed release: set correct folder for generated source
Signed-off-by: Vitalii Parfonov <vparfonov@codenvy.com>
2017-04-25 20:51:37 +03:00
Sergii Kabashniuk 86809b9ad0 Fix compilation issues that is preventing release 2017-04-25 19:12:12 +03:00
Sergii Kabashniuk 2ee007fa48 Fix compilation issues that is preventing release 2017-04-25 18:57:29 +03:00
Sergii Kabashniuk 43112cf746 Fix compilation issues that is preventing release 2017-04-25 18:38:15 +03:00
Sergii Kabashniuk c4de2266da Fix compilation issues that is preventing release 2017-04-25 17:58:12 +03:00
Sergii Kabashniuk 5546c8649a Fix compilation issues that is preventing release 2017-04-25 17:29:06 +03:00
Roman Iuvshin 927aef3b32 fix build 2017-04-25 13:34:33 +00:00
Sergii Kabashniuk b016d619cb 3656 Port Languages Server Support to lsp4j (#4765)
* Initial import from https://github.com/eclipse/che/pull/4160

* Added formatting for changed files

* Organize imports

* Added missing logback and removed unused dependency

* Fix plugin-languageserver compilation issue

* Move lsp4j dependency to lsp plugin
2017-04-19 17:33:59 +03:00
Thomas Mäder 1ba9c73125 3957 code action (#4345)
* CHE-3957: Code Action
Signed-off-by: Thomas Mäder <tmader@redhat.com>

* Exclude new file from license check.

Signed-off-by: Thomas Mäder <tmader@redhat.com>

* Addressing PR comments (style & formatting issues)

Signed-off-by: Thomas Mäder <tmader@redhat.com>

* Extracted anonymous to inner class

Signed-off-by: Thomas Mäder <tmader@redhat.com>
2017-04-13 17:21:55 +03:00
Roman Iuvshin 7805c146e6 [maven-release-plugin] prepare for next development iteration 2017-04-13 11:07:13 +00:00
Roman Iuvshin e8107fd96c [maven-release-plugin] prepare release 5.8.0 2017-04-13 11:07:06 +00:00
Roman Iuvshin 840ae853f8 Revert "RELEASE: set minor change version"
This reverts commit e23b9257a3.
2017-04-11 20:55:24 +03:00
Roman Iuvshin e23b9257a3 RELEASE: set minor change version 2017-04-11 18:10:45 +03:00
Roman Iuvshin 08d4d0f25c [maven-release-plugin] prepare for next development iteration 2017-04-06 14:28:39 +00:00
Roman Iuvshin 53a0325213 [maven-release-plugin] prepare release 5.7.0 2017-04-06 14:28:33 +00:00
Roman Iuvshin 342f103654 [maven-release-plugin] prepare for next development iteration 2017-03-30 12:25:35 +00:00
Roman Iuvshin e6e4a652cc [maven-release-plugin] prepare release 5.6.0 2017-03-30 12:25:28 +00:00
Evgen Vidolob 27125263d0 #4430 move orion editor plugin to ide core (#4539)
* #4430 move orion editor plugin to ide core

Signed-off-by: Even Vidolob <evidolob@codenvy.com>
2017-03-28 10:19:24 +03:00
Artem Zatsarynnyi bbd0c1abb2 Introduce Intelligent Commands (#4389)
Introduce Intelligent Commands
2017-03-23 18:23:17 +02:00
Roman Iuvshin e7588aa2b3 [maven-release-plugin] prepare for next development iteration 2017-03-15 14:59:35 +00:00
Roman Iuvshin 69cf9f5528 [maven-release-plugin] prepare release 5.5.0 2017-03-15 14:59:28 +00:00
Roman Iuvshin ceff3938ff [maven-release-plugin] prepare for next development iteration 2017-03-02 18:33:12 +00:00
Roman Iuvshin 8ed6e10476 [maven-release-plugin] prepare release 5.4.0 2017-03-02 18:33:06 +00:00
Roman Iuvshin 6edd8f8cf7 set proper license headers 2017-02-21 19:45:34 +02:00
Xavier Coulon 5a78c0b70a Issue #1802 - Document highlightings (#3343)
Providing support for occurrences highlighting, with a
restriction due a bug in the io.typefox.lsapi.services 0.3.0
bundle, which assumes that the language server will return
a single occurrence to highlight, instead of a list of
occurrences.

Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
2017-02-21 15:53:15 +02:00
Roman Iuvshin e71c7b5671 [maven-release-plugin] prepare for next development iteration 2017-02-17 11:04:07 +00:00
Roman Iuvshin c071c65aa2 [maven-release-plugin] prepare release 5.3.0 2017-02-17 11:03:59 +00:00
Roman Iuvshin 0dd0dea686 [maven-release-plugin] prepare for next development iteration 2017-02-01 13:31:32 +00:00
Roman Iuvshin d138c3623f [maven-release-plugin] prepare release 5.2.0 2017-02-01 13:31:25 +00:00
Vitaliy Guliy 360ced60a6 CHE-2617 Improve Find capabilities in IDE (#3806)
Signed-off-by: Vitaliy Guliy <vguliy@codenvy.com>
2017-01-25 11:48:25 +02:00
Roman Iuvshin 05a7cd53b5 [maven-release-plugin] prepare for next development iteration 2017-01-18 16:33:24 +00:00
Roman Iuvshin 41d3739928 [maven-release-plugin] prepare release 5.1.0 2017-01-18 16:33:17 +00:00
Kaloyan Raev 282945bfa0 CHE-3218: improves the documentation popup for LSP code completion (#3224)
Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>
2017-01-12 23:49:56 +02:00
Roman Iuvshin 9904460818 [maven-release-plugin] prepare for next development iteration 2017-01-06 11:48:49 +00:00
Roman Iuvshin b5a7d04ca2 [maven-release-plugin] prepare release 5.0.0 2017-01-06 11:48:42 +00:00
Mihail Kuznyetsov 0e8b21ad3f Set new license year 2017-01-04 17:10:31 +02:00
Roman Iuvshin abc1367c1d remove milestone from version 2016-12-23 15:04:56 +02:00
Roman Iuvshin 813d930275 change version to M10-SNAPSHOT 2016-12-22 11:48:31 +02:00
Vladyslav Zhukovskyi d15915cf94 Remove deprecated getPath method and use getLocation instead (#3322) 2016-12-09 12:33:45 +02:00
Evgen Vidolob fa47b55692 #3127 send language id in document open message, fix range in incremental synchronize (#3305)
Signed-off-by: Evgen Vidolob <evidolob@codenvy.com>
2016-12-09 10:09:42 +02:00
Vitaliy Guliy b768872294 CHE-2463 Improve Panels behaviors in IDE (#3151)
Signed-off-by: Vitaliy Guliy <vguliy@codenvy.com>
2016-12-07 17:45:37 +02:00
Roman Iuvshin 7850cc2908 [maven-release-plugin] prepare for next development iteration 2016-12-07 12:34:30 +00:00
Roman Iuvshin 1c15a44844 [maven-release-plugin] prepare release 5.0.0-M8 2016-12-07 12:34:25 +00:00
Xavier Coulon a3464548a8 Issue 1793: Language Server Protocol: ShowMessage Notification feature (#3124)
Added a ShowMessageProcessor and a ShowMessageMessager classes to process
incoming `window/showMessage` notification and display a notification
in `float` mode in the UI if the message type is `error` or `warning`, in
the events panel otherwise. Note that the notification type for `error`
messages is incorrectly set to `Log` because of a bug in the typefox
dependency: `io.typefox.lsapi.MessageType#Log` has the value `1` instead of
`4`.

This issue depends on https://github.com/eclipse/che/pull/3113
(Add a 'warning' state for the notifications)

To test the pull request, please follow the instructions on
https://github.com/eclipse/che/pull/3123 to run the 'test-lang' server.
Once in the workspace, create a project, add a `foo.test` file (the
Language Server support for the 'test-lang' will be activated), then
type the following line
> window/showMessage:error: a message
and wait for the editor to save the changes. This will trigger a
`window/showMessage` notification from the 'test-lang' server in the Che UI.

Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
2016-12-05 16:57:05 +02:00
Kaloyan Raev f1710e6a9b Performance improvements and other fixes in code completion (#3146)
* Avoid overloading the DOM tree of the ContentAssistWidget

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

* Ensure the code assist widget is closed when applying proposal

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

* Respect isIncomplete flag in the completion result

If the isIncomplete flag is false, i.e. the completion result is
complete, then additional typing for the same word should not trigger a
new completion request. The latest completion result should be reused.

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

* Fix flickering between keystrokes during code completion

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

* Fine tune the rules for making new completion request

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

* Set the correct offset when applying code completion

* Force a completion request message on Ctrl+Space

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

* Fixed retrieval of CompletionItem document via Resolve request

Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>
2016-11-30 16:17:14 +02:00
Roman Iuvshin 52f84d9092 [maven-release-plugin] prepare for next development iteration 2016-11-10 11:37:24 +00:00
Roman Iuvshin 315056731e [maven-release-plugin] prepare release 5.0.0-M7 2016-11-10 11:37:20 +00:00
Vladyslav Zhukovskii 45135c33f7 Revert changes after #2867 2016-11-09 18:23:41 +02:00
Kaloyan Raev abc2238244 Fixes #2728: Respect user settings when sending formatting options to LS (#2735)
* Fixes #2728: Respect user settings when sending formatting options to LS

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

* Remove spaces in empty line
2016-11-08 17:34:21 +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
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
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
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
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
Anatoliy Bazko e079338a11 CHE-2552: Language server module refactoring (#2677) 2016-10-04 11:49:24 +03:00
Evgen Vidolob 71600b7fc7 #1801 implement 'Signature Help' LS feature (#2645) 2016-09-29 12:27:59 +03:00
Roman Iuvshin 33944c6ec1 set M5 version 2016-09-27 16:08:19 +03:00
Roman Iuvshin 152be21b4f [maven-release-plugin] prepare for next development iteration 2016-09-26 14:19:41 +00:00
Roman Iuvshin 89ab012035 [maven-release-plugin] prepare release 5.0.0-M3 2016-09-26 14:19:37 +00:00
Evgen Vidolob 1055326018 #2574 do not send file type to the client if LS cannot be run 2016-09-26 16:34:51 +03:00
Xavier Coulon e34a03855d Fix LanguageServerException message for CSharp LS (#2532)
Signed-off-by: Xavier Coulon <xcoulon@redhat.com>
2016-09-21 18:38:45 +03:00
Roman Iuvshin 900ccbb807 set M3 version 2016-09-20 17:31:42 +03:00
Anatoliy Bazko baf73a60d4 CHE-2500: Use provider to prevent circular dependncy (#2502) 2016-09-20 13:09:02 +03:00
Kaloyan Raev f77d7f9b42 InitializeParams should include an empty ClientCapabilities (#2466)
The protocol specifies that the InitializeParams object contains a
capabilities property. Eclipse Che does not define it, so there are
language servers that fails to initialize because of this.

Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>
2016-09-19 14:57:31 +03:00
Anatoliy Bazko c48a69f961 CHE-1287: Support for Language Server Protocol (#2452) 2016-09-16 12:45:02 +03:00