Allow to contribute to icon registry from icon contribution point. Fixes #114942

This commit is contained in:
Martin Aeschlimann
2021-02-04 15:16:42 +01:00
parent 082af46e66
commit 684f61b456
7 changed files with 364 additions and 35 deletions

View File

@@ -1230,6 +1230,10 @@ export function asCSSUrl(uri: URI): string {
return `url('${FileAccess.asBrowserUri(uri).toString(true).replace(/'/g, '%27')}')`;
}
export function asCSSPropertyValue(value: string) {
return `'${value.replace(/'/g, '%27')}'`;
}
export function triggerDownload(dataOrUri: Uint8Array | URI, name: string): void {
// If the data is provided as Buffer, we create a