Skip to content

Rust analyzer options don't apply in VS Code until restart or settings refresh #3924

Closed
@nokola

Description

@nokola

VS Code stable 1.44.0 + rust-analyzer: nightly (080c983) 2020-04-08

Steps to reproduce

  1. Open VS code with some Rust project
  2. In settings.json add:
    "editor.tokenColorCustomizationsExperimental": {
        "*.mutable": {
            "fontStyle": "underline"
        }
    },
    "rust-analyzer.updates.channel": "nightly"
  1. Install whatever is required from rust analyzer. Wait for inlay hints to show up.
    They show up OK:
    image

  2. Open Settings, add the below and save:

"rust-analyzer.inlayHints.parameterHints": false

Observed:

parameter inlay hints stay incorrectly
image

Expected:

parameter inlay hints disappear

Notes

  1. Update some unrelated settings e.g. change the underline fontStyle to 'bold' and save settings, inlay hints will pick up.
    image

  2. Very confusing issue especially if settings updated through UI checkboxes (Ctrl+,)

VS Code:
Version: 1.44.0 (user setup)
Commit: 2aae1f26c72891c399f860409176fe435a154b13
Date: 2020-04-07T23:31:18.860Z
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18363

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions