Execute query not working when there are multiple queries in the editor


Suppose you have these two queries in the editor

select * from Table1;

select * from Table2;

and you select "select * from Table1;" and press F8. Only the selected query text should be executed

and if I have not selected any query, we should try to select the query where the caret is right now and execute it.

Currently F8 executes all the queries in the editor.