Skip to content

feat: Add user-configured CS languages

Olena Horal-Koretska requested to merge revert-63655ffb into main

Description

The code changes introduce a new feature that allows users to specify custom programming languages for which they want to receive AI-assisted code suggestions. Previously, the extension only supported a fixed set of languages.

Related Issues

Resolves #1318 (closed)

How to test

Should be tested together with the LS MR gitlab-org/editor-extensions/gitlab-lsp!303 (merged) if the languageServer feature flag is enabled. It should work both with and without the LS enabled.

  1. in VS Code go to Settings => Extensions => Gitlab Workflow => Extension Settings
  2. In the AI assisted Code Suggestions : Languages add a couple of unsupported language identifiers. Docs for the setting here Screenshot_2024-05-06_at_21.38.37
  3. Open the file with previously unsupported languages and make sure that the code suggestion status icon changes to enabled and the code suggestions are provided.

Merge request reports