Skip to content

Enable all Proposed APIs

MR: gitlab-web-ide-vscode-fork!105 (merged) MR: gitlab-org/workspaces/gitlab-workspaces-tools!23 (merged)

Description

Some extensions depend on rely on enabling proposed APIs in production environments even when 3rd-party extensions can't use proposed APIs in this scenario. Other products similar to Workspaces enable all proposed APIs in production to avoid bugs with these extensions. This should achieve what we want by causing _envEnablesProposedApiForAll in extensionsProposedApi.ts to be true. We want to be strategic and surgical with changed made to the VSCode fork and updating the environmentService has a smaller footprint and will be a bit more stable than updating some of the other logic

Acceptance Criteria

  • After, installing the Python extension in a Workspace with a Python environment, I should be able to debug Python files in a Workspace.

Result

2025-01-14_11.42.24

Implementation guidelines

The ms-toolsai and ms-python.python extensions depend on rely on enabling proposed APIs in production environments even when 3rd-party extensions can't use proposed APIs in this scenario. Other products similar to Workspaces enable all proposed APIs in production to avoid bugs with these extensions. We can use the same approach by causing _envEnablesProposedApiForAll in extensionsProposedApi.ts to be true

Steps to test

  1. Create a Workspace
  2. Install the Python extension (If using GDK make sure Admin preferences has Enabled extension marketplace)
  3. Selecting the Kernel will install the Python extension if not already installed and then allows you to select the python interpreter.

Impact Assessment

TODO: Fixing this bug will enable extensions to work in Workspaces.

Edited by Joseph Fletcher