Commit Graph

37 Commits (9abfec7c5fbf964ccae93eb4e4487efb54db59ff)

Author SHA1 Message Date
Dmytro Kulieshov 54bf493ee7
Add default language descriptions set (#8256) 2018-01-16 15:04:11 +02:00
Mykhailo Kuznietsov 2c2bd6637c
Set new year in license headers (#8244) 2018-01-11 16:04:49 +02:00
Dmytro Kulieshov 7e2b64fc01
Provide JSON-RPC service for Language Service Communications (#7840) 2017-12-15 16:16:37 +02:00
Dmytro Kulieshov 0f635cf122
Added JSON-RPC back-end to Project API and removed deprecated VFS classes (#7380) 2017-11-20 12:02:46 +02:00
Florent BENOIT 3f262e620e Cleanup some Mockito deprecated usage (che6) (#6864)
* Cleanup some Mockito deprecated usage
org.mockito.Matchers —> org.mockito.ArgumentMatchers
org.mockito.runners.MockitoJUnitRunner —> org.mockito.junit.MockitoJUnitRunner

Change-Id: Icf7351cb58e0f42fa95885c2d2cf6b5e98206c35
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2017-10-21 09:07:43 +02:00
Florent BENOIT 6a95b6d74a Apply google format v1.4 https://github.com/google/google-java-format/releases/tag/google-java-format-1.4
Change-Id: I5df30c23165df1fd39eef4c57893bebd1d681c1d
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
2017-10-19 22:23:04 +02:00
Yevhen Vydolob 59abab922c Language Server Protocol Rename implementation (#6615)
* #1806 add service and UI for rename feature
Signed-off-by: Yevhen Vydolob <evidolob@codenvy.com>
2017-10-09 16:06:53 +02:00
Thomas Mäder 7faecbadc9 5485 apply workspace edit (#5955)
* Add ApplyWorkspaceEditAction 

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

* Fix copyright statement

Signed-off-by: Thomas Mäder <tmader@redhat.com>
2017-09-07 08:49:36 +03:00
Thomas Mäder 5296be552b Extend LS grace period an return early when done. (#6111)
Signed-off-by: Thomas Mäder <tmader@redhat.com>
2017-09-06 09:41:41 +02:00
Thomas Mäder 5d9931957b Fix wait condition on parallel initialize calls for LS (#6141) 2017-09-06 09:30:49 +02:00
Thomas Mäder 388cc95eb2 Properly prefix path coming from IDE (#6112)
Signed-off-by: Thomas Mäder <tmader@redhat.com>
2017-09-05 11:55:33 +02:00
Yevhen Vydolob 2e798d6fce Add implementation for 'Show message request' LS feature (#5860)
* #1794 implement 'ShowMessageRequest'
2017-09-04 16:12:25 +02:00
Yevhen Vydolob 47f2ae56bc #1796 log telemetry event (#6079)
Signed-off-by: Yevhen Vydolob <evidolob@codenvy.com>
2017-09-04 10:20:46 +02:00
Sergii Kabashniuk 5b373e6cf5 Used Google Java Codestyle (#5851) 2017-08-18 17:00:58 +03:00
Yevhen Vydolob d7d734dc6a #1799 implement DidChangeWatchedFiles Notification (#6007)
Signed-off-by: Yevhen Vydolob <evidolob@codenvy.com>
2017-08-16 11:52:59 +03:00
Mykhailo Kuznietsov 69d5148385 Changed copyright owner to "Red Hat, Inc." in license headers (#5964)
Change license header contributor to Red Hat, Inc.
2017-08-11 10:46:58 +03:00
Roman Nikitenko d50939fe7e CHE-5334. Fix hover state
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
2017-08-08 17:59:35 +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
Vitalii Parfonov af4248f810 Fix using project path and fileUri (#5625)
Signed-off-by: Vitalii Parfonov <vparfonov@redhat.com>
2017-07-13 10:03:33 +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
Vitalii Parfonov ea372fbb9e This PR fixes #5528 (#5533)
* Check LS launcher for ability to launch
* This PR fixes #5528 by filtering contributed languages and launchers for their ability to launch.
Signed-off-by: Thomas Mäder <tmader@redhat.com>
Signed-off-by: Vitalii Parfonov <vparfonov@redhat.com>
2017-07-04 18:01:18 +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
Yevhen Vydolob 1efb87a1e8 #5373 fix sending ClientCapabilities object by removing anonymous class (#5376)
Signed-off-by: Yevhen Vydolob <evidolob@codenvy.com>
2017-06-14 14:49:09 +03: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
Yevhen Vydolob 2d260702d8 #5311 fix NPE, send JSON schemas to JSON LS (#5343)
Signed-off-by: Even Vidolob <evidolob@codenvy.com>
2017-06-13 10:00:49 +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
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
Sergii Kabashniuk a6a569b9f7 Concept of Minimal and Full assembly (#4578)
Concept of Minimal and Full assembly
2017-04-14 10:05:03 +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
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
Mihail Kuznyetsov 0e8b21ad3f Set new license year 2017-01-04 17:10:31 +02: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
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
Anatoliy Bazko e079338a11 CHE-2552: Language server module refactoring (#2677) 2016-10-04 11:49:24 +03:00