Bump @opentelemetry/core and @vscode/extension-telemetry and fix TelemetryReporter import (#26007)
Removes @opentelemetry/core. It’s no longer used after updating ancestor dependency @vscode/extension-telemetry. These dependencies need to be updated together.
Removes
@opentelemetry/coreUpdates
@vscode/extension-telemetryfrom 0.8.4 to 1.5.2
@vscode/extension-telemetryv1.5.2 changedTelemetryReporterfrom a default export to a named export. This PR also updates the import and runtime access in the extension source to match:
src/client/telemetry/index.tsandsrc/client/browser/extension.ts: changedimport TelemetryReporter from '@vscode/extension-telemetry'toimport { TelemetryReporter } from '@vscode/extension-telemetry'and updatedrequire('@vscode/extension-telemetry').defaulttorequire('@vscode/extension-telemetry').TelemetryReporter.gulpfile.js: strip ANSI color escape codes from webpack stdout before checking forERROR in/WARNING inpatterns, so webpack build errors are correctly detected instead of being silently swallowed.
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] 198982749+Copilot@users.noreply.github.com Co-authored-by: Raymond Zhao 7199958+rzhao271@users.noreply.github.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
Python extension for Visual Studio Code
A Visual Studio Code extension with rich support for the Python language (for all actively supported Python versions), providing access points for extensions to seamlessly integrate and offer support for IntelliSense (Pylance), debugging (Python Debugger), formatting, linting, code navigation, refactoring, variable explorer, test explorer, environment management (NEW Python Environments Extension).
Support for vscode.dev
The Python extension does offer some support when running on vscode.dev (which includes github.dev). This includes partial IntelliSense for open files in the editor.
Installed extensions
The Python extension will automatically install the following extensions by default to provide the best Python development experience in VS Code:
These extensions are optional dependencies, meaning the Python extension will remain fully functional if they fail to be installed. Any or all of these extensions can be disabled or uninstalled at the expense of some features. Extensions installed through the marketplace are subject to the Marketplace Terms of Use.
About the Python Environments Extension
You may now see that the Python Environments Extension is installed for you, but it may or may not be “enabled” in your VS Code experience. Enablement is controlled by the setting
"python.useEnvironmentsExtension": true(orfalse).true, you will manually opt in to using the Python Environments Extension for environment management.The Python Environments Extension is still under active development and experimentation. Its goal is to provide a dedicated view and improved workflows for creating, deleting, and switching between Python environments, as well as managing packages. If you have feedback, please let us know via issues.
Extensibility
The Python extension provides pluggable access points for extensions that extend various feature areas to further improve your Python development experience. These extensions are all optional and depend on your project configuration and preferences.
If you encounter issues with any of the listed extensions, please file an issue in its corresponding repo.
Quick start
Set up your environment
Select your Python interpreter by clicking on the status bar
Configure the debugger through the Debug Activity Bar
Configure tests by running the
Configure TestscommandJupyter Notebook quick start
The Python extension offers support for Jupyter notebooks via the Jupyter extension to provide you a great Python notebook experience in VS Code.
Install the Jupyter extension.
Open or create a Jupyter Notebook file (.ipynb) and start coding in our Notebook Editor!
For more information you can:
Useful commands
Open the Command Palette (Command+Shift+P on macOS and Ctrl+Shift+P on Windows/Linux) and type in one of the following commands:
Python: Select InterpreterPython: Start Terminal REPLPython: Run Python File in TerminalRun Python File in Terminal.Python: Configure TestsTo see all available Python commands, open the Command Palette and type
Python. For Jupyter extension commands, just typeJupyter.Feature details
Learn more about the rich features of the Python extension:
Supported locales
The extension is available in multiple languages:
de,en,es,fa,fr,it,ja,ko-kr,nl,pl,pt-br,ru,tr,zh-cn,zh-twQuestions, issues, feature requests, and contributions
Data and telemetry
The Microsoft Python Extension for Visual Studio Code collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more. This extension respects the
telemetry.telemetryLevelsetting which you can learn more about at https://code.visualstudio.com/docs/supporting/faq#_how-to-disable-telemetry-reporting.