Tabs API does not allow to identify internal tabs
Type: <b>Bug</b> If you set a listener to `vscode.window.tabGroups.onDidChangeTabs`, you will only get an `undefined` for `tab.input` when switching to the "Settings" or the "Keyboard Shortcuts". ``` vscode.window.tabGroups.onDidChangeTabs((tabs) => { if (tabs.changed.length) { tabs.changed.forEach(tab => { console.log(tab.input); }) } }); ``` Since the tab object does not contain any meaningful usable indication of what the user is actually looking at (except for the `label`, which is language dependent though), it is not possible to build a complete replacement for the "Open Editors" panel. Here an internal uri object (with `path: "vscode://settings"`) would be useful, so that one can open the tab via `vscode.open` as with all other tab items. VS Code version: Code 1.70.2 (e4503b30fc78200f846c62cf8091b76ff5547662, 2022-08-16T05:35:13.448Z) OS version: Windows_NT x64 10.0.22000 Modes: Remote OS version: Linux x64 5.10.16.3-microsoft-standard-WSL2 <details> <summary>System Info</summary> |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i3-8130U CPU @ 2.20GHz (4 x 2208)| |GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_
Posted by McSodbrenner on Aug 23, 2022, 7:05 AM
Tags
Related issues
- Custom games stuck on "finding server" for all european servers
- Feature request: add ACP (Agent Client Protocol) stdio JSON-RPC mode
- Forza Horizon 6 (2483190)
- Turn off integrated browser for default
- Weekly updates are too frequent
- [BUG] Max 20x plan: 100% usage after 2 hours of light work (5 commits, no agents)
Raise real-world problems, find people facing the same issue, and discuss solutions.2,500 issues0 comments
github (Sysadmin)
Custom games stuck on "finding server" for all european servers
Feature request: add ACP (Agent Client Protocol) stdio JSON-RPC mode
Forza Horizon 6 (2483190)
Turn off integrated browser for default
Weekly updates are too frequent
[BUG] Max 20x plan: 100% usage after 2 hours of light work (5 commits, no agents)
Add gemini-3.1-pro-preview
[TF2] Feature request: Bring Back Quickplay
Tabs API does not allow to identify internal tabs
Type: <b>Bug</b> If you set a listener to `vscode.window.tabGroups.onDidChangeTabs`, you will only get an `undefined` for `tab.input` when switching to the "Settings" or the "Keyboard Shortcuts". ``` vscode.window.tabGroups.onDidChangeTabs((tabs) => { if (tabs.changed.length) { tabs.changed.forEach(tab => { console.log(tab.input); }) } }); ``` Since the tab object does not contain any meaningful usable indication of what the user is actually looking at (except for the `label`, which is language dependent though), it is not possible to build a complete replacement for the "Open Editors" panel. Here an internal uri object (with `path: "vscode://settings"`) would be useful, so that one can open the tab via `vscode.open` as with all other tab items. VS Code version: Code 1.70.2 (e4503b30fc78200f846c62cf8091b76ff5547662, 2022-08-16T05:35:13.448Z) OS version: Windows_NT x64 10.0.22000 Modes: Remote OS version: Linux x64 5.10.16.3-microsoft-standard-WSL2 <details> <summary>System Info</summary> |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i3-8130U CPU @ 2.20GHz (4 x 2208)| |GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_
Comments (0)
No comments yet. Start the discussion.