feat: add languageServerWebIDE feature flag to config

Issue: Add "LanguageServer" feature flag to Web IDE (#387 - closed)

What does this MR do and why?

This MR adds the languageServerWebIDE feature flag in the Web IDE config. We also introduce the option to enable this flag in the Example App, where the default is enabled.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

GDK Example App

gdk.png

New checkbox in the config form:

config-form.png

Language server enabled by default:

example-app.png

How to set up and validate locally

GDK:

  1. Install local version of web IDE in GDK by running ./scripts/pack-web-ide-package.sh
  2. In the main project, add yarn add <path to the packaged web ide>

Example App:

  1. Run the Example App in the gitlab-web-ide project: yarn start:example
  2. Should see new option to enable language server in the config form, checked by default.

Check flag value in Workflow extension:

  1. Open the Web IDE, and go to user settings in command palette.
  2. Search gitlab.featureFlags.LanguageServerWebIDE. Should match with featureFlags.languageServerWebIDE value passed to Web IDE config.

Merge request reports

Loading