Skip to content

Commit d2cc712

Browse files
authored
Merge release branch into master (#5118)
1 parent 16360da commit d2cc712

File tree

6 files changed

+28
-3
lines changed

6 files changed

+28
-3
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
# Changelog
22

33

4+
## 2019.3.2 (2 April 2019)
5+
6+
### Fixes
7+
8+
1. Fix regression preventing the expansion of variables in the watch window and the debug console.
9+
([#5035](https://github.com/Microsoft/vscode-python/issues/5035))
10+
1. Display survey banner (again) for Language Server when using current Lanaguage Server.
11+
([#5064](https://github.com/Microsoft/vscode-python/issues/5064))
12+
1. Update ptvsd to [4.2.6](https://github.com/Microsoft/ptvsd/releases/tag/v4.2.6).
13+
([#5083](https://github.com/Microsoft/vscode-python/issues/5083))
14+
* Fix issue with expanding variables in watch window and hover.
15+
* Fix issue with launching a sub-module.
16+
17+
### Code Health
18+
19+
1. Capture telemetry to track which installer was used when installing packages via the extension.
20+
([#5063](https://github.com/Microsoft/vscode-python/issues/5063))
21+
22+
423
## 2019.3.1 (28 March 2019)
524

625
### Enhancements

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
jedi==0.12.0
22
parso==0.2.1
33
isort==4.3.4
4-
ptvsd==4.2.5
4+
ptvsd==4.2.6

src/client/activation/languageServer/analysisOptions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { LanguageClientOptions, ProvideCompletionItemsSignature, RevealOutputCha
1010
import { IWorkspaceService } from '../../common/application/types';
1111
import { isTestExecution, PYTHON_LANGUAGE, STANDARD_OUTPUT_CHANNEL } from '../../common/constants';
1212
import { traceDecorators, traceError } from '../../common/logger';
13-
import { BANNER_NAME_PROPOSE_LS, IConfigurationService, IExtensionContext, IOutputChannel, IPathUtils, IPythonExtensionBanner, Resource } from '../../common/types';
13+
import { BANNER_NAME_LS_SURVEY, IConfigurationService, IExtensionContext, IOutputChannel, IPathUtils, IPythonExtensionBanner, Resource } from '../../common/types';
1414
import { debounceSync } from '../../common/utils/decorators';
1515
import { IEnvironmentVariablesProvider } from '../../common/variables/types';
1616
import { IInterpreterService } from '../../interpreter/contracts';
@@ -29,7 +29,7 @@ export class LanguageServerAnalysisOptions implements ILanguageServerAnalysisOpt
2929
@inject(IEnvironmentVariablesProvider) private readonly envVarsProvider: IEnvironmentVariablesProvider,
3030
@inject(IConfigurationService) private readonly configuration: IConfigurationService,
3131
@inject(IWorkspaceService) private readonly workspace: IWorkspaceService,
32-
@inject(IPythonExtensionBanner) @named(BANNER_NAME_PROPOSE_LS) private readonly surveyBanner: IPythonExtensionBanner,
32+
@inject(IPythonExtensionBanner) @named(BANNER_NAME_LS_SURVEY) private readonly surveyBanner: IPythonExtensionBanner,
3333
@inject(IInterpreterService) private readonly interpreterService: IInterpreterService,
3434
@inject(IOutputChannel) @named(STANDARD_OUTPUT_CHANNEL) private readonly output: OutputChannel,
3535
@inject(IPathUtils) private readonly pathUtils: IPathUtils,

src/client/common/installer/moduleInstaller.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@ import * as path from 'path';
77
import * as vscode from 'vscode';
88
import { IInterpreterService, InterpreterType } from '../../interpreter/contracts';
99
import { IServiceContainer } from '../../ioc/types';
10+
import { sendTelemetryEvent } from '../../telemetry';
11+
import { EventName } from '../../telemetry/constants';
1012
import { STANDARD_OUTPUT_CHANNEL } from '../constants';
1113
import { ITerminalServiceFactory } from '../terminal/types';
1214
import { ExecutionInfo, IConfigurationService, IOutputChannel } from '../types';
1315
import { noop } from '../utils/misc';
1416

1517
@injectable()
1618
export abstract class ModuleInstaller {
19+
public abstract get displayName(): string
1720
constructor(protected serviceContainer: IServiceContainer) { }
1821
public async installModule(name: string, resource?: vscode.Uri): Promise<void> {
22+
sendTelemetryEvent(EventName.PYTHON_INSTALL_PACKAGE, undefined, { installer: this.displayName });
1923
const executionInfo = await this.getExecutionInfo(name, resource);
2024
const terminalService = this.serviceContainer.get<ITerminalServiceFactory>(ITerminalServiceFactory).getTerminalService(resource);
2125

src/client/telemetry/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export enum EventName {
2323
REFACTOR_EXTRACT_FUNCTION = 'REFACTOR_EXTRACT_FUNCTION',
2424
REPL = 'REPL',
2525
PYTHON_INTERPRETER = 'PYTHON_INTERPRETER',
26+
PYTHON_INSTALL_PACKAGE = 'PYTHON_INSTALL_PACKAGE',
2627
PYTHON_INTERPRETER_DISCOVERY = 'PYTHON_INTERPRETER_DISCOVERY',
2728
PYTHON_INTERPRETER_AUTO_SELECTION = 'PYTHON_INTERPRETER_AUTO_SELECTION',
2829
PYTHON_INTERPRETER_ACTIVATION_ENVIRONMENT_VARIABLES = 'PYTHON_INTERPRETER_ACTIVATION_ENVIRONMENT_VARIABLES',

src/client/telemetry/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ export interface IEventNamePropertyMapping {
276276
[EventName.KNOWN_IMPORT_FROM_FILE]: { import: string };
277277
[EventName.KNOWN_IMPORT_FROM_EXECUTION]: { import: string };
278278
[EventName.LINTER_NOT_INSTALLED_PROMPT]: LinterInstallPromptTelemetry;
279+
[EventName.PYTHON_INSTALL_PACKAGE]: { installer: string };
279280
[EventName.LINTING]: LintingTelemetry;
280281
[EventName.PLATFORM_INFO]: Platform;
281282
[EventName.PYTHON_INTERPRETER]: PythonInterpreterTelemetry;

0 commit comments

Comments
 (0)