Skip to content

Update version and change log for bug fix release #13537

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 5 commits into from
Aug 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,69 @@
# Changelog

## 2020.8.1 (20 August 2020)

### Fixes

1. Update LSP to latest to resolve problems with LS settings.
([#13511](https://github.com/microsoft/vscode-python/pull/13511))
1. Update debugger to address terminal input issues.
1. Added tooltip to indicate status of server connection
([#13543](https://github.com/Microsoft/vscode-python/issues/13543))

### Thanks

Thanks to the following projects which we fully rely on to provide some of
our features:

- [debugpy](https://pypi.org/project/debugpy/)
- [isort](https://pypi.org/project/isort/)
- [jedi](https://pypi.org/project/jedi/)
and [parso](https://pypi.org/project/parso/)
- [Microsoft Python Language Server](https://github.com/microsoft/python-language-server)
- [Pylance](https://github.com/microsoft/pylance-release)
- [exuberant ctags](http://ctags.sourceforge.net/) (user-installed)
- [rope](https://pypi.org/project/rope/) (user-installed)

Also thanks to the various projects we provide integrations with which help
make this extension useful:

- Debugging support:
[Django](https://pypi.org/project/Django/),
[Flask](https://pypi.org/project/Flask/),
[gevent](https://pypi.org/project/gevent/),
[Jinja](https://pypi.org/project/Jinja/),
[Pyramid](https://pypi.org/project/pyramid/),
[PySpark](https://pypi.org/project/pyspark/),
[Scrapy](https://pypi.org/project/Scrapy/),
[Watson](https://pypi.org/project/Watson/)
- Formatting:
[autopep8](https://pypi.org/project/autopep8/),
[black](https://pypi.org/project/black/),
[yapf](https://pypi.org/project/yapf/)
- Interpreter support:
[conda](https://conda.io/),
[direnv](https://direnv.net/),
[pipenv](https://pypi.org/project/pipenv/),
[pyenv](https://github.com/pyenv/pyenv),
[venv](https://docs.python.org/3/library/venv.html#module-venv),
[virtualenv](https://pypi.org/project/virtualenv/)
- Linting:
[bandit](https://pypi.org/project/bandit/),
[flake8](https://pypi.org/project/flake8/),
[mypy](https://pypi.org/project/mypy/),
[prospector](https://pypi.org/project/prospector/),
[pylint](https://pypi.org/project/pylint/),
[pydocstyle](https://pypi.org/project/pydocstyle/),
[pylama](https://pypi.org/project/pylama/)
- Testing:
[nose](https://pypi.org/project/nose/),
[pytest](https://pypi.org/project/pytest/),
[unittest](https://docs.python.org/3/library/unittest.html#module-unittest)

And finally thanks to the [Python](https://www.python.org/) development team and
community for creating a fantastic programming language and community to be a
part of!

## 2020.8.0 (12 August 2020)

### Enhancements
Expand Down
87 changes: 20 additions & 67 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "python",
"displayName": "Python",
"description": "Linting, Debugging (multi-threaded, remote), Intellisense, Jupyter Notebooks, code formatting, refactoring, unit tests, snippets, and more.",
"version": "2020.8.0",
"version": "2020.8.1",
"featureFlags": {
"usingNewInterpreterStorage": true
},
Expand Down Expand Up @@ -3523,10 +3523,10 @@
"vscode-debugadapter": "^1.28.0",
"vscode-debugprotocol": "^1.28.0",
"vscode-extension-telemetry": "0.1.4",
"vscode-jsonrpc": "^6.0.0-next.3",
"vscode-languageclient": "^7.0.0-next.6",
"vscode-languageserver": "^7.0.0-next.4",
"vscode-languageserver-protocol": "^3.16.0-next.5",
"vscode-jsonrpc": "^6.0.0-next.4",
"vscode-languageclient": "^7.0.0-next.8",
"vscode-languageserver": "^7.0.0-next.6",
"vscode-languageserver-protocol": "^3.16.0-next.6",
"vscode-tas-client": "^0.0.864",
"vsls": "^0.3.1291",
"winreg": "^1.2.4",
Expand Down
2 changes: 2 additions & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@
"DataScience.connectingToJupyter": "Connecting to Jupyter server",
"DataScience.connectingToIPyKernel": "Connecting to IPython kernel",
"DataScience.connectedToIPyKernel": "Connected.",
"DataScience.connected": "Connected",
"DataScience.disconnected": "Disconnected",
"Experiments.inGroup": "User belongs to experiment group '{0}'",
"Interpreters.RefreshingInterpreters": "Refreshing Python Interpreters",
"Interpreters.entireWorkspace": "Entire workspace",
Expand Down
2 changes: 2 additions & 0 deletions src/client/common/utils/localize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,8 @@ export namespace DataScience {
'DataScience.previewNotebookOnlySupportedInVSCInsiders',
'The Preview Notebook Editor is supported only in the Insiders version of Visual Studio Code.'
);
export const connected = localize('DataScience.connected', 'Connected');
export const disconnected = localize('DataScience.disconnected', 'Disconnected');
}

export namespace StartPage {
Expand Down
7 changes: 7 additions & 0 deletions src/client/languageServices/proposeLanguageServerBanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import {
IPythonExtensionBanner
} from '../common/types';
import { Common, Pylance } from '../common/utils/localize';
import { sendTelemetryEvent } from '../telemetry';
import { EventName } from '../telemetry/constants';

export function getPylanceExtensionUri(appEnv: IApplicationEnvironment): string {
return `${appEnv.uriScheme}:extension/${PYLANCE_EXTENSION_ID}`;
Expand Down Expand Up @@ -72,14 +74,19 @@ export class ProposePylanceBanner implements IPythonExtensionBanner {
Pylance.remindMeLater()
);

let userAction: string;
if (response === Pylance.tryItNow()) {
this.appShell.openUrl(getPylanceExtensionUri(this.appEnv));
userAction = 'yes';
await this.disable();
} else if (response === Common.bannerLabelNo()) {
await this.disable();
userAction = 'no';
} else {
this.disabledInCurrentSession = true;
userAction = 'later';
}
sendTelemetryEvent(EventName.LANGUAGE_SERVER_TRY_PYLANCE, undefined, { userAction });
}

public async shouldShowBanner(): Promise<boolean> {
Expand Down
1 change: 1 addition & 0 deletions src/client/telemetry/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export enum EventName {
LANGUAGE_SERVER_READY = 'LANGUAGE_SERVER.READY',
LANGUAGE_SERVER_TELEMETRY = 'LANGUAGE_SERVER.EVENT',
LANGUAGE_SERVER_REQUEST = 'LANGUAGE_SERVER.REQUEST',
LANGUAGE_SERVER_TRY_PYLANCE = 'LANGUAGE_SERVER.TRY_PYLANCE',

TERMINAL_CREATE = 'TERMINAL.CREATE',
ACTIVATE_ENV_IN_CURRENT_TERMINAL = 'ACTIVATE_ENV_IN_CURRENT_TERMINAL',
Expand Down
10 changes: 10 additions & 0 deletions src/client/telemetry/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1362,6 +1362,16 @@ export interface IEventNamePropertyMapping {
* Telemetry sent when the client makes a request to the Node.js server
*/
[EventName.LANGUAGE_SERVER_REQUEST]: any;
/**
* Telemetry sent on user response to 'Try Pylance' prompt.
*/
[EventName.LANGUAGE_SERVER_TRY_PYLANCE]: {
/**
* User response to the prompt.
* @type {string}
*/
userAction: string;
};
/**
* Telemetry captured for enabling reload.
*/
Expand Down
7 changes: 7 additions & 0 deletions src/datascience-ui/interactive-common/jupyterInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export class JupyterInfo extends React.Component<IJupyterInfoProps> {
baseTheme={this.props.baseTheme}
class="image-button-image kernel-status-icon"
image={this.getIcon()}
title={this.getStatus()}
/>
</div>
<div className="kernel-status-divider" />
Expand Down Expand Up @@ -113,4 +114,10 @@ export class JupyterInfo extends React.Component<IJupyterInfoProps> {
? ImageName.JupyterServerDisconnected
: ImageName.JupyterServerConnected;
}

private getStatus() {
return this.props.kernel.jupyterServerStatus === ServerStatus.NotStarted
? getLocString('DataScience.disconnected', 'Disconnected')
: getLocString('DataScience.connected', 'Connected');
}
}
3 changes: 2 additions & 1 deletion src/datascience-ui/react-common/image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ interface IImageProps {
baseTheme: string;
image: ImageName;
class: string;
title?: string;
}

export class Image extends React.Component<IImageProps> {
Expand All @@ -249,6 +250,6 @@ export class Image extends React.Component<IImageProps> {
const key = ImageName[this.props.image].toString();
const image = images.hasOwnProperty(key) ? images[key] : images.Cancel; // Default is cancel.
const source = this.props.baseTheme.includes('dark') ? image.dark : image.light;
return <InlineSVG className={this.props.class} src={source} />;
return <InlineSVG className={this.props.class} src={source} title={this.props.title} />;
}
}
1 change: 0 additions & 1 deletion src/test/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"python.linting.banditEnabled": false,
"python.formatting.provider": "yapf",
"python.linting.pylintUseMinimalCheckers": false,
"python.pythonPath": "python",
// Do not set this to "Microsoft", else it will result in LS being downloaded on CI
// and that slows down tests significantly. We have other tests on CI for testing
// downloading of LS with this setting enabled.
Expand Down
Loading