zed icon indicating copy to clipboard operation
zed copied to clipboard

"Disable <rule_name> for the entire file" adds extra asterisk to comment

Open rlueder opened this issue 8 months ago • 0 comments

Summary

The "Disable <rule_name> for the entire file" context menu option adds an extra asterisk to the start of the comment stopping it from actually disabling the rule.

Description

Steps to reproduce:

  1. create any file that breaks a linter rule
  2. press [cmd + .] to open context menu
  3. choose Disable <rule_name> for the entire file
  4. notice Zed adds a comment starting with /** instead of /*

Expected Behavior: Adds comments with a single asterisk e.g. /* eslint-disable <rule_name> */

See attached gif below:

Image

Zed Version and System Specs

Zed: v0.186.3 (Zed Preview) OS: macOS 15.4.1 Memory: 18 GiB Architecture: aarch64

rlueder avatar May 08 '25 18:05 rlueder