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

Option to hide statusbar button #117

Merged
merged 5 commits into from May 13, 2018
Merged

Conversation

jasonalex13
Copy link
Contributor

Maybe I haven't done this correctly because I'm a bit of a newbie to vscode extensions, and to contributing to code in general.

I just thought there should be an option to hide the "Go Live" button in the statusbar, I can't disable the extension because it is dependency for Live Sass Compiler, but it's a button I don't need because in most workspaces I'm not using it directly.

I thought I'd try doing it myself...

src/Config.ts Outdated
@@ -96,4 +96,8 @@ export class Config {
public static get getMount(): Array<Array<string>> {
return Config.getSettings<Array<Array<string>>>('mount');
}

public static get getShowOnStatusbar(): boolean {
return Config.getSettings<boolean>('showOnStatusbar') || false;
Copy link
Collaborator

Choose a reason for hiding this comment

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

false is meaningless here. Because default value set on settings. So it always get true

Copy link
Collaborator

@mxschmitt mxschmitt left a comment

Choose a reason for hiding this comment

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

@jasonalex13
Copy link
Contributor Author

Sorry for that, it wasn't picking up the spacing issue when i ran the linter locally. Should be right now :)

@ritwickdey
Copy link
Owner

Thanks a lot for the PR 💟

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants