microsoft / azuredatastudio

Azure Data Studio is a data management and development tool with connectivity to popular cloud and on-premises databases. Azure Data Studio supports Windows, macOS, and Linux, with immediate capability to connect to Azure SQL and SQL Server. Browse the extension library for more database support options including MySQL, PostgreSQL, and MongoDB.
https://learn.microsoft.com/sql/azure-data-studio
MIT License
7.57k stars 901 forks source link

Editor does not re-parse a script when database changes #3708

Open gbritton1 opened 5 years ago

gbritton1 commented 5 years ago

snag_107b6379

If you start off in one connection (say master), and try to create a table in a non-existent schema, you get the error message in the screenshot. However, if you change the connection to a database that does have the schema, the error persists. I suspect that ADS is not re-verifying the script after switching connections.

gbritton1 commented 5 years ago

PS. even if I parse the query again after changing the connection as described, no errors are found, but the red squiggly and popup message remain.