mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-15 01:25:36 -05:00
fix publish profile with connection string ending in semicolon not loading (#14797)
This commit is contained in:
@@ -67,7 +67,8 @@ export class SqlConnectionDataSource extends DataSource {
|
||||
// TODO: do we have a common construct for connection strings?
|
||||
this.connectionString = connectionString;
|
||||
|
||||
for (const component of this.connectionString.split(';')) {
|
||||
const components = this.connectionString.split(';').filter(c => c !== '');
|
||||
for (const component of components) {
|
||||
const split = component.split('=');
|
||||
|
||||
if (split.length !== 2) {
|
||||
|
||||
Reference in New Issue
Block a user