-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parameter highlight #69824
Comments
(Experimental duplicate detection) |
This looks like it's caused by an extension. I cannot reproduce this. |
This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. Happy Coding! |
@alexr00 Hi The second image is function code in Webstorm. Webstorm can find the parameter name in the function. It would be nice if Vscode supports a theme color scope such as "variable.parameter ..." for the parameter values. |
@alexr00 thank you for your time your image is the same image as mine if you add code below to settings.json {
"scope": [
"variable.parameter",
],
"settings": {
"foreground": "#9AD100",
"fontStyle": "",
}
}, Vscode does not know whether "value" or "parameter" is "const" or "parameter" so Vscode highlights "values" and "parameters" of the same color. But Webstorm does know that so parameter and value are not the same color at my second image. Highlighting two variables in a different color helps to determine which is the parameter. I ask the Vscode team to add this feature |
This is a change request for the TypeScript TextMate grammar we use then. In this example on lines 2 and 4, function myTest(parameter: any) {
console.log(parameter);
const value: string = 'value';
console.log(value);
} |
Actually, I don't think this is possible with TextMate. Duplicate of #50140. |
that's the only reason I can't go over from WebStorm to VSCode, this is overkill ☝️ |
I think so. |
The image below is highlighting codes in Vscode now
I hope the parameters in the function are highlighted as shown below.
The text was updated successfully, but these errors were encountered: