Skip to content

Commit 195394e

Browse files
committed
fix: extension icon should be fixed!
1 parent cf8e348 commit 195394e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

vscode-framework.config.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ const languageOveridableSettings = [
3131
const dontMakeLanguageOverridableSettings = ['jsxPseudoEmmet.tags', 'jsxCompletionsMap', 'workspaceSymbolSearchExcludePatterns']
3232

3333
const ICON_URL = process.env.EXTENSION_ICON
34-
if (ICON_URL) {
35-
mkdirSync('resources', { recursive: true })
36-
pipeline(got.stream(ICON_URL), createWriteStream('resources/icon.png'))
37-
}
3834

3935
patchPackageJson({
4036
patchSettings(/** @type {Config} */ configuration) {
@@ -54,9 +50,11 @@ patchPackageJson({
5450
// }
5551
return configuration
5652
},
57-
rawPatchManifest(manifest) {
53+
async rawPatchManifest(manifest) {
5854
if (ICON_URL) {
59-
manifest.icon = 'resources/icon.png'
55+
mkdirSync('out/resources', { recursive: true })
56+
await pipeline(got.stream(ICON_URL), createWriteStream('out/resources/icon.png'))
57+
manifest.icon = './resources/icon.png'
6058
}
6159
},
6260
})

0 commit comments

Comments
 (0)