-
Notifications
You must be signed in to change notification settings - Fork 303
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
How to change named parameters color in color theme? #1900
Comments
I don't think it's currently possible - though is your screenshot from VS Code or IntelliJ? If VS Code, which theme is it that shows them in yellow? |
The screenshot is VSCode (I've painted yellow using an image editor, just
for illustration purposes).
…On Thu, Aug 1, 2019 at 2:31 PM Danny Tuppeny ***@***.***> wrote:
I don't think it's currently possible - though is your screenshot from VS
Code or IntelliJ? If VS Code, which theme is it that shows them in yellow?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1900?email_source=notifications&email_token=AAC4TSYIDVGHZ66VWCQJPELQCMMYBA5CNFSM4IIRC6RKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3LKUCQ#issuecomment-517384714>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAC4TS7S7DIIJYMH4S42UT3QCMMYBANCNFSM4IIRC6RA>
.
|
Oh, I see :-) In theory, I think it shouldn't be difficult to assign these a different scope so they could be coloured differently. In practice, every time I change the grammar file I break stuff 😄 I'll see what I can do though. |
Upon reviewing the syntax file, I don't think this would be easy. I think there may be upcoming changes to how syntax highlighting works in VS Code (switching to another format from textmate grammars) so I think it would be better to handle this then (since the new format may be better, and may be more easily testable!). |
microsoft/vscode#95958 |
I do plan to support semantic highlighting - but it will be using LSP (which we're migrating to, but it doesn't have semantic highlighting support yet - the API is still only proposed). |
Once https://dart-review.googlesource.com/c/sdk/+/179769 lands (and you're on an SDK that uses it and have the LSP Preview enabled), you'll be able to set the colours of parameter names at call sites with the following settings: "editor.semanticTokenColorCustomizations": {
"rules": {
"parameter.label": "#990",
},
}, |
It is possible (and if yes, how) to colorize only the named parameters in VSCode?
(notice in the example above that common text still white, while only named parameters are yellow)
The text was updated successfully, but these errors were encountered: