refactor: check process to prevent error in browser env
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
- Set
FeatureFlag.LanguageServerWebviews
totrue
npm install
- Run vscode extension locally
- Check if you can copy and paste into duo chat
Extension Browser (WebIDE)
- Run WebIDE locally
- 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