Commit Graph

11 Commits (6a4e3831cd46bcd61746e7293162336638be2f4e)

Author SHA1 Message Date
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