Skip to content

[Visual Studio Code] Add Customizable Git Branch Color Option - #15699

Merged
raycastbot merged 7 commits into
raycast:mainfrom
VatsalSy:vsc_color
Dec 5, 2024
Merged

raycastbot merged 7 commits into
raycast:mainfrom
VatsalSy:vsc_color

Conversation

@VatsalSy

@VatsalSy VatsalSy commented Dec 4, 2024 •

Copy link
Copy Markdown
Contributor

Description

inspired by #15693

🎨 Add customizable Git branch color option
• Introduce a new setting in package.json for users to define a
custom hexadecimal color code for Git branch tags.
• Update index.tsx to apply the user-defined color if valid,
defaulting to green otherwise.
• Expose gitBranchColor in preferences.ts to integrate with
existing preferences.
• Add isValidHexColor function in utils.ts to ensure color
codes are valid.
This enhancement allows users to personalize their Git branch
display, improving the visual experience.

Screencast

How to edit color:
CleanShot 2024-12-04 at 22 59 58@2x

how it shows up:
CleanShot 2024-12-04 at 22 49 11@2x

Checklist

	•	Introduce a new setting in package.json for users to define a
custom hexadecimal color code for Git branch tags.
	•	Update index.tsx to apply the user-defined color if valid,
defaulting to green otherwise.
	•	Expose gitBranchColor in preferences.ts to integrate with
existing preferences.
	•	Add isValidHexColor function in utils.ts to ensure color
codes are valid.
This enhancement allows users to personalize their Git branch
display, improving the visual experience.
@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: visual-studio-code-recent-projects Issues related to the visual-studio-code-recent-projects extension OP is contributor The OP of the PR is a contributor of the extension labels Dec 4, 2024
@raycastbot

raycastbot commented Dec 4, 2024 •

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! 🎉

🔔 @thomaspaulmann @iainsimmons @macbookandrew @cy-98 @immint023 @vimtor @tonka3000 @aka-rabbi-inv @oilbeater @QIanGua @hakob8956 @erics118 @tmwrnr @tleo19 @aeither @yug2005 @VatsalSy you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

You can expect an initial review within five business days.

@VatsalSy

VatsalSy commented Dec 4, 2024

Copy link
Copy Markdown
Contributor Author

@pernielsentikaer Any idea why pull_request action keeps failing.... :(

@VatsalSy

VatsalSy commented Dec 5, 2024

Copy link
Copy Markdown
Contributor Author

thanks for the updates @pernielsentikaer

@VatsalSy VatsalSy left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

is there an easy way to fix the ``Prefer Title Case naming convention for action titles (e.g Copy to Clipboard)" warnings?

I know these are only warnings... but would be satisfying if they are also all fixed..

@pernielsentikaer

Copy link
Copy Markdown
Contributor

There is a way, but you'll need to add a comment above the warning to instruct the linter to ignore it

Could you also check that I didn't break something with my fixes?

@VatsalSy

VatsalSy commented Dec 5, 2024

Copy link
Copy Markdown
Contributor Author

yes, I was just checking that.. and all looks fine. :) nice work. I think I am getting a hang of this. :)

@pernielsentikaer pernielsentikaer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hi 👋

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit 92f9380 into raycast:main Dec 5, 2024
@github-actions

github-actions Bot commented Dec 5, 2024

Copy link
Copy Markdown
Contributor

@raycastbot

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

@VatsalSy
VatsalSy deleted the vsc_color branch December 5, 2024 12:34
delia-gonzalez added a commit to delia-gonzalez/raycast-extensions that referenced this pull request Jan 9, 2025