Skip to content
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

Fix exporting enums as types and type of global in PlatformChecker #5105

Merged
merged 5 commits into from
Sep 21, 2023

Conversation

tjzel
Copy link
Collaborator

@tjzel tjzel commented Sep 20, 2023

Summary

Fixes regression that occurred in #5074.

Later on we also have to rethink if we want to promote Extrapolate or Extrapolation since both are exactly the same and we only use the former.

Test plan

I actually made Extrapolation used in our examples so such mistake in the future would be caught on CI (only regarding Extrapolation sadly).

Note

I recommend using this

"editor.tokenColorCustomizations": {
   "textMateRules": [
     {
       "scope": "entity.name.type.enum",
       "settings": {
         "foreground": "#a3e577"
       }
     },
     {
       "scope": "entity.name.type.class",
       "settings": {
         "foreground": "#e8b55e"
       }
     }
   ]
 }

In your VSCode settings so Classes, Enums and Types are not in the same color.

Copy link
Contributor

@bartlomiejbloniarz bartlomiejbloniarz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@tjzel tjzel changed the title Fix exporting enums as types Fix exporting enums as types and type of global in PlatformChecker Sep 20, 2023
@tjzel tjzel added this pull request to the merge queue Sep 21, 2023
Merged via the queue into main with commit 265ebf5 Sep 21, 2023
6 checks passed
@tjzel tjzel deleted the @tjzel/fix-exports branch September 21, 2023 08:16
tjzel added a commit that referenced this pull request Sep 21, 2023
…5105)

<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

## Summary

Fixes regression that occurred in #5074.

Later on we also have to rethink if we want to promote `Extrapolate` or
`Extrapolation` since both are exactly the same and we only use the
former.

## Test plan

I actually made `Extrapolation` used in our examples so such mistake in
the future would be caught on CI (only regarding `Extrapolation` sadly).

> [!Note]
> I recommend using this
> ```json
> "editor.tokenColorCustomizations": {
>    "textMateRules": [
>      {
>        "scope": "entity.name.type.enum",
>        "settings": {
>          "foreground": "#a3e577"
>        }
>      },
>      {
>        "scope": "entity.name.type.class",
>        "settings": {
>          "foreground": "#e8b55e"
>        }
>      }
>    ]
>  }
>```
> In your VSCode settings so Classes, Enums and Types are not in the
same color.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants