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

Title background #2

Merged
merged 5 commits into from
Feb 7, 2019
Merged

Title background #2

merged 5 commits into from
Feb 7, 2019

Conversation

Qantt
Copy link
Contributor

@Qantt Qantt commented Feb 7, 2019

I am working with a quite large monorepo and this tool would help me a lot. I added an ability to color title background. It works the same way as tab coloring (based on the current user location). Title background coloring makes it even more easy to deduct current location in the project.

changestitleandtab

Copy link
Owner

@oreporan oreporan left a comment

Choose a reason for hiding this comment

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

Great PR, few small changes

src/getColor.ts Outdated
}

const getConfig = () => {
export const getSetting = (value: string) => {
Copy link
Owner

Choose a reason for hiding this comment

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

the filename getColor doesn't fit anymore once you've exported getSetting
Maybe move this to a new settings.ts file

README.md Outdated
For example:

```
// To settings.json => workspace settings. Defaults to the last color (.* is a wildcard).
Copy link
Owner

Choose a reason for hiding this comment

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

Not sure I would put this as the example. If you're trying to say that the last regex wins, we can write that without an example IMO.

However writing a small example is a good idea

src/changeColors.ts Outdated Show resolved Hide resolved
src/getColor.ts Outdated Show resolved Hide resolved
@oreporan
Copy link
Owner

oreporan commented Feb 7, 2019

@Qantt
Thanks for liking and contributing to the library!
I actually originally started by coloring the background, but it felt a bit too strong so I went down to the tabs.
Making it configurable is a good option.

Just made a few small remarks

src/changeColors.ts Outdated Show resolved Hide resolved
@Qantt
Copy link
Contributor Author

Qantt commented Feb 7, 2019

Hi, thanks for the remarks. I am going to take a look at this when I get off work. It's morning here so it's going to take a while though.

@Qantt
Copy link
Contributor Author

Qantt commented Feb 7, 2019

Updated based on your PR review, good catches! It should be noted that in vscode extension development mode the title background color does not change, but it works fine when installing from vsix. 🚀

@oreporan oreporan merged commit aabfa81 into oreporan:master Feb 7, 2019
@oreporan
Copy link
Owner

oreporan commented Feb 7, 2019

Approved
released in 0.4.3

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.

2 participants