You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to change named parameters color in color theme? #1900
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>
.
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!).
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:
Activity
DanTup commentedon Aug 1, 2019
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?
JCKodel commentedon Aug 1, 2019
DanTup commentedon Aug 5, 2019
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.
DanTup commentedon Nov 20, 2019
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!).
SoKamil commentedon May 22, 2020
microsoft/vscode#95958
They did something and also they introduced semantic highlighting for TS and JS, and they have announced it for Java and C++
DanTup commentedon May 25, 2020
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).
DanTup commentedon Jan 19, 2021
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: