mtxr / vscode-sqltools

Database management for VSCode
https://vscode-sqltools.mteixeira.dev?utm_source=github&utm_medium=homepage-link
MIT License
1.43k stars 291 forks source link

"Can't execute query. You have selected nothing" on VS Code Linux #1215

Open janmechtel opened 9 months ago

janmechtel commented 9 months ago

When running with F5 there is a information "Can't execute query. You have selected nothing"

Under windows it works great to have multiple SQL queries in the same file and pressing F5 will execute the whole query where the cursor is currently in.

On my linux/kbuntu this is not working and instead gives the above error.

When I shift+arrow key highlight the query every thing works fine.

What's weird is that there is a soft highlight that follows the cursor and that actually highlights the currently selected query.

I can investigate more myself but I was hoping for a pointer where to start.

To Reproduce

  1. Open a New SQL File on VS Code Linux
  2. Type any text and Press F5
  3. See error

Expected behavior The currently selected query should be executed

Screenshots image In the screenshot the cursor is in row 3 and the entire query gets soft selected

Desktop (please complete the following information):