code icon indicating copy to clipboard operation
code copied to clipboard

Port to gtksourceview-5 for async completion operations and hovers

Open esodan opened this issue 3 years ago • 1 comments

Problem

Code could provider better support for completion and gain a hover using gtksourceview-5, for these reasons:

  1. Completions should be async in order to help run async operations to calculate items, like when using LSP environments where a client request to the server completion items asynchronously, new API in gtksourceview-5 performs populate items async.
  2. New gtksourceview-5 has support to provide hovers, that is an important features for code editors in order to show context information like LSP environments requesting information to servers on the current context, in version 5 populate hover is also async and is required for LSP too in order to avoid UI block.

Proposal

Port Code to use gtksourceview-5 in order to increase its compatilibility with LSP servers.

esodan avatar Jun 11 '21 14:06 esodan

Big issue is gtksourceview-5 requires glib-2.0 >= 66 and gtk-4, because elementary OS will not be ported to gtk 4.0 any time soon, so this issue should wait.

esodan avatar Jun 12 '21 03:06 esodan