Fix missing schema compare icons (#7355)
* move schema compare icons * use extensionContext.extensionPath
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 419 B After Width: | Height: | Size: 419 B |
|
Before Width: | Height: | Size: 419 B After Width: | Height: | Size: 419 B |
|
Before Width: | Height: | Size: 328 B After Width: | Height: | Size: 328 B |
|
Before Width: | Height: | Size: 328 B After Width: | Height: | Size: 328 B |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 594 B After Width: | Height: | Size: 594 B |
|
Before Width: | Height: | Size: 594 B After Width: | Height: | Size: 594 B |
|
Before Width: | Height: | Size: 149 B After Width: | Height: | Size: 149 B |
|
Before Width: | Height: | Size: 149 B After Width: | Height: | Size: 149 B |
|
Before Width: | Height: | Size: 490 B After Width: | Height: | Size: 490 B |
|
Before Width: | Height: | Size: 490 B After Width: | Height: | Size: 490 B |
|
Before Width: | Height: | Size: 356 B After Width: | Height: | Size: 356 B |
|
Before Width: | Height: | Size: 356 B After Width: | Height: | Size: 356 B |
@@ -32,7 +32,7 @@ export default class MainController implements vscode.Disposable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private initializeSchemaCompareDialog(): void {
|
private initializeSchemaCompareDialog(): void {
|
||||||
azdata.tasks.registerTask('schemaCompare.start', (profile: azdata.IConnectionProfile) => new SchemaCompareMainWindow().start(profile));
|
azdata.tasks.registerTask('schemaCompare.start', (profile: azdata.IConnectionProfile) => new SchemaCompareMainWindow(null, this.extensionContext).start(profile));
|
||||||
}
|
}
|
||||||
|
|
||||||
public dispose(): void {
|
public dispose(): void {
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ export class SchemaCompareMainWindow {
|
|||||||
public sourceEndpointInfo: mssql.SchemaCompareEndpointInfo;
|
public sourceEndpointInfo: mssql.SchemaCompareEndpointInfo;
|
||||||
public targetEndpointInfo: mssql.SchemaCompareEndpointInfo;
|
public targetEndpointInfo: mssql.SchemaCompareEndpointInfo;
|
||||||
|
|
||||||
constructor(private schemaCompareService?: mssql.ISchemaCompareService) {
|
constructor(private schemaCompareService?: mssql.ISchemaCompareService, private extensionContext?: vscode.ExtensionContext) {
|
||||||
this.SchemaCompareActionMap = new Map<Number, string>();
|
this.SchemaCompareActionMap = new Map<Number, string>();
|
||||||
this.SchemaCompareActionMap[mssql.SchemaUpdateAction.Delete] = localize('schemaCompare.deleteAction', 'Delete');
|
this.SchemaCompareActionMap[mssql.SchemaUpdateAction.Delete] = localize('schemaCompare.deleteAction', 'Delete');
|
||||||
this.SchemaCompareActionMap[mssql.SchemaUpdateAction.Change] = localize('schemaCompare.changeAction', 'Change');
|
this.SchemaCompareActionMap[mssql.SchemaUpdateAction.Change] = localize('schemaCompare.changeAction', 'Change');
|
||||||
@@ -543,8 +543,8 @@ export class SchemaCompareMainWindow {
|
|||||||
this.compareButton = view.modelBuilder.button().withProperties({
|
this.compareButton = view.modelBuilder.button().withProperties({
|
||||||
label: localize('schemaCompare.compareButton', 'Compare'),
|
label: localize('schemaCompare.compareButton', 'Compare'),
|
||||||
iconPath: {
|
iconPath: {
|
||||||
light: path.join(__dirname, 'media', 'compare.svg'),
|
light: path.join(this.extensionContext.extensionPath, 'media', 'compare.svg'),
|
||||||
dark: path.join(__dirname, 'media', 'compare-inverse.svg')
|
dark: path.join(this.extensionContext.extensionPath, 'media', 'compare-inverse.svg')
|
||||||
},
|
},
|
||||||
title: localize('schemaCompare.compareButtonTitle', 'Compare')
|
title: localize('schemaCompare.compareButtonTitle', 'Compare')
|
||||||
}).component();
|
}).component();
|
||||||
@@ -558,8 +558,8 @@ export class SchemaCompareMainWindow {
|
|||||||
this.cancelCompareButton = view.modelBuilder.button().withProperties({
|
this.cancelCompareButton = view.modelBuilder.button().withProperties({
|
||||||
label: localize('schemaCompare.cancelCompareButton', 'Stop'),
|
label: localize('schemaCompare.cancelCompareButton', 'Stop'),
|
||||||
iconPath: {
|
iconPath: {
|
||||||
light: path.join(__dirname, 'media', 'stop.svg'),
|
light: path.join(this.extensionContext.extensionPath, 'media', 'stop.svg'),
|
||||||
dark: path.join(__dirname, 'media', 'stop-inverse.svg')
|
dark: path.join(this.extensionContext.extensionPath, 'media', 'stop-inverse.svg')
|
||||||
},
|
},
|
||||||
title: localize('schemaCompare.cancelCompareButtonTitle', 'Stop')
|
title: localize('schemaCompare.cancelCompareButtonTitle', 'Stop')
|
||||||
}).component();
|
}).component();
|
||||||
@@ -606,8 +606,8 @@ export class SchemaCompareMainWindow {
|
|||||||
this.generateScriptButton = view.modelBuilder.button().withProperties({
|
this.generateScriptButton = view.modelBuilder.button().withProperties({
|
||||||
label: localize('schemaCompare.generateScriptButton', 'Generate script'),
|
label: localize('schemaCompare.generateScriptButton', 'Generate script'),
|
||||||
iconPath: {
|
iconPath: {
|
||||||
light: path.join(__dirname, 'media', 'generate-script.svg'),
|
light: path.join(this.extensionContext.extensionPath, 'media', 'generate-script.svg'),
|
||||||
dark: path.join(__dirname, 'media', 'generate-script-inverse.svg')
|
dark: path.join(this.extensionContext.extensionPath, 'media', 'generate-script-inverse.svg')
|
||||||
},
|
},
|
||||||
}).component();
|
}).component();
|
||||||
|
|
||||||
@@ -637,8 +637,8 @@ export class SchemaCompareMainWindow {
|
|||||||
this.optionsButton = view.modelBuilder.button().withProperties({
|
this.optionsButton = view.modelBuilder.button().withProperties({
|
||||||
label: localize('schemaCompare.optionsButton', 'Options'),
|
label: localize('schemaCompare.optionsButton', 'Options'),
|
||||||
iconPath: {
|
iconPath: {
|
||||||
light: path.join(__dirname, 'media', 'options.svg'),
|
light: path.join(this.extensionContext.extensionPath, 'media', 'options.svg'),
|
||||||
dark: path.join(__dirname, 'media', 'options-inverse.svg')
|
dark: path.join(this.extensionContext.extensionPath, 'media', 'options-inverse.svg')
|
||||||
},
|
},
|
||||||
title: localize('schemaCompare.optionsButtonTitle', 'Options')
|
title: localize('schemaCompare.optionsButtonTitle', 'Options')
|
||||||
}).component();
|
}).component();
|
||||||
@@ -657,8 +657,8 @@ export class SchemaCompareMainWindow {
|
|||||||
this.applyButton = view.modelBuilder.button().withProperties({
|
this.applyButton = view.modelBuilder.button().withProperties({
|
||||||
label: localize('schemaCompare.updateButton', 'Apply'),
|
label: localize('schemaCompare.updateButton', 'Apply'),
|
||||||
iconPath: {
|
iconPath: {
|
||||||
light: path.join(__dirname, 'media', 'start.svg'),
|
light: path.join(this.extensionContext.extensionPath, 'media', 'start.svg'),
|
||||||
dark: path.join(__dirname, 'media', 'start-inverse.svg')
|
dark: path.join(this.extensionContext.extensionPath, 'media', 'start-inverse.svg')
|
||||||
},
|
},
|
||||||
}).component();
|
}).component();
|
||||||
|
|
||||||
@@ -764,8 +764,8 @@ export class SchemaCompareMainWindow {
|
|||||||
this.switchButton = view.modelBuilder.button().withProperties({
|
this.switchButton = view.modelBuilder.button().withProperties({
|
||||||
label: localize('schemaCompare.switchDirectionButton', 'Switch direction'),
|
label: localize('schemaCompare.switchDirectionButton', 'Switch direction'),
|
||||||
iconPath: {
|
iconPath: {
|
||||||
light: path.join(__dirname, 'media', 'switch-directions.svg'),
|
light: path.join(this.extensionContext.extensionPath, 'media', 'switch-directions.svg'),
|
||||||
dark: path.join(__dirname, 'media', 'switch-directions-inverse.svg')
|
dark: path.join(this.extensionContext.extensionPath, 'media', 'switch-directions-inverse.svg')
|
||||||
},
|
},
|
||||||
title: localize('schemaCompare.switchButtonTitle', 'Switch source and target')
|
title: localize('schemaCompare.switchButtonTitle', 'Switch source and target')
|
||||||
}).component();
|
}).component();
|
||||||
@@ -837,8 +837,8 @@ export class SchemaCompareMainWindow {
|
|||||||
this.openScmpButton = view.modelBuilder.button().withProperties({
|
this.openScmpButton = view.modelBuilder.button().withProperties({
|
||||||
label: localize('schemaCompare.openScmpButton', 'Open .scmp file'),
|
label: localize('schemaCompare.openScmpButton', 'Open .scmp file'),
|
||||||
iconPath: {
|
iconPath: {
|
||||||
light: path.join(__dirname, 'media', 'open-scmp.svg'),
|
light: path.join(this.extensionContext.extensionPath, 'media', 'open-scmp.svg'),
|
||||||
dark: path.join(__dirname, 'media', 'open-scmp-inverse.svg')
|
dark: path.join(this.extensionContext.extensionPath, 'media', 'open-scmp-inverse.svg')
|
||||||
},
|
},
|
||||||
title: localize('schemaCompare.openScmpButtonTitle', 'Load source, target, and options saved in an .scmp file')
|
title: localize('schemaCompare.openScmpButtonTitle', 'Load source, target, and options saved in an .scmp file')
|
||||||
}).component();
|
}).component();
|
||||||
@@ -934,8 +934,8 @@ export class SchemaCompareMainWindow {
|
|||||||
this.saveScmpButton = view.modelBuilder.button().withProperties({
|
this.saveScmpButton = view.modelBuilder.button().withProperties({
|
||||||
label: localize('schemaCompare.saveScmpButton', 'Save .scmp file'),
|
label: localize('schemaCompare.saveScmpButton', 'Save .scmp file'),
|
||||||
iconPath: {
|
iconPath: {
|
||||||
light: path.join(__dirname, 'media', 'save-scmp.svg'),
|
light: path.join(this.extensionContext.extensionPath, 'media', 'save-scmp.svg'),
|
||||||
dark: path.join(__dirname, 'media', 'save-scmp-inverse.svg')
|
dark: path.join(this.extensionContext.extensionPath, 'media', 'save-scmp-inverse.svg')
|
||||||
},
|
},
|
||||||
title: localize('schemaCompare.saveScmpButtonTitle', 'Save source and target, options, and excluded elements'),
|
title: localize('schemaCompare.saveScmpButtonTitle', 'Save source and target, options, and excluded elements'),
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|||||||