senkenn / sqlsurge

Visual Studio Code extension for SQL language server
https://marketplace.visualstudio.com/items?itemName=senken.sqlsurge
MIT License
18 stars 0 forks source link

Refactor SQL extraction functions to handle parsing failures #40

Closed senkenn closed 6 months ago

senkenn commented 6 months ago

This pull request refactors the SQL extraction functions to handle parsing failures. Previously, if there was a parsing failure in the source code, the function would panic. Now, if there is a parsing failure, an error message is printed and an empty list is returned. Additionally, a new test case has been added to cover the scenario of a SQL query with a parsing failure.

Fixes #22 Fixes #38