From 416f6b9c7bb0e0003035abf1094cdd3094431b5f Mon Sep 17 00:00:00 2001 From: Rich Chiodo Date: Mon, 16 Dec 2024 14:20:04 -0800 Subject: [PATCH] Changelog 202412100 in pylance-release (#6776) * Update readme and changelog * Put back inadvertent changes * Fix other inadvertent change --- CHANGELOG.md | 13 +++++++++++++ README.md | 21 +++++++++++++++------ 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b1ad205..6ea4e72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## 2024.12.100 (16 December 2024) PreRelease + +Notable changes: + +- Bug fix: Return type of generated docstrings is Any when it should not be [pylance-release#6745](https://github.com/microsoft/pylance-release/issues/6745) +- Bug fix: Generated docstrings return type could be narrowed [pylance-release#6704](https://github.com/microsoft/pylance-release/issues/6704) +- Bug fix: Make pass through settings descriptions to adopt inline code [pylance-release#6757](https://github.com/microsoft/pylance-release/issues/6757) +- Enhancement: Support go-to-implementation [pylance-release#4329](https://github.com/microsoft/pylance-release/issues/4329) + +Pylance's copy of Pyright has been updated from 1.1.389 to 1.1.390. + +- See Pyright's release notes for details: [1.1.390](https://github.com/microsoft/pyright/releases/tag/1.1.390) + ## 2024.12.1 (5 December 2024) Release Notable changes: diff --git a/README.md b/README.md index 5491ef0..982942a 100644 --- a/README.md +++ b/README.md @@ -345,19 +345,17 @@ Pylance provides users with the ability to customize their Python language suppo - `false` - `python.analysis.supportRestructuredText` - - Enable/disable support for reStructuredText in docstrings. Experimental, may cause docstrings to no longer render. + - Enable/disable support for reStructuredText in docstrings. - Default value: `false` (or `true` in `full` mode) - Accepted values: - - `true` - - `false` (default) + - `true` (default) + - `false` - Performance Consideration: - Disabling support for reStructuredText in docstrings by setting `python.analysis.supportRestructuredText` to `false` can improve performance by reducing the overhead of parsing complex docstrings. - `python.analysis.aiCodeActions` - Enable/disable AI-assisted code actions. Requires the Copilot Chat extension to be enabled. - - Accepted values: - - `true` - - `false` (default) + - This setting accepts objects where the keys are the available AI-assisted code actions, and the values are `true` or `false` to enable or disable each action. - Available code actions to use as keys: `implementAbstractClasses`. - Example: ```json @@ -388,6 +386,17 @@ Pylance provides users with the ability to customize their Python language suppo - `true` - `false` (default) +- `python.analysis.generateWithTypeAnnotation` + - Add type annotations when generating code. Defaults to `false` for type checking mode `off`, and `true` for other modes. + - Accepted values: + - `true` + - `false` (default) +- `python.analysis.enableNotebookDataTips` + - Enable data tips for the last value of a variable when executing notebook cells. + - Accepted values: + - `true` + - `false` (default) + # Semantic highlighting Visual Studio Code uses TextMate grammars as the main tokenization engine. TextMate grammars work on a single file as input and break it up based on lexical rules expressed in regular expressions.