Skip to content

Ensure we track activation results #2907

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

Merged
merged 2 commits into from
Oct 16, 2018

Conversation

DonJayamanne
Copy link

For #2732

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • Title summarizes what is changing
  • [no] Has a news entry file (remember to thank yourself!)
  • Unit tests & system/integration tests are added/updated
  • [no] Any new/changed dependencies in package.json are pinned (e.g. "1.2.3", not "^1.2.3" for the specified version)
  • [no] package-lock.json has been regenerated by running npm install (if dependencies have changed)

Copy link

@d3r3kk d3r3kk left a comment

Choose a reason for hiding this comment

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

Should be good.

let activator: ITerminalActivator;
let helper: TypeMoq.IMock<ITerminalHelper>;

setup(() => {
helper = TypeMoq.Mock.ofType<ITerminalHelper>();
activator = new class extends BaseTerminalActivator {
public waitForCommandToProcess() { noop(); return Promise.resolve(); }
}(helper.object);
}(helper.object) as any as ITerminalActivator;
Copy link

Choose a reason for hiding this comment

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

Question-not-comment: Do you need to use the as any as ITerminalActivator here? Why won't the typescript transpiler just understand your type here?

@DonJayamanne DonJayamanne merged commit a12df5e into microsoft:master Oct 16, 2018
DonJayamanne added a commit that referenced this pull request Oct 18, 2018
@DonJayamanne DonJayamanne deleted the issue2732Fix branch October 31, 2018 17:37
@lock lock bot locked as resolved and limited conversation to collaborators Jul 30, 2019
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.

2 participants