mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 09:35:37 -05:00
Fix IConnectionProfile to have same options key when generated from ConnectionProfile (#22840)
This commit is contained in:
@@ -405,7 +405,7 @@ export class TreeUpdateUtils {
|
||||
// Map the indices of profiles that share the same connection name.
|
||||
for (let i = 0; i < inputList.length; i++) {
|
||||
// do not add if the profile is still loading as that will result in erroneous entries.
|
||||
if (inputList[i].hasServerCapabilities && inputList[i].hasLoaded()) {
|
||||
if (inputList[i].serverCapabilities && inputList[i].hasLoaded()) {
|
||||
let titleKey = inputList[i].getOriginalTitle();
|
||||
if (profileListMap.has(titleKey)) {
|
||||
let profilesForKey = profileListMap.get(titleKey);
|
||||
|
||||
@@ -36,6 +36,7 @@ suite('AsyncServerTreeDragAndDrop', () => {
|
||||
groupFullName: 'g2/g2-2',
|
||||
groupId: 'group id',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: mssqlProviderName,
|
||||
options: {},
|
||||
|
||||
@@ -41,6 +41,7 @@ suite('SQL Drag And Drop Controller tests', () => {
|
||||
groupFullName: 'g2/g2-2',
|
||||
groupId: 'group id',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: mssqlProviderName,
|
||||
options: {},
|
||||
@@ -59,6 +60,7 @@ suite('SQL Drag And Drop Controller tests', () => {
|
||||
groupFullName: 'g2/g2-2',
|
||||
groupId: 'group id',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: pgsqlProviderName,
|
||||
options: {},
|
||||
|
||||
@@ -83,6 +83,7 @@ suite('treeUpdateUtils alterConnection', () => {
|
||||
groupFullName: 'g3',
|
||||
groupId: 'g3',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: 'MSSQL',
|
||||
options: { testOption3: 'default', testOption2: '10' },
|
||||
@@ -101,6 +102,7 @@ suite('treeUpdateUtils alterConnection', () => {
|
||||
groupFullName: 'g3',
|
||||
groupId: 'g3',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: 'MSSQL',
|
||||
options: { testOption3: 'nonDefault' },
|
||||
@@ -135,6 +137,7 @@ suite('treeUpdateUtils alterConnection', () => {
|
||||
groupFullName: 'g3',
|
||||
groupId: 'g3',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: 'MSSQL',
|
||||
options: { testOption2: '15', testOption1: 'test string 1', testOption3: 'nonDefault' },
|
||||
@@ -153,6 +156,7 @@ suite('treeUpdateUtils alterConnection', () => {
|
||||
groupFullName: 'g3',
|
||||
groupId: 'g3',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: 'MSSQL',
|
||||
options: { testOption2: '50', testOption1: 'test string 1', testOption3: 'nonDefault' },
|
||||
@@ -171,6 +175,7 @@ suite('treeUpdateUtils alterConnection', () => {
|
||||
groupFullName: 'g3',
|
||||
groupId: 'g3',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: 'MSSQL',
|
||||
options: { testOption2: '15', testOption1: 'test string 2', testOption3: 'nonDefault' },
|
||||
@@ -189,6 +194,7 @@ suite('treeUpdateUtils alterConnection', () => {
|
||||
groupFullName: 'g3',
|
||||
groupId: 'g3',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: 'MSSQL',
|
||||
options: { testOption2: '50', testOption1: 'test string 2', testOption3: 'nonDefault' },
|
||||
@@ -207,6 +213,7 @@ suite('treeUpdateUtils alterConnection', () => {
|
||||
groupFullName: 'g3',
|
||||
groupId: 'g3',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: 'MSSQL',
|
||||
options: { testOption3: 'nonDefault' },
|
||||
@@ -248,6 +255,7 @@ suite('treeUpdateUtils alterConnection', () => {
|
||||
groupFullName: 'g3',
|
||||
groupId: 'g3',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: 'MSSQL',
|
||||
options: {},
|
||||
@@ -266,6 +274,7 @@ suite('treeUpdateUtils alterConnection', () => {
|
||||
groupFullName: 'g3-1',
|
||||
groupId: 'g3-1',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: 'MSSQL',
|
||||
options: {},
|
||||
@@ -284,6 +293,7 @@ suite('treeUpdateUtils alterConnection', () => {
|
||||
groupFullName: 'g3-2',
|
||||
groupId: 'g3-2',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: 'MSSQL',
|
||||
options: {},
|
||||
@@ -328,6 +338,7 @@ suite('treeUpdateUtils alterConnection', () => {
|
||||
groupFullName: 'g3',
|
||||
groupId: 'g3',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: 'MSSQL',
|
||||
options: { testOption1: 'value1' },
|
||||
@@ -346,6 +357,7 @@ suite('treeUpdateUtils alterConnection', () => {
|
||||
groupFullName: 'g3',
|
||||
groupId: 'g3',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: 'MSSQL',
|
||||
options: { testOption1: 'value2' },
|
||||
@@ -364,6 +376,7 @@ suite('treeUpdateUtils alterConnection', () => {
|
||||
groupFullName: 'g3-1',
|
||||
groupId: 'g3-1',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: 'MSSQL',
|
||||
options: {},
|
||||
@@ -404,6 +417,7 @@ suite('treeUpdateUtils alterConnection', () => {
|
||||
groupFullName: 'g3',
|
||||
groupId: 'g3',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: 'MSSQL',
|
||||
options: {},
|
||||
@@ -422,6 +436,7 @@ suite('treeUpdateUtils alterConnection', () => {
|
||||
groupFullName: 'g3',
|
||||
groupId: 'g3',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: 'MSSQL',
|
||||
options: { testOption1: 'value1', testOption2: '15' },
|
||||
@@ -456,6 +471,7 @@ suite('treeUpdateUtils alterConnection', () => {
|
||||
groupFullName: 'g3',
|
||||
groupId: 'g3',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: 'MSSQL',
|
||||
options: { testOption1: 'value1', testOption2: '15' },
|
||||
@@ -474,6 +490,7 @@ suite('treeUpdateUtils alterConnection', () => {
|
||||
groupFullName: 'g3',
|
||||
groupId: 'g3',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: 'MSSQL',
|
||||
options: { testOption1: 'value2', testOption2: '30' },
|
||||
@@ -541,6 +558,7 @@ suite('treeUpdateUtils alterConnection', () => {
|
||||
groupFullName: 'g3a',
|
||||
groupId: 'g3a',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: 'MSSQL',
|
||||
options: {},
|
||||
@@ -559,6 +577,7 @@ suite('treeUpdateUtils alterConnection', () => {
|
||||
groupFullName: 'g3a',
|
||||
groupId: 'g3a',
|
||||
getOptionsKey: undefined!,
|
||||
serverCapabilities: undefined,
|
||||
matches: undefined!,
|
||||
providerName: 'MSSQL',
|
||||
options: { testOption1: 'value2', testOption2: '30' },
|
||||
|
||||
Reference in New Issue
Block a user