Compare commits

...

5 Commits

Author SHA1 Message Date
Karl Burtram
8f53a316fa Bump STS to 4.7.1.6 in release branch for connection pool issue (#23278) 2023-05-31 18:36:22 -07:00
Karl Burtram
cdf76a91a6 Add getOptionKeyIdNames to IConnectionProfile (#23262) (#23268) 2023-05-31 09:04:22 -07:00
Karl Burtram
a3fc0eb254 Remove debugService dependency from Open View (#23246) (#23255) 2023-05-30 16:59:37 -07:00
Karl Burtram
5b5b0385de Bump STS to 4.7.1.5 to pick up AAD email fix (#23259) 2023-05-30 16:49:46 -07:00
Karl Burtram
b95603c203 Update package.json (#23258)
Bump version for hotfix
2023-05-30 15:37:12 -07:00
15 changed files with 29 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{ {
"downloadUrl": "https://github.com/Microsoft/sqltoolsservice/releases/download/{#version#}/microsoft.sqltools.servicelayer-{#fileName#}", "downloadUrl": "https://github.com/Microsoft/sqltoolsservice/releases/download/{#version#}/microsoft.sqltools.servicelayer-{#fileName#}",
"version": "4.7.1.4", "version": "4.7.1.6",
"downloadFileNames": { "downloadFileNames": {
"Windows_86": "win-x86-net7.0.zip", "Windows_86": "win-x86-net7.0.zip",
"Windows_64": "win-x64-net7.0.zip", "Windows_64": "win-x64-net7.0.zip",

View File

@@ -1,6 +1,6 @@
{ {
"name": "azuredatastudio", "name": "azuredatastudio",
"version": "1.44.0", "version": "1.44.1",
"distro": "0b0260ce742552bb22069e74d4bfc54e6b4bd29f", "distro": "0b0260ce742552bb22069e74d4bfc54e6b4bd29f",
"author": { "author": {
"name": "Microsoft Corporation" "name": "Microsoft Corporation"

View File

@@ -254,6 +254,7 @@ export class ConnectionProfile extends ProviderConnectionInfo implements interfa
databaseName: this.databaseName, databaseName: this.databaseName,
authenticationType: this.authenticationType, authenticationType: this.authenticationType,
getOptionsKey: this.getOptionsKey, getOptionsKey: this.getOptionsKey,
getOptionKeyIdNames: this.getOptionKeyIdNames,
matches: this.matches, matches: this.matches,
groupId: this.groupId, groupId: this.groupId,
groupFullName: this.groupFullName, groupFullName: this.groupFullName,

View File

@@ -10,6 +10,7 @@ export type ProfileMatcher = (a: IConnectionProfile, b: IConnectionProfile) => b
export interface IConnectionProfile extends azdata.IConnectionProfile { export interface IConnectionProfile extends azdata.IConnectionProfile {
getOptionsKey(): string; getOptionsKey(): string;
getOptionKeyIdNames(): string[];
matches(profile: azdata.IConnectionProfile): boolean; matches(profile: azdata.IConnectionProfile): boolean;
} }

View File

@@ -277,6 +277,7 @@ suite('ConnectionConfig', () => {
groupFullName: undefined, groupFullName: undefined,
groupId: undefined, groupId: undefined,
getOptionsKey: undefined!, getOptionsKey: undefined!,
getOptionKeyIdNames: undefined!,
matches: undefined!, matches: undefined!,
providerName: 'MSSQL', providerName: 'MSSQL',
options: {}, options: {},
@@ -309,6 +310,7 @@ suite('ConnectionConfig', () => {
savePassword: true, savePassword: true,
groupFullName: undefined, groupFullName: undefined,
getOptionsKey: undefined!, getOptionsKey: undefined!,
getOptionKeyIdNames: undefined!,
matches: undefined!, matches: undefined!,
providerName: 'MSSQL', providerName: 'MSSQL',
options: {}, options: {},
@@ -341,6 +343,7 @@ suite('ConnectionConfig', () => {
groupFullName: 'g2/g2-2', groupFullName: 'g2/g2-2',
groupId: undefined, groupId: undefined,
getOptionsKey: undefined!, getOptionsKey: undefined!,
getOptionKeyIdNames: undefined!,
matches: undefined!, matches: undefined!,
providerName: 'MSSQL', providerName: 'MSSQL',
options: {}, options: {},
@@ -484,6 +487,7 @@ suite('ConnectionConfig', () => {
groupFullName: 'g3', groupFullName: 'g3',
groupId: 'g3', groupId: 'g3',
getOptionsKey: undefined!, getOptionsKey: undefined!,
getOptionKeyIdNames: undefined!,
matches: undefined!, matches: undefined!,
providerName: 'MSSQL', providerName: 'MSSQL',
options: {}, options: {},
@@ -514,6 +518,7 @@ suite('ConnectionConfig', () => {
groupFullName: 'g3', groupFullName: 'g3',
groupId: 'g3', groupId: 'g3',
getOptionsKey: undefined!, getOptionsKey: undefined!,
getOptionKeyIdNames: undefined!,
matches: undefined!, matches: undefined!,
providerName: 'MSSQL', providerName: 'MSSQL',
options: {}, options: {},
@@ -551,6 +556,7 @@ suite('ConnectionConfig', () => {
groupFullName: 'g3', groupFullName: 'g3',
groupId: 'newid', groupId: 'newid',
getOptionsKey: undefined!, getOptionsKey: undefined!,
getOptionKeyIdNames: undefined!,
matches: undefined!, matches: undefined!,
providerName: 'MSSQL', providerName: 'MSSQL',
options: {}, options: {},
@@ -631,6 +637,7 @@ suite('ConnectionConfig', () => {
groupFullName: 'g3', groupFullName: 'g3',
groupId: 'g3', groupId: 'g3',
getOptionsKey: () => { return 'connectionId'; }, getOptionsKey: () => { return 'connectionId'; },
getOptionKeyIdNames: undefined!,
matches: undefined!, matches: undefined!,
providerName: 'MSSQL', providerName: 'MSSQL',
options: {}, options: {},
@@ -648,6 +655,7 @@ suite('ConnectionConfig', () => {
groupFullName: 'test', groupFullName: 'test',
groupId: 'test', groupId: 'test',
getOptionsKey: () => { return 'connectionId'; }, getOptionsKey: () => { return 'connectionId'; },
getOptionKeyIdNames: undefined!,
matches: undefined!, matches: undefined!,
providerName: 'MSSQL', providerName: 'MSSQL',
options: {}, options: {},
@@ -688,6 +696,7 @@ suite('ConnectionConfig', () => {
groupFullName: 'g3', groupFullName: 'g3',
groupId: 'g3', groupId: 'g3',
getOptionsKey: () => { return 'connectionId'; }, getOptionsKey: () => { return 'connectionId'; },
getOptionKeyIdNames: undefined!,
matches: undefined!, matches: undefined!,
providerName: 'MSSQL', providerName: 'MSSQL',
options: {}, options: {},

View File

@@ -26,6 +26,7 @@ suite('SQL ConnectionProfileInfo tests', () => {
groupFullName: 'g2/g2-2', groupFullName: 'g2/g2-2',
groupId: 'group id', groupId: 'group id',
getOptionsKey: undefined!, getOptionsKey: undefined!,
getOptionKeyIdNames: undefined!,
matches: undefined!, matches: undefined!,
providerName: mssqlProviderName, providerName: mssqlProviderName,
options: {}, options: {},

View File

@@ -32,6 +32,7 @@ suite('ConnectionStore', () => {
groupId: '', groupId: '',
groupFullName: '', groupFullName: '',
getOptionsKey: undefined!, getOptionsKey: undefined!,
getOptionKeyIdNames: undefined!,
matches: () => false, matches: () => false,
providerName: mssqlProviderName, providerName: mssqlProviderName,
options: {}, options: {},

View File

@@ -25,6 +25,7 @@ suite('SQL ProviderConnectionInfo tests', () => {
groupFullName: 'g2/g2-2', groupFullName: 'g2/g2-2',
groupId: undefined, groupId: undefined,
getOptionsKey: undefined!, getOptionsKey: undefined!,
getOptionKeyIdNames: undefined!,
matches: undefined!, matches: undefined!,
providerName: mssqlProviderName, providerName: mssqlProviderName,
options: undefined!, options: undefined!,

View File

@@ -27,6 +27,7 @@ let connectionProfile: IConnectionProfile = {
groupFullName: 'g2/g2-2', groupFullName: 'g2/g2-2',
groupId: 'group id', groupId: 'group id',
getOptionsKey: () => 'connection1', getOptionsKey: () => 'connection1',
getOptionKeyIdNames: undefined!,
matches: undefined!, matches: undefined!,
providerName: mssqlProviderName, providerName: mssqlProviderName,
options: {}, options: {},
@@ -44,6 +45,7 @@ let editorConnectionProfile: IConnectionProfile = {
groupFullName: 'g2/g2-2', groupFullName: 'g2/g2-2',
groupId: 'group id', groupId: 'group id',
getOptionsKey: () => 'connection2', getOptionsKey: () => 'connection2',
getOptionKeyIdNames: undefined!,
matches: undefined!, matches: undefined!,
providerName: mssqlProviderName, providerName: mssqlProviderName,
options: {}, options: {},
@@ -61,6 +63,7 @@ let connectionProfileWithoutDbName: IConnectionProfile = {
groupFullName: 'g2/g2-2', groupFullName: 'g2/g2-2',
groupId: 'group id', groupId: 'group id',
getOptionsKey: () => 'connection1', getOptionsKey: () => 'connection1',
getOptionKeyIdNames: undefined!,
matches: undefined!, matches: undefined!,
providerName: mssqlProviderName, providerName: mssqlProviderName,
options: {}, options: {},

View File

@@ -68,6 +68,7 @@ suite('SQL ConnectionManagementService tests', () => {
groupFullName: 'g2/g2-2', groupFullName: 'g2/g2-2',
groupId: 'group id', groupId: 'group id',
getOptionsKey: () => { return 'connectionId'; }, getOptionsKey: () => { return 'connectionId'; },
getOptionKeyIdNames: undefined!,
matches: undefined, matches: undefined,
providerName: 'MSSQL', providerName: 'MSSQL',
options: {}, options: {},

View File

@@ -75,6 +75,7 @@ suite('Insights Dialog Controller Tests', () => {
groupFullName: '', groupFullName: '',
groupId: '', groupId: '',
getOptionsKey: () => '', getOptionsKey: () => '',
getOptionKeyIdNames: undefined!,
matches: undefined, matches: undefined,
providerName: '', providerName: '',
saveProfile: true, saveProfile: true,

View File

@@ -36,6 +36,7 @@ suite('AsyncServerTreeDragAndDrop', () => {
groupFullName: 'g2/g2-2', groupFullName: 'g2/g2-2',
groupId: 'group id', groupId: 'group id',
getOptionsKey: undefined!, getOptionsKey: undefined!,
getOptionKeyIdNames: undefined!,
matches: undefined!, matches: undefined!,
providerName: mssqlProviderName, providerName: mssqlProviderName,
options: {}, options: {},

View File

@@ -41,6 +41,7 @@ suite('SQL Drag And Drop Controller tests', () => {
groupFullName: 'g2/g2-2', groupFullName: 'g2/g2-2',
groupId: 'group id', groupId: 'group id',
getOptionsKey: undefined!, getOptionsKey: undefined!,
getOptionKeyIdNames: undefined!,
matches: undefined!, matches: undefined!,
providerName: mssqlProviderName, providerName: mssqlProviderName,
options: {}, options: {},
@@ -59,6 +60,7 @@ suite('SQL Drag And Drop Controller tests', () => {
groupFullName: 'g2/g2-2', groupFullName: 'g2/g2-2',
groupId: 'group id', groupId: 'group id',
getOptionsKey: undefined!, getOptionsKey: undefined!,
getOptionKeyIdNames: undefined!,
matches: undefined!, matches: undefined!,
providerName: pgsqlProviderName, providerName: pgsqlProviderName,
options: {}, options: {},

View File

@@ -89,6 +89,7 @@ suite('Firewall rule dialog controller tests', () => {
groupFullName: 'g2/g2-2', groupFullName: 'g2/g2-2',
groupId: 'group id', groupId: 'group id',
getOptionsKey: () => '', getOptionsKey: () => '',
getOptionKeyIdNames: undefined!,
matches: () => false, matches: () => false,
providerName: mssqlProviderName, providerName: mssqlProviderName,
options: {}, options: {},

View File

@@ -21,7 +21,7 @@ import { KeyMod, KeyCode } from 'vs/base/common/keyCodes';
import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry'; import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry';
import { CATEGORIES } from 'vs/workbench/common/actions'; import { CATEGORIES } from 'vs/workbench/common/actions';
import { IPaneCompositePartService } from 'vs/workbench/services/panecomposite/browser/panecomposite'; import { IPaneCompositePartService } from 'vs/workbench/services/panecomposite/browser/panecomposite';
import { IDebugService, REPL_VIEW_ID } from 'vs/workbench/contrib/debug/common/debug'; // import { IDebugService, REPL_VIEW_ID } from 'vs/workbench/contrib/debug/common/debug'; // {{SQL CARBON EDIT}} - remove unused import
interface IViewQuickPickItem extends IPickerQuickAccessItem { interface IViewQuickPickItem extends IPickerQuickAccessItem {
containerLabel: string; containerLabel: string;
@@ -37,7 +37,7 @@ export class ViewQuickAccessProvider extends PickerQuickAccessProvider<IViewQuic
@IOutputService private readonly outputService: IOutputService, @IOutputService private readonly outputService: IOutputService,
@ITerminalService private readonly terminalService: ITerminalService, @ITerminalService private readonly terminalService: ITerminalService,
@ITerminalGroupService private readonly terminalGroupService: ITerminalGroupService, @ITerminalGroupService private readonly terminalGroupService: ITerminalGroupService,
@IDebugService private readonly debugService: IDebugService, // @IDebugService private readonly debugService: IDebugService, // {{SQL CARBON EDIT}} - Disable debug service
@IPaneCompositePartService private readonly paneCompositeService: IPaneCompositePartService, @IPaneCompositePartService private readonly paneCompositeService: IPaneCompositePartService,
@IContextKeyService private readonly contextKeyService: IContextKeyService @IContextKeyService private readonly contextKeyService: IContextKeyService
) { ) {
@@ -184,6 +184,7 @@ export class ViewQuickAccessProvider extends PickerQuickAccessProvider<IViewQuic
}); });
// Debug Consoles // Debug Consoles
/* {{SQL CARBON EDIT}} - Disable debug service
this.debugService.getModel().getSessions(true).filter(s => s.hasSeparateRepl()).forEach((session, _) => { this.debugService.getModel().getSessions(true).filter(s => s.hasSeparateRepl()).forEach((session, _) => {
const label = session.name; const label = session.name;
viewEntries.push({ viewEntries.push({
@@ -199,6 +200,7 @@ export class ViewQuickAccessProvider extends PickerQuickAccessProvider<IViewQuic
}); });
}); });
*/ // {{SQL CARBON EDIT}} - end Disable debug service comment block
// Output Channels // Output Channels
const channels = this.outputService.getChannelDescriptors(); const channels = this.outputService.getChannelDescriptors();