formulahendry / vscode-mysql

MySQL management tool for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=formulahendry.vscode-mysql
MIT License
219 stars 60 forks source link

[Bug] VSCode window focus lost 窗口焦点消失 #162

Closed ysl2 closed 3 years ago

ysl2 commented 3 years ago

image

English Version

How To Reproduce

  1. Open a file example.sql

    `example.sql`
    
    USE exampledatabase;
    SELECT * FROM exampletable;
  2. Execute this file via command MySQL: Run MySQL Query , and the table exampletable will be listed in the second window group. I can scroll the table by using DownArrow key.

  3. Use shortcut Ctrl + 1 to focus the first window group, then Ctrl + 2 to back to the second, and the focus will be lost, I can't do anything via my keyboard.

中文版

如何重现

  1. 随便打开一个sql文件,此文件用于查询数据库中的某个表

    `example.sql`
    
    USE exampledatabase;
    SELECT * FROM exampletable;
  2. 通过控制面板的命令执行sql语句,某张表会被列出到第二个窗格,我可以通过箭头键上下移动来查看表格内容

  3. 通过Ctrl + 1 切换到第一个窗格,再通过ctrl + 2切换回来,此时窗口的焦点消失,任何通过键盘的输入都不起作用

ysl2 commented 3 years ago

Sorry, I just found out it might be caused by vscode, not this extension... Each preview window can cause this bug.