Skip to content

Commit

Permalink
FIxed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DonJayamanne committed Jul 3, 2019
1 parent 7621eef commit f92a6a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
13 changes: 5 additions & 8 deletions src/client/common/terminal/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { Event, Terminal, Uri } from 'vscode';

'use strict';

import { Event, Terminal, Uri } from 'vscode';
import { PythonInterpreter } from '../../interpreter/contracts';
import { IEventNamePropertyMapping } from '../../telemetry/index';
import { Resource } from '../types';

export enum TerminalActivationProviders {
Expand Down Expand Up @@ -78,13 +81,7 @@ export interface ITerminalActivationHandler {
handleActivation(terminal: Terminal, resource: Uri | undefined, preserveFocus: boolean, activated: boolean): Promise<void>;
}

export type ShellIdentificationTelemetry = {
failed: boolean;
terminalProvided: boolean;
shellIdentificationSource: 'terminalName' | 'settings' | 'environment' | 'default';
hasCustomShell: undefined | boolean;
hasShellInEnv: undefined | boolean;
};
export type ShellIdentificationTelemetry = IEventNamePropertyMapping['TERMINAL_SHELL_IDENTIFICATION'];

export const IShellDetector = Symbol('IShellDetector');
/**
Expand Down
5 changes: 2 additions & 3 deletions src/client/telemetry/importTracker.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import '../common/extensions';

import { inject, injectable } from 'inversify';
import * as path from 'path';
import { TextDocument } from 'vscode';

import { sendTelemetryEvent } from '.';
import { noop } from '../common/utils/misc';
import { IDocumentManager } from '../common/application/types';
import { isTestExecution } from '../common/constants';
import '../common/extensions';
import { noop } from '../common/utils/misc';
import { EventName } from './constants';
import { IImportTracker } from './types';

Expand Down

0 comments on commit f92a6a2

Please sign in to comment.