Skip to content

Draft: webview middleware

John Slaughter requested to merge js/webview-middleware-example into main

Description

This code introduces a new feature that allows webviews to communicate theme changes to the extension. It does this by adding a middleware to the webview that listens for a specific message type from the webview. When this message is received, the extension updates its theme publisher with the new theme information. Additionally, the extension now sends a message to the webview whenever the active color theme changes in VS Code, prompting the webview to update its theme accordingly.

Related Issues

Resolves #[issue_number]

How has this been tested?

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