pdet / SQLTest

5 stars 0 forks source link

Strip leading whitespace when uncommenting #9

Closed findepi closed 1 month ago

findepi commented 1 month ago

When file contains

# query I nosort
# select avg(n) as a from (VALUES (1.1), (2.2), (3.3)) as T(n)
# ----
# 2.2000000

and this is selected then uncomment shortcut is hit, the resulting content has leading whitespace

 query I nosort
 select avg(n) as a from (VALUES (1.1), (2.2), (3.3)) as T(n)
 ----
 2.2000000

the leading whitespace confuses some sqllogictest parsers.

pdet commented 1 month ago

Hey @findepi I had a go at your issues a few minutes back and sent a new version to be published. So the new version should support .stl files, work for rust, and comment adding/removing spaces. It takes jetbrains a few days to approve these usually, but Ill ping you when I get their email. ;-)

findepi commented 1 month ago

@pdet wow, i am impressed. thank you so much!

pdet commented 1 month ago

Hi @findepi, I got the email from jetbrains so it should be up in their marketplace, could you give it a try?

findepi commented 1 month ago

upgraded, works like a charm, many thanks!