vscode
vscode copied to clipboard
funtion underscore show abnormal?
Type: Bug
import math import cairo
WIDTH, HEIGHT = 256, 256
surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, WIDTH, HEIGHT)
ctx = cairo.Context(surface)
pat = cairo.LinearGradient(0, 0, 0, 1) pat.add_color_stop_rgb(1, 255, 0, 0, 0)
below function show abnormal in vscode edtior.
pat.add_color_stop_rgb(0, 255, 0, 0)
VS Code version: Code 1.80.0 (660393deaaa6d1996740ff4880f1bad43768c814, 2023-07-04T15:06:02.407Z) OS version: Windows_NT x64 10.0.19041 Modes:
System Info
| Item | Value |
|---|---|
| CPUs | AMD Ryzen 7 5800X 8-Core Processor (16 x 3793) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: enabled |
| Load (avg) | undefined |
| Memory (System) | 15.93GB (6.91GB free) |
| Process Argv | --crash-reporter-id 0564522a-2032-4b01-a8b2-6e96b6c6c904 |
| Screen Reader | no |
| VM | 36% |
Extensions (23)
| Extension | Author (truncated) | Version |
|---|---|---|
| better-comments | aar | 3.0.2 |
| QML | bbe | 1.0.0 |
| better-toml | bun | 0.3.2 |
| vscode-innosetup | cho | 1.9.2 |
| path-intellisense | chr | 2.8.4 |
| vscode-markdownlint | Dav | 0.51.0 |
| python-extension-pack | don | 1.7.0 |
| vscode-html-css | ecm | 1.13.1 |
| gc-excelviewer | Gra | 4.2.57 |
| git-graph | mhu | 1.30.0 |
| vscode-language-pack-zh-hans | MS- | 1.80.2023070509 |
| python | ms- | 2023.12.0 |
| vscode-pylance | ms- | 2023.7.10 |
| hexeditor | ms- | 1.9.11 |
| color-highlight | nau | 2.5.0 |
| autodocstring | njp | 0.6.1 |
| vscode-python-typehint | njq | 1.5.1 |
| indent-rainbow | ode | 8.3.1 |
| rech-editor-batch | rec | 0.0.22 |
| color-manager | roy | 0.7.5 |
| vscode-qt-for-python | sea | 7.4.0 |
| intellicode-api-usage-examples | Vis | 0.2.7 |
| vscodeintellicode | Vis | 1.2.30 |
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931cf:30280410
vshan820:30294714
vstes263:30335439
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
282f8724:30602487
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
showlangstatbar:30737416
vsctsb:30748421
pythonms35:30701012
pythonfmttext:30731395
pythoncmv:30756943
fixshowwlkth:30771522
showindicator:30785052
pythongtdpath:30769146
bgfeh915:30780428
pythonnosm12tcf:30779713
pythonidxpt:30784022
pythonnoceb:30776495
The second add_color_stop_rgb function show spaces, but actually the function had no spaces at all.Please fix it.