Configure Editor Extensions
- Tier: Free, Premium, Ultimate
- Offering: GitLab.com, GitLab Self-Managed, GitLab Dedicated
Configure Editor Extensions settings for your GitLab instance.
Create an OAuth application
You can configure GitLab Workflow extension for VS Code to connect and authenticate with GitLab using an OAuth application ID.
To create an OAuth application:
- Create an instance-wide application.
- In Redirect URI, enter
vscode://gitlab.gitlab-workflow/authentication.- To specify additional IDEs like Code Insiders or Cursor, add multiple redirect URIs separated by newlines.
- Select the
apiscope. - Select Submit.
- Copy the Application ID. Use this for the
gitlab.authentication.oauthClientIdssetting in your VS Code configuration.
Require a minimum language server version
On GitLab Self-Managed, by default this feature is not available. To make it available, an administrator can enable the feature flag named enforce_language_server_version.
On GitLab.com, this feature is available but can be configured by GitLab.com administrators only.
On GitLab Dedicated, this feature is available.
By default, any GitLab Language Server version can connect to your GitLab instance when personal access tokens are enabled. To block requests from clients on older versions, configure a minimum language server version. Clients older than the minimum allowed Language Server version receive an API error.
Prerequisites:
You must be an administrator.
# For a specific user Feature.enable(:enforce_language_server_version, User.find(1)) # For this GitLab instance Feature.enable(:enforce_language_server_version)
To enforce a minimum GitLab Language Server version:
- On the left sidebar, at the bottom, select Admin. If you’ve turned on the new navigation, in the upper-right corner, select Admin.
- On the left sidebar, select Settings > General.
- Expand Editor Extensions.
- Check Language Server restrictions enabled.
- Under Minimum GitLab Language Server client version, enter a valid GitLab Language Server version.
To allow any GitLab Language Server clients:
- On the left sidebar, at the bottom, select Admin. If you’ve turned on the new navigation, in the upper-right corner, select Admin.
- On the left sidebar, select Settings > General.
- Expand Editor Extensions.
- Uncheck Language Server restrictions enabled.
- Under Minimum GitLab Language Server client version, enter a valid GitLab Language Server version.
Allowing all requests is not recommended. It can cause incompatibility if your GitLab version is ahead of your extension version. You should update your extensions to receive the latest feature improvements, bug fixes, and security fixes.