Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode.window.state.focused not working with i3 window manager #51018

Open
vscodenpa opened this issue May 13, 2022 · 12 comments
Open

vscode.window.state.focused not working with i3 window manager #51018

vscodenpa opened this issue May 13, 2022 · 12 comments

Comments

@vscodenpa
Copy link

Does 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.

  1. Open up VSCode. Add a focus tracker like the following in the DevTools console:
vscode.window.onDidChangeWindowState(state => {
  console.log('state change', state.focused);
});
  1. Check to make sure this works by switching tabs. This should be working as intended.
  2. 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@vscodenpa and others