jupyterlab-lsp icon indicating copy to clipboard operation
jupyterlab-lsp copied to clipboard

Feature request: GitLab Duo Code Suggestions via gitlab-lsp

Open nocnokneo opened this issue 1 year ago • 2 comments

Description

Add support for GitLab Duo Code Suggestions via the GitLab Language Server

Expected behavior

gitlab-lsp suggestions work in together with existing traditional language-specific LSP servers.

nocnokneo avatar Jan 17 '24 18:01 nocnokneo

This would be a fine feature as an optional extension, but we likely don't have the ability to test it, and therefore, support it directly in this repo, without a raft of API tokens, etc.

bollwyvl avatar Jan 17 '24 18:01 bollwyvl

@nocnokneo thanks for highlighting GitLab Duo Code Suggestions! We implemented inline code suggestions in JupyterLab 4.1 (https://github.com/jupyterlab/jupyterlab/pull/15160) with the interfaces following the upcoming Language Server Protocol v3.18. The plan is to have an IInlineCompletionProvider in jupyterlab-lsp which would send textDocument/inlineCompletion requests; however before we merge such a new feature we would like to LSP v3.18 to be finalised and released - it is still in draft.

As for the GitLab Language Server, as @bollwyvl mentions it would be a bit higher barrier to merge out of the box support for it (this means auto-discovery and configuration specification) as it not necessarily something we can easily test, but if you would like to contribute a jupyter-lsp extension, we could host it in jupyter-lsp organization.

krassowski avatar Feb 25 '24 15:02 krassowski