erg-lang / erg

A statically typed language compatible with Python
http://erg-lang.org
Apache License 2.0
2.62k stars 54 forks source link

Function argument highlighting problem #364

Open C-BJ opened 1 year ago

C-BJ commented 1 year ago

Describe the bug?

image i! color problem

Reproducible code

No response

Expected result

No response

Actual result

No response

Additional context

No response

Erg version

0.6.2

Python version

Python3.11.x

OS

Windows 11

toddlerer commented 1 year ago
I misread This is not a els problem. This is a problem of the color theme you are choosing. You can change it by changing to a supported theme or by changing the following items in the VS Code settings.json ```json "workbench.colorCustomizations": { "[Your Selected Theme]": { "editorInlayHint.parameterForeground": "#ff0000", "editorInlayHint.typeForeground": "#ff0000", "editorInlayHint.background": "#ff0000", "editorInlayHint.foreground": "#ff0000", "editorInlayHint.parameterBackground": "#ff0000", "editorInlayHint.typeBackground": "#ff0000" } } ``` or ```json "workbench.colorCustomizations": { "editorInlayHint.parameterForeground": "#ff0000", "editorInlayHint.typeForeground": "#ff0000", "editorInlayHint.background": "#ff0000", "editorInlayHint.foreground": "#ff0000", "editorInlayHint.parameterBackground": "#ff0000", "editorInlayHint.typeBackground": "#ff0000" } ``` view in my settings: image
C-BJ commented 1 year ago

Function and variable the same color?

toddlerer commented 1 year ago

Sorry, I misread that. I mistakenly thought you were talking about inlay hints. Certainly function and variable names should be different colors.