Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Disable functionalithy when no team project is found #184

Merged
merged 1 commit into from
Apr 23, 2017

Conversation

jeffyoung
Copy link
Contributor

If the project is TFVC and we can't determine the team project, don't display the team project, build and work items status bar items (don't even initalize them). Instead, set a message that the functionality is explicitly disabled. #178

If the project is TFVC and we can't determine the team project, don't display the team project, build and work items status bar items (don't even initalize them).  Instead, set a message that the functionality is explicitly disabled.  #178
@jeffyoung jeffyoung merged commit 19c788d into master Apr 23, 2017
@jeffyoung jeffyoung deleted the jeyou/disable-ts-with-no-team-project branch April 23, 2017 00:17
Copy link
Contributor

@davidstaheli davidstaheli left a comment

Choose a reason for hiding this comment

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

Looks good. One suggestion.

if (this.EnsureInitialized(RepositoryType.ANY)) {
// Update the extensions
this._teamExtension.InitializeStatusBars();
//this._tfvcExtension.InitializeStatusBars();
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this commented line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, didn't see your comment (nor did I expect you to review on Saturday night). 😄 We leave some comments in like this so we can easily find the place where we might need to do something in the future. In this case, if the TFVC extension would ever provide status bar items, this is where we'd do it.

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

Successfully merging this pull request may close these issues.

None yet

3 participants