Skip to content

Same symbol different color #45251

@Shoghy

Description

@Shoghy

Reproduction steps

Open a .ts file with zed and write:

export const date = new Date();
export const now = Date.now();

And you will see that the 2 instance of Date have different colors

Current vs. Expected behavior

This is how it looks in the current version of Zed 0.218.2 preview
Image

This is how it looked in Zed 2.17.1 preview
Image

Zed version and system specs

Zed: v0.218.2+preview.103.d00da08950b357874097cf3d7c8bb86c62bb93cf (Zed Preview)
OS: macOS 15.6.1
Memory: 24 GiB
Architecture: aarch64

Zed: v0.217.1+preview.96.47f6fd714d859c58211dd77ee9aead10f061f358 (Zed Preview)
OS: macOS 15.6.1
Memory: 24 GiB
Architecture: aarch64

Attach Zed log file

N/A

Relevant Zed settings

settings.json
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette (cmd-shift-p / ctrl-shift-p)
{
  "auto_update_extensions": {
    "catppuccin": false
  },
  "colorize_brackets": true,
  "sticky_scroll": {},
  "project_panel": {
    "sticky_scroll": true,
  },
  "agent": {
    "always_allow_tool_actions": false,
    "single_file_review": true,
    "default_model": {
      "provider": "ollama",
      "model": "codellama:7b",
    },
    "model_parameters": [],
  },
  "scroll_beyond_last_line": "one_page",
  "disable_ai": true,
  "vim_mode": false,
  "terminal": {
    "alternate_scroll": "on",
    "env": {
      "FIG_NEW_SESSION": "1",
    },
  },
  "title_bar": {
    "show_branch_icon": true,
  },
  "base_keymap": "VSCode",
  "minimap": {
    "show": "auto",
    "thumb_border": "full",
  },
  "soft_wrap": "editor_width",
  "file_types": {
    "html": ["*.html"],
  },
  "features": {
    "edit_prediction_provider": "none",
  },
  "format_on_save": "on",
  "code_actions_on_format": {
    "source.fixAll.eslint": true,
  },
  "icon_theme": "Catppuccin Latte",
  "ui_font_size": 16,
  "buffer_font_size": 14,
  "buffer_font_family": "Fira Code",
  "theme": {
    "mode": "system",
    "light": "One Light",
    "dark": "Catppuccin Mocha",
  },
  "languages": {
    "PHP": {
      "language_servers": ["!phpactor", "..."],
      "formatter": {
        "external": {
          "command": "vendor/bin/pint",
          "arguments": ["-"],
        },
      },
    },
  },
  "diagnostics": {
    "inline": {
      "enabled": true,
      "padding": 0,
    },
  },
}

Relevant Keymap

N/A

(for AI issues) Model provider details

N/A

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

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:languages/typescriptTypeScript programming language supportarea:tree-sitterSyntax highlighting and tree-sitterfrequency:alwaysBug that happens for everyone on every platform no matter how they use Zedpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions