-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Support full semantic highlighting #54
Comments
Could you please copy the code below? So that I can use it for testing, thank you! |
Sure, here is a much simpler example. Typescript: import React, { HTMLProps } from "react";
import cx from "classnames";
import styles from "../my-styles.module.scss";
type TProps = {
children: React.ReactNode;
className?: string;
};
type TComponentProps = HTMLProps<HTMLDivElement> & TProps;
const Container: React.FunctionComponent<TComponentProps> = ({ children, className, ...htmlProps }) => {
return (
<div {...htmlProps} className={cx(styles.container, className)}>
{children}
</div>
);
};
export default React.memo(Container); Also when paramters are pushed onto multiple lines they are no longer yellow: Hopefully the following article will be of some use: |
First, thank you for taking me to discover this feature of VSCode, I haven't opened it before. The link you provided is also very helpful, thank you so much! I am going to learn how the code is colored when this feature is turned on. Then deal with the problem you mentioned and reply to you. |
I completely agree, your theme is really nice and thank you for taking the time and effort to implement that feature as I too think it would be very useful |
Thanks for looking into this, I appreciate that this behaviour can be tricky. I look forward to more updates from you! |
First thing, your theme is lovely.
It would be really good if Eva theme could enable semantic highlighting properly. I find it extremely useful to be able to identify variables that are actually parameters. This means I can avoid overwriting them or quickly seeing where they're used
On line 16 we can see
assetId
is yellow, but on lines 17 and 18 theassetId
param is white.If we toggle the semanticHightlighting setting to true (overriding the theme)
Now on lines 17 and 18 the
assetId
param usage is coloured the same (yellow).This does however mean that a lot of the colours in the file have changed. On line 21
asset
is now orange because it reflects the const usage on line 17. I guess there'll be a lot of these little nuances to get right and would likely require a separate "Eva Dark Semantic" theme.Keep up the great work!
The text was updated successfully, but these errors were encountered: