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

Refactored extension classes #79

Merged
merged 2 commits into from
Jan 31, 2017
Merged

Refactored extension classes #79

merged 2 commits into from
Jan 31, 2017

Conversation

jpricket
Copy link
Member

This allows the context objects to be shared and the tfvc repo objects to be cached.
User Story #884966

This allows the context objects to be shared and the tfvc repo objects to be cached.
User Story #884966
@msftclas
Copy link

Hi @jpricketMSFT, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!


It looks like you're a Microsoft contributor (Jason Prickett). If you're full-time, we DON'T require a Contribution License Agreement. If you are a vendor, please DO sign the electronic Contribution License Agreement. It will take 2 minutes and there's no faxing! https://cla.microsoft.com.

TTYL, MSBOT;

import { Tfvc } from "./tfvc";
import { Repository } from "./repository";
import { UIHelper } from "./uihelper";
import { IPendingChange } from "./interfaces";

export class TfvcExtension {
private _tfvc: Tfvc = undefined;
private _repo: Repository = undefined;
private _manager: ExtensionManager;
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm OK with not setting variables directly to undefined like you did here with ExtensionManager. But it'd be great to be consistent (and remove them from 15 and 16). I hope the rest of the code reflects it, but I only like to use "undefined" when I need to.

}
}

dispose() {
Copy link
Contributor

Choose a reason for hiding this comment

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

See if we can remove this, if possible.

Copy link
Contributor

Choose a reason for hiding this comment

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

Belay that request. Just put a comment in here that there's nothing to dispose so we don't get a linting violation.

src/tfvc/tfvc.ts Outdated
@@ -6,6 +6,7 @@

import * as cp from "child_process";
import { EventEmitter, Event } from "vscode";
import { TeamServerContext} from "../contexts/servercontext";
Copy link
Contributor

Choose a reason for hiding this comment

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

space before }

User Story #884966
@jpricket jpricket merged commit 6e6a4ec into master Jan 31, 2017
@jpricket jpricket deleted the users/jpricket/0130 branch January 31, 2017 22:30
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