From 5b9a882edc20810641cb774240e5089e87dab82e Mon Sep 17 00:00:00 2001 From: Veetaha Date: Wed, 26 Aug 2020 02:37:58 +0300 Subject: Make inlay hints colors more configurable --- editors/code/package.json | 67 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 65 insertions(+), 2 deletions(-) (limited to 'editors/code/package.json') diff --git a/editors/code/package.json b/editors/code/package.json index f079f73b8..93d94ed12 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -712,14 +712,77 @@ ], "colors": [ { - "id": "rust_analyzer.inlayHint", - "description": "Color for inlay hints", + "id": "rust_analyzer.inlayHints.foreground", + "description": "Foreground color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.foreground.* configurations)", "defaults": { "dark": "#A0A0A0F0", "light": "#747474", "highContrast": "#BEBEBE" } }, + { + "id": "rust_analyzer.inlayHints.background", + "description": "Background color of inlay hints (is overriden by more specific rust_analyzer.inlayHints.background.* configurations)", + "defaults": { + "dark": "#11223300", + "light": "#11223300", + "highContrast": "#11223300" + } + }, + { + "id": "rust_analyzer.inlayHints.foreground.typeHints", + "description": "Foreground color of inlay type hints for variables (overrides rust_analyzer.inlayHints.foreground)", + "defaults": { + "dark": "rust_analyzer.inlayHints.foreground", + "light": "rust_analyzer.inlayHints.foreground", + "highContrast": "rust_analyzer.inlayHints.foreground" + } + }, + { + "id": "rust_analyzer.inlayHints.foreground.chainingHints", + "description": "Foreground color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.foreground)", + "defaults": { + "dark": "rust_analyzer.inlayHints.foreground", + "light": "rust_analyzer.inlayHints.foreground", + "highContrast": "rust_analyzer.inlayHints.foreground" + } + }, + { + "id": "rust_analyzer.inlayHints.foreground.parameterHints", + "description": "Foreground color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.foreground)", + "defaults": { + "dark": "rust_analyzer.inlayHints.foreground", + "light": "rust_analyzer.inlayHints.foreground", + "highContrast": "rust_analyzer.inlayHints.foreground" + } + }, + { + "id": "rust_analyzer.inlayHints.background.typeHints", + "description": "Background color of inlay type hints for variables (overrides rust_analyzer.inlayHints.background)", + "defaults": { + "dark": "rust_analyzer.inlayHints.background", + "light": "rust_analyzer.inlayHints.background", + "highContrast": "rust_analyzer.inlayHints.background" + } + }, + { + "id": "rust_analyzer.inlayHints.background.chainingHints", + "description": "Background color of inlay type hints for method chains (overrides rust_analyzer.inlayHints.background)", + "defaults": { + "dark": "rust_analyzer.inlayHints.background", + "light": "rust_analyzer.inlayHints.background", + "highContrast": "rust_analyzer.inlayHints.background" + } + }, + { + "id": "rust_analyzer.inlayHints.background.parameterHints", + "description": "Background color of function parameter name inlay hints at the call site (overrides rust_analyzer.inlayHints.background)", + "defaults": { + "dark": "rust_analyzer.inlayHints.background", + "light": "rust_analyzer.inlayHints.background", + "highContrast": "rust_analyzer.inlayHints.background" + } + }, { "id": "rust_analyzer.syntaxTreeBorder", "description": "Color of the border displayed in the Rust source code for the selected syntax node (see \"Show Syntax Tree\" command)", -- cgit v1.2.3