Skip to content

refactor: check process to prevent error in browser env

Juhee Lee requested to merge fix-undefined-process-browser into main

Description

process is exclusive to the Node.js environment and cannot be access in browser environment.

Add type check to prevent workflow activation error.

Related Issues

Resolves #1609 (closed)

How has this been tested?

Extension Desktop

  1. Set FeatureFlag.LanguageServerWebviews to true
  2. npm install
  3. Run vscode extension locally
  4. Check if you can copy and paste into duo chat

Extension Browser (WebIDE)

  1. Run WebIDE locally
  2. Workflow is activated

Screenshots (if appropriate)

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

Merge request reports

Loading