Skip to content

Semantic highlighting remains active after setting is turned off #49060

@JosephTLyons

Description

@JosephTLyons

Reproduction steps

  1. Open a rust file with code in the doc comments with "semantic_tokens": "off"
Image
  1. Switch to "semantic_tokens": "combined" and notice highlighting is applied
Image
  1. Switch to "semantic_tokens": "off" and notice highlighting remains
Image
  1. File must be closed and reopened to clear highlighting

Current vs. Expected behavior

Current: Semantic highlighting sticks around after setting has been disabled while file is open
Expected: Semantic highlighting is removed immediately on settings change

Zed version and system specs

Zed: v0.225.0+nightly.2178.ceec6ee5f52b9c0dde5d30616b15cea2316d4857 (Zed Nightly ceec6ee)
OS: macOS 26.2
Memory: 64 GiB
Architecture: aarch64

Attach Zed log file

Zed.log

Relevant Zed settings

settings.json

Relevant Keymap

keymap.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Labels

area:editorFeedback for code editing, formatting, editor iterations, etcarea:settingsFeedback for preferences, configuration, etcfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usagepriority:P2Average run-of-the-mill bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions