vscode.window.state.focused not working with i3 window manager
See original GitHub issueDoes this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.66.0-dev
- OS Version: Ubuntu 22.04 LTS
Steps to Reproduce:
Apologies if this is not the right place to post this, I didn’t see it in the above links. This issue occurs for extension developers trying to use the vscode.window.state.focused
API.
- Open up VSCode. Add a focus tracker like the following in the DevTools console:
vscode.window.onDidChangeWindowState(state => {
console.log('state change', state.focused);
});
- Check to make sure this works by switching tabs. This should be working as intended.
- Try switching windows with the i3 window manager. You should see that the console log has not been triggered.
Thanks for your help and for building such a great product!
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
This seems like a good time to plug my tiling window manager ...
I run linux at home but Windows at work, so I miss i3 a lot. ... there are a few bugs, mostly around...
Read more >Accessibility in Visual Studio Code
Learn here about the various ways VS Code aids user accessibility. ... with the View > Zoom In / Out commands, the zoom...
Read more >Can you game in i3 window manager? : r/linuxquestions
yes i3 has a fullscreen short cut which is mod + F which u can full screen a window. I use it all...
Read more >i3 User's Guide - i3 Tiling Window Manager
Only commands can be executed at runtime, not config directives, see [list_of_commands]. 4.15. Don't focus window upon opening. When a new window appears,...
Read more >My Linux desktop environment (2021 update) - Sebastien Wains
I started looking at how other tiling window managers were ... And I'm not unhappy to have i3 around, should I mess up...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@joaomoreno you added this API
Hi @deepak1556, thanks very much for your response! Yes, I did find a way to reproduce this without i3. It seems like if you are on a more standard window manager (such as GNOME), switching windows does not cause the
focused
attribute to change either. So actually, this seems like a much larger issue than just not working with i3 - it doesn’t work for switching windows in general, only for switching tabs.