mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Handling for parsing of iconpaths (#7738)
* Check if light and dark are URI * Added a map in the extensionsRegistry to check * Moved resolve check to connectionProviderExtension * removed resolvedUsers from extensionsRegistry.ts * removed unused imports and spaces * Formatting for import * Simplified resolver check. * ToString is sufficient to avoid any complications * Small formatting fix * removed extra comment
This commit is contained in:
@@ -13,6 +13,7 @@ import { deepClone } from 'vs/base/common/objects';
|
|||||||
import * as azdata from 'azdata';
|
import * as azdata from 'azdata';
|
||||||
import * as resources from 'vs/base/common/resources';
|
import * as resources from 'vs/base/common/resources';
|
||||||
|
|
||||||
|
|
||||||
export interface ConnectionProviderProperties {
|
export interface ConnectionProviderProperties {
|
||||||
providerId: string;
|
providerId: string;
|
||||||
displayName: string;
|
displayName: string;
|
||||||
@@ -184,8 +185,8 @@ function resolveIconPath(extension: IExtensionPointUser<any>): void {
|
|||||||
if (Array.isArray(iconPath)) {
|
if (Array.isArray(iconPath)) {
|
||||||
for (let e of iconPath) {
|
for (let e of iconPath) {
|
||||||
e.path = {
|
e.path = {
|
||||||
light: resources.joinPath(extension.description.extensionLocation, e.path.light),
|
light: resources.joinPath(extension.description.extensionLocation, e.path.light.toString()),
|
||||||
dark: resources.joinPath(extension.description.extensionLocation, e.path.dark)
|
dark: resources.joinPath(extension.description.extensionLocation, e.path.dark.toString())
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
} else if (typeof iconPath === 'string') {
|
} else if (typeof iconPath === 'string') {
|
||||||
@@ -195,8 +196,8 @@ function resolveIconPath(extension: IExtensionPointUser<any>): void {
|
|||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
iconPath = {
|
iconPath = {
|
||||||
light: resources.joinPath(extension.description.extensionLocation, iconPath.light),
|
light: resources.joinPath(extension.description.extensionLocation, iconPath.light.toString()),
|
||||||
dark: resources.joinPath(extension.description.extensionLocation, iconPath.dark)
|
dark: resources.joinPath(extension.description.extensionLocation, iconPath.dark.toString())
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user