Skip to content

Regression: Explain this code action appears for Markdown preview

Summary

For Markdown files, the action to Explain this code appears when the file is in Preview mode.

This appears to be a regression from an earlier fix of Explain code: the feature should not be availab... (#408182 - closed)

Steps to reproduce

  • Open Markdown file
  • Select lines of code
  • Question mark action appears

What is the expected correct behavior?

Action doesn't appear in Preview mode

Relevant logs and/or screenshots

image

Possible fixes

Don't show the action when in Preview mode.