Skip to content

Conversation

@ericsnowcurrently
Copy link

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

This is a follow-up to #2456. I've pulled many of the "util" modules out of src/client/common into a new sibling package to client: utils. This helps us separate the extension-specific code from the generic code we use for the extension.

Note that this PR includes only the following:

  • moving existing code around
  • fixing lint errors (which surfaces when I touched code)

const mockVariables: EnvironmentVariables = {};
if (envVars) {
for (const [key, value] of envVars.entries!) {
if (envVars && envVars.keys) {

Choose a reason for hiding this comment

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

why can't we use .entries


// tslint:disable-next-line: no-suspicious-comment
// TODO: Usage of these should be replaced by OSInfo.* or
// IPlatformService.* (from src/client/common/platform).

Choose a reason for hiding this comment

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

Please remove commented code.

Copy link
Author

Choose a reason for hiding this comment

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

This is a TODO comment. There is no commented code.

protected debugSession: DebugSession;

protected isRunning: boolean;
protected isRunning?: boolean;

Choose a reason for hiding this comment

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

No change required:
Or you could just change this to initialize isRunning to false

Copy link
Author

Choose a reason for hiding this comment

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

fixed

@ericsnowcurrently ericsnowcurrently merged commit 9dd08e8 into microsoft:master Sep 5, 2018
@ericsnowcurrently ericsnowcurrently deleted the utils-package branch September 5, 2018 22:01
@brettcannon
Copy link
Member

FYI the master branch wasn't unfrozen yet. 😢 Luckily no last-minute bugs seem to have been reported so we are basically safe.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 31, 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.

3 participants