Skip to content

Commit 1738841

Browse files
authored
March 2019 point release with debugger fixes (#5056)
* New point release * Display survey banner for LS when using current LS * Update version of PTVSD * Telemetry * Oops * Linter issues * Update CHANGELOG.md
1 parent 68316a0 commit 1738841

File tree

8 files changed

+30
-5
lines changed

8 files changed

+30
-5
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

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "python",
33
"displayName": "Python",
44
"description": "Linting, Debugging (multi-threaded, remote), Intellisense, code formatting, refactoring, unit tests, snippets, and more.",
5-
"version": "2019.3.1",
5+
"version": "2019.3.2",
66
"languageServerVersion": "0.2.31",
77
"publisher": "ms-python",
88
"author": {

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 { debounce } 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(IInterpreterDataService) private readonly interpreterDataService: IInterpreterDataService,
3535
@inject(IOutputChannel) @named(STANDARD_OUTPUT_CHANNEL) private readonly output: OutputChannel,

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
@@ -275,6 +275,7 @@ export interface IEventNamePropertyMapping {
275275
[EventName.KNOWN_IMPORT_FROM_FILE]: { import: string };
276276
[EventName.KNOWN_IMPORT_FROM_EXECUTION]: { import: string };
277277
[EventName.LINTER_NOT_INSTALLED_PROMPT]: LinterInstallPromptTelemetry;
278+
[EventName.PYTHON_INSTALL_PACKAGE]: { installer: string };
278279
[EventName.LINTING]: LintingTelemetry;
279280
[EventName.PLATFORM_INFO]: Platform;
280281
[EventName.PYTHON_INTERPRETER]: PythonInterpreterTelemetry;

0 commit comments

Comments
 (0)