You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the theme Visual Studio Dark, python codes are not well colored, but the raw string is displayed correctly.
When switched to the theme Default Dark Modern, more colors are shown for python code, but the escaping backslash \ in raw string is not displayed correctly.
system info
Extension version: 2024.10.0
VS Code version: Code 1.91.0 (ea1445cc7016315d0f5728f8e8b12a45dc0a7286, 2024-07-01T18:52:22.949Z)
OS version: Windows_NT x64 10.0.20348
Modes:
Python version (& distribution if applicable, e.g. Anaconda): 3.10.11
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Global
Value of the python.languageServer setting: Default
User Settings
languageServer: "Pylance"
Installed Extensions
Extension Name
Extension Id
Version
Black Formatter
ms-python.black-formatter
2024.2.0
DolphinDB
dolphindb.dolphindb-vscode
3.0.100
JavaScript Debugger
ms-vscode.js-debug
1.91.0
JavaScript Debugger Companion Extension
ms-vscode.js-debug-companion
1.1.2
Markdown All in One
yzhang.markdown-all-in-one
3.6.2
Markdown PDF
yzane.markdown-pdf
1.5.0
Pylance
ms-python.vscode-pylance
2024.7.1
Python
ms-python.python
2024.10.0
Python Debugger
ms-python.debugpy
2024.6.0
Remote - SSH
ms-vscode-remote.remote-ssh
0.112.0
Remote - SSH: Editing Configuration Files
ms-vscode-remote.remote-ssh-edit
0.86.0
Remote Explorer
ms-vscode.remote-explorer
0.4.3
Table Visualizer for JavaScript Profiles
ms-vscode.vscode-js-profile-table
1.0.9
Vue - Official
Vue.volar
2.0.8
System Info
Item
Value
CPUs
Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz (16 x 2200)
This is a bug in our TextMate grammar (https://github.com/MagicStack/MagicPython). There's some discussion about possible approaches to fixing all of our issues of this type in #5824. That issue also includes a list of isses that have been filed against MagicPython on escape sequences in raw strings, so it's a known pain point. We haven't decided how to address this class of issue yet.
Type: Bug
how to reproduce
When using the theme
Visual Studio Dark
, python codes are not well colored, but the raw string is displayed correctly.When switched to the theme
Default Dark Modern
, more colors are shown for python code, but the escaping backslash\
in raw string is not displayed correctly.system info
Extension version: 2024.10.0
VS Code version: Code 1.91.0 (ea1445cc7016315d0f5728f8e8b12a45dc0a7286, 2024-07-01T18:52:22.949Z)
OS version: Windows_NT x64 10.0.20348
Modes:
python.languageServer
setting: DefaultUser Settings
Installed Extensions
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software
A/B Experiments
The text was updated successfully, but these errors were encountered: