Repository metrics
- Stars
- (74,848 stars)
- PR merge metrics
- (Avg merge 11h 43m) (1,000 merged PRs in 30d)
Description
Type: Bug
in an extension, call
const webviewPanel=vscode.window.createWebviewPanel(id, title, vscode.ViewColumn.Beside);
note that webviewPanel.viewColumn returns undefined
internally the viewColumn is kept as vscode.ViewColumn.Beside = -2, and the accessor returns undefined when it is less than 0.
The documentation for ViewColumn.Beside has this:
A symbolic editor column representing the column to the side of the active one. This value can be used when opening editors, but the resolved {@link TextEditor.viewColumn viewColumn}-value of editors will always be One, Two, Three,... or undefined but never Beside.
I accept that it doesn't explicitly mention WebviewPanel, but I think it should be consistent with TextEditor.
VS Code version: Code 1.95.1 (65edc4939843c90c34d61f4ce11704f09d3e5cb6, 2024-10-31T05:14:54.222Z) OS version: Windows_NT x64 10.0.22621 Modes:
| Item | Value |
|---|---|
| CPUs | AMD Ryzen Threadripper 1950X 16-Core Processor (32 x 3394) |
| GPU Status | 2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabledwebnn: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 63.89GB (42.44GB free) |
| Process Argv | -n --crash-reporter-id 22b24386-c25b-404a-a2ae-9ae86dee0ec7 |
| Screen Reader | no |
| VM | 0% |
| Extension | Author (truncated) | Version |
|---|---|---|
| amazon-q-vscode | ama | 1.34.0 |
| npm-intellisense | chr | 1.4.5 |
| vscode-eslint | dba | 3.0.10 |
| thumbnails | iso | 0.1.4 |
| js-debug-nightly | ms- | 2024.11.417 |
| clangformat | sea | 2.0.2 |
| cursor-align | yo1 | 2.0.2 |
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
01bff139:31013167
dvdeprecation:31068756
dwnewjupyter:31046869
newcmakeconfigv2:31071590
impr_priority:31102340
nativerepl2:31139839
refactort:31108082
pythonrstrctxt:31112756
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
j44ff735:31175163