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>
* 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>
Fix get() method of JGitConfigImpl class.
Previous behavior:
If the same property is present in the global git config file, and in the git repository config file, execution of gitConnection.getConfig().get(<property name>) returnes property from global git config file.
Fix filtering by MimeType for now MimeTypeFilter skip only binary like: image/, video/ and etc
Add ability set search Whole world option
Signed-off-by: Vitalii Parfonov <vparfonov@codenvy.com>
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.
Allow to configure git importer to convert subdirectory
cloned during sparce checkout to top level project.
Parameter name - convertToTopLevelProject.
This parameter working if keepDir is not empty and keepVcs=false
Add support for skip and maxCount when calling the LOG API.
Add support to get the log for a specific folder or file in the repository.
For every commit that is returned when calling the LOG API, the following data was added:
The author of the commit
A list of branch names that the commit is related to.
A list of file names that were changed/deleted/added in the commit.
A list of commit parents (to enable for example clients to paint a graph)
Change-Id: I2cc486cc49787c681b031067728b7a33f8fb11e7
Signed-off-by: Shimon Ben.Yair <shimon.ben.yair@sap.com>
Change git config property used in tests to a test property instead
of an existing one (difftool.prompt).
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
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>
* expose getCurrentBranch() method on git connection
Also change the git value provider factory to use this method instead of using status command as status is requiring lot of I/O
Change-Id: If88da1e1b63a252f0226f1a586f3a67d7295e6c3
Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>