Skip to content

fix: Clipboard access in remote environments

Description

  • It fixes a bug where users can't copy/paste text from web views if VSCode is running in a devcontainer.
  • It refactors the mechanism to get access to environment info in features.

Related Issues

Unable to copy/paste in agentic chat inside a d... (#2100 - closed)

How has this been tested?

  • If src/browser or src/common has been modified, please consider interoperability with the Web IDE. See Running the Extension in WebIDE.
  • Consider an end-to-end test for significant new features that aren't covered by integration tests.
  1. Open a project with Duo Agentic Chat enabled on a VSCode devcontainer.
  2. If it's installed, uninstall the production version of the GitLab VSCode Extension.
  3. Install the GitLab VSCode Extension using the vsix file produced by this MR https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/jobs/11581231475/artifacts/file/dist-desktop/gitlab-workflow-6.49.4.vsix.
  4. Try copy/pasting text from Agentic Chat. It should work as expected. It currently doesn't work in the latest version of the extension.

Screenshots (if appropriate)

fix_clipboard_container.mov

What CHANGELOG entry will this MR create?

  • fix: Bug fix fixes - a user-facing issue in production - included in changelog
  • feature: New feature - a user-facing change which adds functionality - included in changelog
  • BREAKING CHANGE: (fix or feature that would cause existing functionality to change) - should bump major version, mentioned in the changelog
  • None - other non-user-facing changes
Edited by Enrique Alcántara

Merge request reports

Loading